LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   .conf file problems (https://www.linuxquestions.org/questions/linux-from-scratch-13/conf-file-problems-14633/)

notsoevil 02-19-2002 12:46 PM

.conf file problems
 
I was going to do the workaround for net-pf errors as per http://www.linuxfromscratch.org/faq/#AEN372 , but noticed something rather strange:

I don't have /etc/modules.conf

Did I do something wrong?

Hmm, instead of posting another separate thread, I am also having a problem with ld.so.conf.

When I add a library path (for example: /usr/lib/qt) to ld.so.conf and run /sbin/ldconfig, I still have other programs looking for those libraries complaining about not finding them. Heck, /usr/local/lib was already in that file, and no libraries can be found there.

lfslinux 02-19-2002 11:12 PM

Re: .conf file problems
 
Quote:

Originally posted by notsoevil
I was going to do the workaround for net-pf errors as per http://www.linuxfromscratch.org/faq/#AEN372 , but noticed something rather strange:

I don't have /etc/modules.conf

Did I do something wrong?

Hmm, instead of posting another separate thread, I am also having a problem with ld.so.conf.

When I add a library path (for example: /usr/lib/qt) to ld.so.conf and run /sbin/ldconfig, I still have other programs looking for those libraries complaining about not finding them. Heck, /usr/local/lib was already in that file, and no libraries can be found there.

1) if you don't have a mdoules.conf file, create it. It doesn't come by default with any package you install with LFS (the programs from the modutils package will use the file but they won't create one. There's not much point in creating a 0 byte file since modutils has no idea what needs to be in the file)

2) From time to time the cache isn't updated properly or things are just fubar'ed. Simply remove the /etc/ld.so.cache file (kind of a hash table with all the dirs and libs from those dirs as defined in ld.so.conf) and run ldconfig again. It'll create a new ld.so.cache that is used by the dynamic loader (/lib/ld-linux.so.2). See if that helps.


All times are GMT -5. The time now is 03:37 AM.