LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PATH problem? (https://www.linuxquestions.org/questions/linux-newbie-8/path-problem-35231/)

makai_wi 11-12-2002 12:05 AM

PATH problem?
 
Okay, I get this when trying to compile xine-ui-0.9.13... I just did an install of xine-lib-0.9.13 that worked with out a hitch...

checking for XINE-LIB version >= 0.9.10... 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 ***

----

Now I also get this when trying to install LimeWire... I installed j2re1.4.1_01 via the rpm install file and it went fine with out any errors as well...


Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

----

So, what's the deal here? Am I missing something, do I have to register all of this manually after compiling or something? I am running RedHat 8.0, let me know if you need to know any more.

DavidPhillips 11-12-2002 12:14 AM

you must run ldconfig


it will rebuild the library cache file


occasionally a program will put libs in some non standard location and then you will be required to add the path to /etc/ld.so.conf and then run ldconfig

running ldconfig will correct the problem as long as your /etc/ld.so.conf has the path to the libs you installed

one common location that you should add to ld.so.conf is /usr/local/lib

It's pretty common to see it missing

also this assumes you have a folder there

makai_wi 11-12-2002 12:37 AM

bash: ldconfig: command not found
 
I can't run ldconfig, bash tells me command not found. Although I can do a 'man ldconfig'.

DavidPhillips 11-12-2002 12:46 AM

you must be root in roots environment for it to be in your path, and for you to have permission to use it

DavidPhillips 11-12-2002 12:47 AM

su

/sbin/ldconfig

or

su -

ldconfig

makai_wi 11-12-2002 12:48 AM

I logged in via su on my console... do I have to be in a specific directory or something?

DavidPhillips 11-12-2002 01:02 AM

did you login as root or just su to root

su
or
su root

makes you root but your environment never changes so your path is not the same as roots path

su -
or
su - root

changes you to root and also moves you into roots environment

it is good to use

su -


if you are root run this

echo $PATH


make sure you have /sbin in your path

DavidPhillips 11-12-2002 01:06 AM

[david@Firedragon david]$ whoami
david
[david@Firedragon david]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/david/bin
[david@Firedragon david]$ su
Password:
[root@Firedragon david]# whoami
root
[root@Firedragon david]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/david/bin
[root@Firedragon david]# su -
[root@Firedragon root]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin
[root@Firedragon root]#

makai_wi 11-12-2002 01:24 AM

ldconfig now works, thank you! What did all of that do?

DavidPhillips 11-12-2002 01:35 AM

Your welcome




if you mean ldconfig

it reads /etc/ld.so.conf
it writes /etc/ld.so.cache

if you mean my last post

it got you to login as root


:Pengy: :Pengy: :Pengy:

makai_wi 11-12-2002 02:09 AM

ugg
 
Okay, now it's giving me the same error but this time for AALIB... I have no idea where this got put in the xine-lib install... Any ideas on where I can find a list of where all of the files got put? Or is it any bodies guess?

checking for AALIB version >= 1.2... no
*** The aalib-config|aainfo program installed by AALIB could not be found
*** If AALIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or use --with-aalib-prefix to set the prefix
*** where AALIB is installed.
checking for pkg-config... /usr/bin/pkg-config
checking for DirectFB... *** All of DIRECTFB dependent parts will be disabled ***
checking for png_read_info in -lpng... no
configure: error: *** libpng is needed (PNG library not found) - try to use --with-png-prefix option ***

neo77777 11-12-2002 07:54 AM

well there is more than aalib (it allows you to see graphics on console, it is pretty cool, but if you ain't need it you ain't need to install it. You must have libpng installed, I can see your future - you are browsing http://www.rpmfind.net to get the libs.

makai_wi 11-12-2002 10:56 AM

I installed png via RPM with no luck, I did an ldconfig just to be sure and still I am getting that same error. Did it install the library on to a non-standard path or something?

DavidPhillips 11-12-2002 10:59 AM

if you need to find something use

locate something

to updated locates database use

updatedb

makai_wi 11-12-2002 11:02 AM

I tried updatedb and it didn't work, I seem to now have two versions of pnglib, and they are not in the $PATH directories... Going to try and fix that, I will get back to you... What did updatedb do?


All times are GMT -5. The time now is 05:20 PM.