LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2004, 09:31 PM   #1
fng_#1
Member
 
Registered: Sep 2004
Location: Delaware
Distribution: Mandrake 10. + SuSe 9.1
Posts: 46

Rep: Reputation: 15
Talking Ld_library_path


ok to start I am REALLY new to linux.
I am using redhat 9 and I am trying to install xine
I have successfully installed the xine-lib-1-rc6a using ./configure and make install commands
however when I try to install the xine-ui stuff it says that it cannot find lib and to edit the LD_LIBRARY_PATH to do so I have tried many different things but can't quite get it if anyone could help I would Greatly LOVE it....

fng_#1

Thanx
 
Old 09-19-2004, 09:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, and welcome to LQ.

I believe that RH doesn't have /usr/local/lib
in its /etc/ld.so.conf ... if you add that line to
the file and run ldconfig (both as root) you
should be fine ...

Alternatively you can add
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
to your ~/.bashrc or ~/.bash_profile


Cheers,
Tink
 
Old 09-19-2004, 10:01 PM   #3
fng_#1
Member
 
Registered: Sep 2004
Location: Delaware
Distribution: Mandrake 10. + SuSe 9.1
Posts: 46

Original Poster
Rep: Reputation: 15
Talking

ok thankyou for your reply!

I was wondering why I couldn't find it when it told me to look for it

however could you give me an example of what the command line should look like please
I am very new like I said and I am very proud of myself that I actually got it to work on my notebook

i tried running idconfig and it told me I was wrong

fng_#!

thanx
 
Old 09-19-2004, 10:31 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
ahhhhhh
the command is ldconfig (starts with an L)
not idconfig
it's an unreadable font thing

ld is the GNU dynamic linker
as the tinkster has pointed out libs you compile yourself by default go in /usr/local/lib
ld looks for libs in /lib and /usr/lib
then it look in /etc/ld.so.cache
which is created by putting paths in /etc/ld.so.conf with a text editor as root
and running ldconfig as root

LD_LIBRARY_PATH
is an old lagacy Unix shell environment variable
Linux can still use many many of these older type shell variables
most people don't use this one any more or its more obscure cousins cause /etc/ld.so.conf gets the job done so well

to look at what shell variables you have set type
set
(what else !)
all of these and many more can be added to or deleted
even shell functions can be created as shell environmental variables with the
export and unset commands
shell variables can be altered for just the shell window you have open or can be put in configuration files once again as tinkster so correctly pointed out so they are in effect all the time

Last edited by foo_bar_foo; 09-19-2004 at 10:34 PM.
 
Old 09-19-2004, 11:33 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by foo_bar_foo
to look at what shell variables you have set type
set
(what else !)
env

<grin> ... particularly useful if you use bash_completion


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
???? Ld_library_path ???? g452 Linux - Software 9 08-26-2004 03:00 PM
Ld_library_path barrys Mandriva 2 06-15-2004 12:19 PM
Ld_library_path Dogface1SG Linux - Software 1 11-16-2003 01:28 AM
where is LD_LIBRARY_PATH Ninja_212 Slackware 4 10-07-2003 10:41 PM
Ld_library_path ? dahmad Linux - Newbie 5 02-21-2003 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration