Cannot create Vim with Ruby and Python support

This is a strange problem that I am facing - but I struggled with it for more than an hour without a solution. I am trying to customize the vim build, but continue to work with bugs with python enabled and resolve ruby โ€‹โ€‹arguments.

Here is what I am trying to do with the relevant parts of the error:

$ ./configure --prefix=/usr/local --with-features=huge --enable-pythoninterp --enable-rubyinterp ... checking --enable-rubyinterp argument... yes checking --with-ruby-command argument... defaulting to ruby checking for ruby... (cached) /usr/bin/ruby checking Ruby version... OK checking Ruby rbconfig... RbConfig checking Ruby header files... not found; disabling Ruby ... checking --enable-pythoninterp argument... yes checking for python2... (cached) /usr/bin/python2 checking Python version... (cached) 2.7 checking Python is 1.4 or better... yep checking Python install prefix... (cached) /usr checking Python execution prefix... (cached) /usr (cached) checking Python configuration directory... (cached) can't find it! ... 

I am completely at a dead end, I am relatively new to Linux, but have tried several different things - all to no avail. Help!

EDIT: I am running Mint 14

+4
source share
2 answers

Assuming you want to use the versions of Ruby (1.8.7) and Python (?) That ship with Linux Mint, you will need their respective development packages.

 sudo apt-get install ruby-dev python-dev 

Once this is complete, you will be able to run the original script configuration

 ./configure --prefix=/usr/local --with-features=huge --enable-pythoninterp --enable-rubyinterp 

As for Ruby, if you are using an environment manager such as RVM or Rbenv, then you will need to specify confiugre strings as a parameter so that the configure script can find updated Ruby headers. Documentation for this can be found on the RVM website.

+5
source

I just got Vim to compile with Python support (Arch Linux), and in addition to the nathan answer I had to add:

 --with-python-config-dir=/path/to/python/conf 

to the parameter list. For some reason, I didn't need to do this in order to get python3 support.

Another thing I had to do was change the python symlink so that it points to the python2.7 executable instead of python3, because obviously he was trying to check the version number with "python -version" and it beat python3 executable file and don't like what it returned. If Mint uses only Ruby 1.8, you probably won't have python3 installed as python, so you may not have this problem, but I thought it was worth mentioning.

+1
source

All Articles