updatedb : /usr/lib/locate/frcode not found


Forum: Apps
Topic: updatedb : /usr/lib/locate/frcode not found
started by: bcostacurta

Posted by bcostacurta on Dec. 20 2008,17:49
Hello,

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.
Bye,
Bruno

Posted by mikshaw on Dec. 20 2008,21:56
I 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:01
Unfortunately both gnu-utils and findutils extensions were already installed before getting this problem.

Bruno

Posted by mikshaw on Dec. 21 2008,13:24
Something 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:38
Indeed /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.

Bye,
Bruno

Posted by bcostacurta on Dec. 23 2008,22:19
Well 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 ?

Thanks.
Bruno

Posted by mikshaw on Dec. 24 2008,22:33
Quote
does this means that gnu-utils and findutils cannot co-exist ?
I have never tested it, but it seems to me that they should be able to be installed at the same time.  If you want to use findutils.uci, remember that the update commad is NOT "updatedb".  It's "/opt/findutils/bin/updatedb"  Those are two separate files, each with its own support files.

Quote
is there any reason locate & updatedb are implemented in both library findutils & gnu-utils ?
It's to provide more choice.  Personally I don't use gnu-utils because it loads into ram.  Instead I use UCI packages that are mounted....coreutils.uci, findutils.uci, procps.uci, etc.  The uci packages are also the complete utility packages as released by their developers, rather than the selected programs that are put in gnu-utils.
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:59
By 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.

Bye,
Bruno

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.