LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2011, 12:19 AM   #1
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Rep: Reputation: 16
ldconfig: unable to add libraries


Hi,

I am using CentOS 6.0 i686.

I need to use a precompiled binary ferret http://ferret.pmel.noaa.gov/static/D...downloads.html for my work. Unfortunately it is available for RHEL 5 only.

It would work if i had some compatibility libraries installed. I found fortran compatibility libs. But i couldn't find libcurl.so.3.

Creating a symlink /usr/lib/libcurl.so.3 to the existing libcurl.so.4.1.1 in /usr/lib made ferret work.

I do not want to make changes in /usr/lib and so i created a symlink libcurl.so.3 in /usr/lib/pkgs/libs to /usr/lib/libcurl.so.4.1.1. Then as root i created a file userlibs.conf in /etd/ld.so.conf.d with these lines:
Code:
# List of user libs

/usr/local/pkgs/libs
and then ran ldconfig.

But i saw no change as still invoking ferret registered a missing libcurl.so.3 message.

I tried a couple of things like
Code:
ldconfig -n /usr/local/pkgs/libs
ldconfig -l /usr/local/pkgs/libs
but nothing happened.

I am using only CentOS 6 repos since to ensure stability it is not advisable to use non-CentOS repos unless one really knows his stuff.

Could someone suggest what should be my next step?

Thanks.

Last edited by samrat_rao; 08-10-2011 at 12:21 AM.
 
Old 08-10-2011, 12:27 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You could try invoking ldconfig with -v to make it verbose.
 
Old 08-10-2011, 12:28 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
/etc/ld.so.conf.d/
For example i used to add mysql libraries as follows,
The above mentioned path create a file "mysql" and add the path where the mysql libraries exist
 
Old 08-11-2011, 04:19 AM   #4
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Original Poster
Rep: Reputation: 16
Hi mod,

As root - append line /usr/local/pkgs/libs in /etc/ld.so.conf.d/userlibs.conf. Then

Code:
cd /usr/local/pkgs/libs
ln -s /usr/lib/libcurl.so.4.1.1 libcurl.so.3
ldconfig -v | more
Output:

Quote:
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-71.el6.i686.conf:6: duplicate hwcap 0 nosegneg

<snip>

/usr/local/pkgs/libs:
libcurl.so.4 -> libcurl.so.3 (changed)

<snip>
Code:
ls -l /usr/local/pkgs/libs
Output:

Quote:
total 0
lrwxrwxrwx. 1 root root 25 Aug 11 14:28 libcurl.so.3 -> /usr/lib/libcurl.so.4.1.1
lrwxrwxrwx. 1 root root 12 Aug 11 14:41 libcurl.so.4 -> libcurl.so.3
The boot kernel is the upgraded 2.6.32-71.29.1.el6.i686 and not 2.6.32-71.el6.i686.

This thing had repeatedly happened before and i didn't understand why this was happening. I thought i was making a mistake. So i posted here.

Hi Kirukan,

Creating a separate /etc/ld.so.conf.d/libcurl.conf with the entry /usr/local/pkgs/libs repeats the action mentioned above.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add new libraries to SuSe Linux? moonface Linux - Newbie 1 04-30-2011 05:59 PM
[SOLVED] How to add libraries? damonx Linux - Software 4 06-10-2010 09:27 AM
[SOLVED] Please Help Getting mad! Installing wxwidgets... need to add a path to ldconfig...?? morty346 Programming 23 12-02-2009 04:52 PM
how to add ldconfig call to Makefile.am RGummi Programming 4 09-14-2008 01:00 PM
ldconfig message during libraries install with deb pascalv Linux - Software 0 07-12-2005 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:50 AM.

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