Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-25-2005, 06:39 PM   #1
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Rep: Reputation: 31
how to set LD_LIBRARY_PATH environment variable

i have a quick question, i was trying to install xine and followed the website's instruction to install xine-lib first and then xine-ui. i installed xine-lib-1.0.1 and i think everything went fine. then i tried to install xine-ui-0.99.3 and getting the following message

checking for xine-config... /usr/local/bin/xine-config
checking for XINE-LIB version >= 1.0.0... no
*** Could not run XINE test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding XINE or finding the wrong
*** version of XINE. If it is not finding XINE, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** You should install xine-lib first **

i tried ldconfig as root and tried to recompile but still getting the same error. my question is , how do i set my LD_LIBRARY_PATH? thanks in advance
Old 05-25-2005, 06:45 PM   #2
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
ldconfig -v | grep xine

If it's there all should be well.

Next step (if ldconfig didn't spot it):
find / -iname "*xine*" | grep lib
If it's there you can
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/you/found/with/find

Old 05-25-2005, 06:46 PM   #3
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You can set variables like LD_LIBRARY_PATH in quite a few places. /etc/profile, ~/.bash_profile and ~/.bashrc are the obvious ones. However in this case it would probably make more sense to edit /etc/ and add the line
and then run ldconfig again (read man ldconfig) or (my prefered option) compile xine-lib with
./configure --prefix=/usr
Then it will be installed in /usr/lib which ldconfig will always check
Old 05-25-2005, 07:08 PM   #4
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
thanks Andrew and Tinkster, followed your instructions and now i have a working xine. As always, you guys come through with great detailed advise.


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
How to set a value of environment variable? ukrainet Linux - Newbie 1 12-28-2004 04:33 AM
How to set an environment variable? dantemarmol Linux - Newbie 7 08-22-2003 10:59 AM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 12:38 PM
How to set a environment variable in rh? yenonn Linux - Newbie 11 02-21-2003 10:24 PM
how to set CC environment variable General 2 12-18-2001 01:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:00 AM.

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