install vim via yum thinks perl is required - I build perl 5.14.2 from source
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
install vim via yum thinks perl is required - I build perl 5.14.2 from source
I'm trying to install vim-enhanced via yum on CentOS 5.8. I need to run perl 5.14.2 on the system so I installed it via a source build. Now I need to install vim-enhanced (vim) and it says it has a dependency for perl 5.8.8.
When I built perl 5.14.2 from source I made sure I built it with dynamically shared libraries so there is a libperl.so file for vim to use. I also added a /etc/ld.so.conf.d/perl-5.14.2.conf file and ran ldconfig.
What am I missing? How do I tell vim that perl in installed so any more packages that require perl are good?
dependency: libperl.so() is where your issue is. Do you have a libperl.so in your /lib/ or /lib64/ directory? If you don't you can create a symlink to where the shared object is stored(since you built from source its in another directory) and it should see that the .so file is there and move past the dependency. The issue here is not that perl is not installed but the location of its library files.
Just to try it I did create a symlink under /lib64 for libperl.so. I also thought it might have something to do with yum cache so I executed `yum clean all` and I `rm -rf /var/cache/yum`. The problem persists.
The problem is that yum (or rpm) has no package perl in its libraries, it doesn't care for the files on your system. This is why the proper way when installing software from source is to first build a package from it and then install the package.
Of course you can force rpm to install the vim package anyways, but that will break the dependency chain (at least it does the same when forcing dpkg on Debian system, not sure about rpm/yum).
So to solve your problem, build a proper package of Perl and install it. Then you should have no problems with vim.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.