How to install Command-T, Pathogen and not use RVM?

I used brew install to install ruby ​​(unlike RVM). I have installed ruby ​​1.9.3p0 on my system. (OSX Lion)

I am trying to install Command-T through a pathogen. I can run rake, make, ruby, whatever, normally, but when I go into the Command-T directory and try to run rake make , it says Could not find rake-0.8.7 in any of the sources .

I also cannot run any regular ruby ​​command. just ruby --version produces the same errors.

I know this is due to below ... but I don't know how to fix it.

Most installation problems are caused by a mismatch between the version of Ruby on the main operating system and the version of Ruby that Vim itself was linked at compile time. For example, if 32-bit, and the other is 64-bit, or one is from the Ruby 1.9 series and the other is from the 1.8 series, then the plug-in is unlikely to work.

So, on Mac OS X, I recommend using the standard Ruby that comes with the system (currently 1.8.7) along with the latest version of MacVim (currently version 7.3). If you want to use custom Ruby or MacVim assemblies (not recommended), then you have to take additional ones to make sure that the same Ruby environment works when building Ruby, Vim and the Command-T extension.

I tried temporarily moving the entire basement directory from / usr / local (for those familiar with this, where homebrew installs ruby ​​and everything else).

In the terminal, if I run ruby, it works correctly. However, when I run rake make in the Command-T folder, it still gives the same error

+4
source share
2 answers

nevermind ... all i needed to do was /usr/bin/rake make

how is it other than just deleting the Cellar folder temporarily, so by default the shell uses this path, I have no idea, but it worked.

+4
source

I had a similar problem with Fedora.

In the end, I found that you first need to install the rubygem-rake and ruby-dev package. After installing both, compile your Vim with "./configure --enable-rubyinterp", then Commend-T will be fine.

0
source

Source: https://habr.com/ru/post/1388252/


All Articles