LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



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

Rep: Reputation: 30
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/ld.so.conf 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, 07:45 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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



Cheers,
Tink
 
Old 05-25-2005, 07: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/ld.so.conf and add the line
/usr/local/lib
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, 08:08 PM   #4
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

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


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


All times are GMT -5. The time now is 04:17 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration