Results 1 to 8 of 8
Hi, Im trying to update my libraries with ldconfig through ssh. When I type "ldconfig" however, I get this message:
bash: ldconfig: command not found
I have used it before, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-01-2004 #1Just Joined!
- Join Date
- Feb 2004
- Posts
- 30
ldconfig through ssh
Hi, Im trying to update my libraries with ldconfig through ssh. When I type "ldconfig" however, I get this message:
bash: ldconfig: command not found
I have used it before, just not though ssh, how do I get it to run?
thx.
- 03-01-2004 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Depending on how you became root, you may need to run it as /sbin/ldconfig.
- 03-01-2004 #3Just Joined!
- Join Date
- Feb 2004
- Posts
- 30
nope, that didnt work...
I became root by suing after I logged in as another user.
- 03-01-2004 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Did you run only `su'? In that case, try running `su -' instead. The dash tells su to perform a full login process instead of just changing the UID to 0.
- 03-01-2004 #5Just Joined!
- Join Date
- Feb 2004
- Posts
- 30
Thanks man, I never knew about that lol!
- 03-01-2004 #6Just Joined!
- Join Date
- Feb 2004
- Posts
- 30
Hmm I get another error now. Here's what I am trying to do:
I am installing the java runtime (j2re-1.3.1_11-linux-i586[1].rpm.bin) on redhat 9.
I ran the binary and installed the rpm fine. I type "java --version" to see if it worked and get "Error: can't find libjava.so". So I put the line "/usr/java/jre1.3.1_11/lib/i386" (where the file is located) in my ld.so.conf file and run ldconfig. This is not working, it still can't find the libjava.so file.
Please help me.
- 03-01-2004 #7Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
It's quite natural that it didn't work by putting /usr/java/jre1.3.1_11/lib/i386 into ld.so.conf, since the libjava.so file isn't linked by the ELF loader. It is dynamically loaded by the java program later.
It's still strange that it doesn't work, though... Maybe you should try upgrading to the latest version? 1.3.1 is pretty old, after all.
- 03-01-2004 #8Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
you may want to install jdk1.4...its the latest.
Fixing Unix is better than working with Windows.
http://nikhilk.homedns.org/projects/index.html


Reply With Quote
