LinuxQuestions.org
Review your favorite Linux distribution.
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 11-30-2012, 07:25 AM   #1
mkvakic
LQ Newbie
 
Registered: Nov 2012
Posts: 8

Rep: Reputation: Disabled
[SOLVED] Phantom files (found by locate, but doesn't exist in the dir)


Hello,

I'm having a bit of trouble installing new hdf5-1.8.10 libraries.

When looking for the previous ones (hdf5-1.8.5) with locate, i get:

% locate libhdf
/usr/local/lib/libhdf5.a
/usr/local/lib/libhdf5.la
/usr/local/lib/libhdf5.settings
/usr/local/lib/libhdf5.so
/usr/local/lib/libhdf5.so.6
/usr/local/lib/libhdf5.so.6.0.4
/usr/local/lib/libhdf5_hl.a
/usr/local/lib/libhdf5_hl.la
/usr/local/lib/libhdf5_hl.so
/usr/local/lib/libhdf5_hl.so.6
/usr/local/lib/libhdf5_hl.so.6.0.4

But when i try to search for the first file (or anyother):

% ls /usr/local/lib/libhdf5.a
ls: cannot access /usr/local/lib/libhdf5.a: No such file or directory


The same thing happens with root privileges.

I've tried uninstalling it from the old directory using make uninstall, but it still hangs there.
Should i try overwriting it with new ones or?


The system is CentOS 6.3 on a x86 arch.

Last edited by mkvakic; 11-30-2012 at 07:47 AM. Reason: Solved problem
 
Old 11-30-2012, 07:31 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,122

Rep: Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270
locate works on a static database, probably it did not recognize the removal of those files. Try updatedb
 
2 members found this post helpful.
Old 11-30-2012, 07:46 AM   #3
mkvakic
LQ Newbie
 
Registered: Nov 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks!
I thought they were getting linked to another program i am trying to compile.

But it wasn't the case.
I didn't notice i have a LD_LIB.. variable defined to the local installation directory.

Anyway, thanks for the quick reply.
 
Old 11-30-2012, 08:07 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,028

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
find is more accurate than locate although its slightly slower.
 
1 members found this post helpful.
  


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
Create dir at logon (if it doesn't already exist) dsdonut Linux - General 5 10-16-2012 10:47 AM
test for a dir exist zimbot Programming 2 02-22-2011 06:14 PM
find found files that don't exist? mocax Linux - Newbie 3 12-08-2010 07:13 AM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 03:57 PM
Remove files found with "locate" JRR883 Linux - Software 3 11-23-2006 01:17 PM


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