VIM with Ruby support on CentOS-5.5

While trying to get command-t VIM plugin installed I noticed that the default vim-7.0.x installed from CentOS Base repository does not come compiled with ruby support and needed to be upgraded to version 7.2.x:

$ vim --version|grep ruby
+python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent

Notice "-ruby" which states that it is without ruby support.

Once the rpmbuild environment is setup, install the source rpm:

# su - rpmbuild
$ cd ~/rpm/SRPMS/
$ wget http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/vim-7.2.411-1.6.el6.src.rpm
$ rpm -Uvh --nomd5 ~/rpm/SRPMS/vim-7.2.411-1.6.el6.src.rpm

Edit the vim.spec file, line 496 and remove perl-devel from the requirement list.

BuildRequires: python-devel ncurses-devel gettext perl-devel

Then build rpm binary:

$ rpmbuild -bb ~/rpm/SPEC/vim.spec

Install the rpms via:

# rpm -Uvh ~/rpm/RPMS/x86_64/vim-{m,c,e}*

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sorry for the previous post, please ignore...

It does work.. I had something odd going on with my rpmbuild installation.
(if you can please delete my previous comment and this one too)

Cheers,
Augusto

I don't think these instructions work

Hi,

I followed your instructions, but the rpm you mentioned doesn't have ruby support at all. The hint is that there's no section that declares a BuildRequires ruby or ruby-devel. I found that the source RPMS from fedora do have the dependency, but unfortunately it fails to compile on CENTOS 6.

Augusto

Comment