LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2014, 02:23 PM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
cannot find a library file


In the output shown below I am trying to find libelf.so.0

Code:
[root@james aide-0.15.1]# locate  libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0.8.13
/home/james/.local/share/Trash/files/hpctoolkit-externals-install.2/libelf/lib/libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-externals-install.2/libelf/lib/libelf.so.0.8.13
/home/james/.local/share/Trash/files/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0.8.13
/home/james/Desktop/hourly.0/localhost/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0
/home/james/Desktop/hourly.0/localhost/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0.8.13
/home/james/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0
/home/james/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0.8.13
/home/james/Desktop/tar_extract/lib64/libelf.so.0
/home/james/Desktop/tar_extract/lib64/libelf.so.0.8.13
/home/james/Desktop2/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0
/home/james/Desktop2/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0.8.13
/home/james/Desktop2/Desktop/tar_extract/lib64/libelf.so.0
/home/james/Desktop2/Desktop/tar_extract/lib64/libelf.so.0.8.13
[root@james aide-0.15.1]# cd /usr/lib64/
[root@james lib64]# ls -al  libelf.so.0
-rwx------ 1 root root 431754 Mar 25 14:14 libelf.so.0

I am trying to find libelf.so.0. The locate command finds it in many place, but not in

/usr/lib64/

where I put it earlier today.

Why is it not finding it in /usr/lib64/ ?

R,

jyunker

PS.


please note the use/lib64/ is in my LD_LIBARY_PATH.

Code:
echo $LD_LIBRARY_PATH
/usr/lib64/:/lib64/:
[root@james lib64]# locate   libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0.8.13
/home/james/.local/share/Trash/files/hpctoolkit-externals-install.2/libelf/lib/libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-externals-install.2/libelf/lib/libelf.so.0.8.13
/home/james/.local/share/Trash/files/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0
/home/james/.local/share/Trash/files/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0.8.13
/home/james/Desktop/hourly.0/localhost/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0
/home/james/Desktop/hourly.0/localhost/home/james/.local/share/Trash/files/hpctoolkit-externals-install/libelf/lib/libelf.so.0.8.13
/home/james/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0
/home/james/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0.8.13
/home/james/Desktop/tar_extract/lib64/libelf.so.0
/home/james/Desktop/tar_extract/lib64/libelf.so.0.8.13
/home/james/Desktop2/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0
/home/james/Desktop2/Desktop/hpctoolkit-install/lib/hpctoolkit/ext-libs/libelf.so.0.8.13
/home/james/Desktop2/Desktop/tar_extract/lib64/libelf.so.0
/home/james/Desktop2/Desktop/tar_extract/lib64/libelf.so.0.8.13
but locate libelf.so.0 still does not find it.

Last edited by jyunker; 03-25-2014 at 02:34 PM.
 
Old 03-25-2014, 04:07 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
? May be update the "locate data base" :

# updatedb
 
Old 03-26-2014, 11:54 AM   #3
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
I am sorry. I do not understand what you said.

Please elaborate.

R,

jyunker
 
Old 03-26-2014, 12:06 PM   #4
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 502

Rep: Reputation: 137Reputation: 137
You need to run updatedb so that newly created files are updated in mlocate database. you do that by

Code:
# updatedb
# locate libelf.so.0
 
Old 03-26-2014, 12:10 PM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
you can try find but it will probably take longer. e.g.:
Code:
find /usr/lib64/ -name libelf.so.0
 
Old 03-26-2014, 01:02 PM   #6
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 502

Rep: Reputation: 137Reputation: 137
Or, since you already know the path... you can just use
Code:
# ls /usr/lib64/libelf.so.0
 
  


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
runtest error: Couldn't find library file gcc-dg.exp stark_moris Linux - General 6 09-23-2010 03:20 AM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 10:00 PM
Compiling library files into another library file. knobby67 Programming 3 04-10-2007 03:07 PM
Cannot find symbol, which is in static library, in a exe file. amumu Programming 0 02-03-2005 11:47 PM
How To Find Out What A Library Does? nysb Linux - Software 1 05-27-2004 11:46 AM


All times are GMT -5. The time now is 03:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration