stupid_idiot
Group: Members
Posts: 344
Joined: Oct. 2006 |
|
Posted: July 06 2007,23:55 |
|
Quote (jpeters @ July 06 2007,21:42) | When is it necessary to use 'sudo ldconfig'? Just mydsl-intalling isn't sufficient? |
A: When the extension contains shared libraries besides those already found in DSL. When new shared libraries are added, the linker cache ('/etc/ld.so.cache') has to be updated. `mydsl-load` does not run `sudo ldconfig` everytime it loads an extension because it is rarely needed and takes a long time on slow systems. Generally, extension authors use either static linking or rpath (http://en.wikipedia.org/wiki/Rpath_(linking)) to avoid the user having to run `sudo ldconfig`. Generally, you don't have to run `sudo ldconfig` unless it is stated in the .info file.
If you use `deb2dsl` to make a DSL extension, you will, in many cases, need to run `sudo ldconfig`. This is when one or more of the debs you use contain shared libraries - i.e. most of the time, since Debian uses shared libraries exclusively (in order for one shared library to be used by multiple apps), and Debian prohibits the use of rpath (because it can cause serious problems - see this page and this page). `apt-get` is able to use meta-data in .deb packages to determine if a .deb contains shared libraries. If it does, `apt-get` automatically runs `ldconfig`. However, `mydsl-load` cannot do this when loading extensions made with `deb2dsl`.
|