updatedb : /usr/lib/locate/frcode not found
Topic: updatedb : /usr/lib/locate/frcode not found
started by: bcostacurta
Posted by bcostacurta on Dec. 20 2008,17:49Hello,
running updatedb (related to 'locate' usage) I receive error :
/usr/bin/updatedb: line 114: /usr/lib/locate/frcode: No such file or directory
In fact /usr/lib/locate is simply missing ... !?!
Thanks for any clue.
Posted by mikshaw on Dec. 20 2008,21:56I can't tell you why updatedb is included in DSL, but it might be something unrelated to locate.
What i can say is that locate is not available in DSL base, but is available in the gnu-utils and findutils extensions.
Posted by bcostacurta on Dec. 20 2008,23:01Unfortunately both gnu-utils and findutils extensions were already installed before getting this problem.
Posted by mikshaw on Dec. 21 2008,13:24Something went wrong on your end, apparently. /usr/lib/locate/frcode is also part of gnu-utils.dsl
In findutils.uci, frcode is in /opt/findutils/libexec. In that case the updatedb script in DSL will not work; you'll need to use /opt/findutils/bin/updatedb
Posted by bcostacurta on Dec. 21 2008,22:38Indeed /opt/findutils/bin/updatedb is present and (quite) work.
Indeed it seems that its options and/or setup are missing : I had to use '--output=/var/cache/locate/locatedb' when calling updatedb to obtain correct call to 'locate' program.
Posted by bcostacurta on Dec. 23 2008,22:19Well I have now few questions about these locate & updatedb fonctionlities and the workaround I described in my previous post :
- does this means that gnu-utils and findutils cannot co-exist ?
If yes, I should simply remove gnu-utils to have a working locate & updatedb ?
- is there any reason locate & updatedb are implemented in both library findutils & gnu-utils ?
Posted by mikshaw on Dec. 24 2008,22:33
Many people use gnu-utils because it is more convenient, or it supplies enough tools to do what they need, or for some other reason. It's just about choice.
Posted by bcostacurta on Dec. 26 2008,09:59By reading your post (thanks for your explanation), and as newbie with DSL, I understand that there are in fact different types of DSL extensions :. *uci, *tar.gz and *dsl.
I will document myself more on these to try to build a more consistent DSL, ie. avoiding a maybe duplicated or confused installation (like the one I started with for this thread).
Also I ordered on Internet the book 'The Official Damn Small Linux Book' ... well because reading books is also I think a good way to learn.