Sunday, September 19, 2010

Building packages for VIM Editor using RPM

Today the objective of my task was to build the Vim editor on my Fedora Machine. After installing all the required rpm tools, such as rpmdevtools, rpmlint, rpmbuild, rpm, and yum-utils. I Then proceeded to commence the build process with the rpm utilities.

After downloading the source file, I had to verify what the building of vim requires, to gain this information, I had to go the .spec file for vim. The vim.spec file indicated that this BuildRequires: hunspell-devel (header package). So I install the header package. However, after running rpmbuild -ba  *.spec command (as a regular user), I received an error message indicating there are additional dependencies needed to build Vim. So to solve this problem I proceeded to install all the required packages, using the yum command as root.
                                  Some required dependencies

The previous error message indicated that one of the dependencies that I needed to build was perl. Simple right just run the command yum install perl, and you're done...wrong!!! Did it. I had to pay careful attention to what the error message said the required dependency was, the perl dependency in this case is actually perl -ExtUtils-Embed (actual rendering perl-ExtUtils::Embed).
                                      Perl dependency install

It was pretty much a smooth ride to comlete the build after the previously mentioned minor hindrance. The entire build took over 1 hour to complete, although the time in the screen capture seems to dictate a different sequence of time taken for completion (ignore).
                                          Build Completion

This concludes the building of Vim Editor...to be continued!!!

No comments: