Unix Technical Forum

Slackware 12/Alsa Problem

This is a discussion on Slackware 12/Alsa Problem within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Jim Diamond <Jim.Diamond@nospam.AcadiaU.ca> wrote: > If you look in your /etc/ld.so.conf you will probably see the line > /usr/local/lib ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 06-27-2008, 10:10 AM
Henrik Carlqvist
 
Posts: n/a
Default Re: Slackware 12/Alsa Problem

Jim Diamond <Jim.Diamond@nospam.AcadiaU.ca> wrote:
> If you look in your /etc/ld.so.conf you will probably see the line
> /usr/local/lib


Yes, it really does make sense to have /usr/local directories searched
first. The directory /usr/local usually contains different kinds of custom
upgrades and addons. If you install a custom library upgrade you want to
use that instead of the default system library.

A program called ldd can be used to see how different binaries link to
dynamic libraries. Example:

$ldd /usr/bin/amixer
libm.so.6 => /lib/libm.so.6 (0x4002d000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x40051000)
libdl.so.2 => /lib/libdl.so.2 (0x400f7000)
libpthread.so.0 => /lib/libpthread.so.0 (0x400fa000)
libc.so.6 => /lib/libc.so.6 (0x4014b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

(The above is on an old Slackware installation).

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-01-2008, 12:02 PM
Eef Hartman
 
Posts: n/a
Default Re: Slackware 12/Alsa Problem

Dan C <youmustbejoking@lan.invalid> wrote:
> Most likely because /usr/local comes before /usr in the $PATH environment
> variable. It does on my system, for both regular users and for root.


For LIBRARIES it is the order in /etc/ld.so.conf (or environment
variable LD_LIBRARY_PATH) that determines the order in which ld.so
searches for (shared) libraries (and LD_LIBRARY_PATH comes _before_
the default cache, configured by /etc/ld.so.conf, as normally you'd
want to add those libraries before cq instead OF the default ones).

> Use 'echo $PATH' to view yours.


PATH is only for "real" executables (I know, Shared Objects also
have execute permission bits on, but they don't contain a "main"
program).
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com