LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-02-2012, 02:29 PM   #1
rubanek
LQ Newbie
 
Registered: Apr 2008
Location: MD
Distribution: CentOS, Fedora
Posts: 23
Blog Entries: 1

Rep: Reputation: 1
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?

Thanks,

-rubanek
 
Old 05-02-2012, 03:04 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.

Do a:
Code:
find / -type f -name "*libperl.so*"
If you are having trouble locating it.
 
Old 05-02-2012, 03:13 PM   #3
rubanek
LQ Newbie
 
Registered: Apr 2008
Location: MD
Distribution: CentOS, Fedora
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: 1
Thanks Kustom42. I figured the libperl.so was the problem... which is why I added the /etc/ld.so.conf.d/perl-5.14.2.conf file:

Code:
[root@jcontent1 ~]# cat /etc/ld.so.conf.d/perl-5.14.2.conf 
/usr/local/lib/perl5/5.14.2/x86_64-linux/CORE
[root@jcontent1 ~]# ls -al /usr/local/lib/perl5/5.14.2/x86_64-linux/CORE/libperl.so 
-r-xr-xr-x 1 root root 1546021 May  2 13:46 /usr/local/lib/perl5/5.14.2/x86_64-linux/CORE/libperl.so
Should the OS know where libperl.so is since I added that ld config file and ran ldconfig?
 
Old 05-02-2012, 04:04 PM   #4
rubanek
LQ Newbie
 
Registered: Apr 2008
Location: MD
Distribution: CentOS, Fedora
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: 1
ldconfig -v shows it loading libperl.so via the ld.so.conf.d directory:

Code:
[root@jcontent1 ~]# ldconfig -v | grep perl
/usr/local/lib/perl5/5.14.2/x86_64-linux/CORE:
        libperl.so -> libperl.so
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.
 
Old 05-02-2012, 06:42 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
  


Reply

Tags
centos, perl, vim, yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl Module and Calling Functions of Another Perl Source File devUnix Programming 4 01-28-2011 03:53 PM
perl(SDL::SFont) required to install frozen bubble game moredhel Linux - Games 1 10-22-2006 01:01 PM
Build libperl.so from perl source? TotalDefiance Linux - Software 0 02-08-2006 11:57 AM
Yum error: .conflict between perl and perl-NDBM_File zepplin611 Red Hat 3 10-20-2004 10:22 AM
Install a perl build J_Szucs Linux - Newbie 1 07-10-2002 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration