LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-12-2014, 06:27 AM   #1
jbrandru
LQ Newbie
 
Registered: Aug 2013
Location: Denmark
Posts: 1

Rep: Reputation: Disabled
ldconfig using wrong path to config/cache


Ive run into a fairly odd issue on a few servers running RHEL 5.9
For some reason I cant seem to figure out ldconfig looks in /usr/local/etc per default instead of /etc where its suppose to look

[root@myhost ~]# ldconfig
ldconfig: Can't open configuration file /usr/local/etc/ld.so.conf: No such file or directory
[root@myhost ~]# ls /etc/ld.so.conf
/etc/ld.so.conf

[root@myhost ~]# ldconfig -p | head -1
38 libs found in cache `/usr/local/etc/ld.so.cache'
[root@myhost ~]# ldconfig -p -C /etc/ld.so.cache | head -1
653 libs found in cache `/etc/ld.so.cache'

Im guessing its a wrong enviroment setting somewhere

Can anyone tell me how I fix this so ldconfig uses correct default path ?
 
Old 06-13-2014, 04:20 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Are you using the RHEL5.9 glibc package.

On my RHEL5.9 system I don't see the issue you have but the ldconfig and setup are provided by glibc so if you did something odd like install an upstream glibc you may be getting a location other than the 1 RHEL5.9's build expects.

"yum list glibc" to see what version you have installed and what version is available from repository.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] when does ldconfig refresh it's own cache? entz Linux - Software 2 01-22-2012 09:10 AM
libc6 upgrade resulting in 'ldconfig' not found on PATH samoverduin Debian 2 03-09-2010 10:29 AM
[SOLVED] Please Help Getting mad! Installing wxwidgets... need to add a path to ldconfig...?? morty346 Programming 23 12-02-2009 04:52 PM
ldconfig problem - no config file!! 3saul Programming 2 08-23-2006 04:44 PM
.so not found after ldconfig and setting LD path Hoju2468 Linux - Software 1 07-20-2006 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:03 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