Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-30-2012, 06:25 AM   #1
LQ Newbie
Registered: Nov 2012
Posts: 8

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


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

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 06:47 AM. Reason: Solved problem
Old 11-30-2012, 06:31 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,010

Rep: Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625Reputation: 2625
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, 06:46 AM   #3
LQ Newbie
Registered: Nov 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
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, 07:07 AM   #4
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,093

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


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 09:47 AM
test for a dir exist zimbot Programming 2 02-22-2011 05:14 PM
find found files that don't exist? mocax Linux - Newbie 3 12-08-2010 06:13 AM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 02:57 PM
Remove files found with "locate" JRR883 Linux - Software 3 11-23-2006 12:17 PM

All times are GMT -5. The time now is 08:02 PM.

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