Can anyone help me solve the following error?
{I run FC2 completely up2date, untainted kernel}
My problem is, I want to install TogetherControlCenter 6.1 from Borland and I keep getting errormessages, so it never gets installed. The initial problem was an error message indicating that libjvm.so could not be found. Using google I found indications that Linux for some reason does not search upper level directories when looking for shared libraries and that this can be remedied by defining LD_LIBRARY_PATH. However, the java jre-environment Borland creates is in a /tmp directory with a variable name, so I had LD_LIBRARY_PATH point to my own jdk lib-directory that contains libjvm.so. So I inserted:
LD_LIBRARY_PATH="/usr/java/j2sdk1.5.0/jre/lib/i386/client:/usr/java/j2sdk1.5.0/jre/lib/i386";export LD_LIBRARY_PATH
and executed the binary from the cd. However, now the error msg is:
" Error occurred during initialization of VM Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference "
So probably I need glibc2.0? Is this the right conclusion? Can I install glibc2.0 besides the default FC2-glibc (2.3)?
Can anyone help me here?
(I include the complete error message at the bottom.)
Guus.
Am Mo, den 01.11.2004 schrieb A.J. Bonnema um 3:25:
Can anyone help me solve the following error?
Error occurred during initialization of VM Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Guus.
Ulrich Drepper did explain that several times in the past, i.e. see this posting
http://marc.theaimsgroup.com/?l=fedora-list&m=107073685404718&w=2
More hits from the archive:
http://marc.theaimsgroup.com/?l=fedora-list&w=2&r=1&s=__libc_wai...
Alexander
Alexander Dalloz wrote:
Am Mo, den 01.11.2004 schrieb A.J. Bonnema um 3:25:
Can anyone help me solve the following error?
Error occurred during initialization of VM Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Guus.
Ulrich Drepper did explain that several times in the past, i.e. see this posting
http://marc.theaimsgroup.com/?l=fedora-list&m=107073685404718&w=2
More hits from the archive:
http://marc.theaimsgroup.com/?l=fedora-list&w=2&r=1&s=__libc_wai...
Alexander
Thank you, Alexander. I had been searching for the libjvm.so-error (with which this started that I forgot to search for the libjava error.
My appologies.
Guus.
Alexander Dalloz wrote:
Ulrich Drepper did explain that several times in the past, i.e. see this posting
http://marc.theaimsgroup.com/?l=fedora-list&m=107073685404718&w=2
More hits from the archive:
http://marc.theaimsgroup.com/?l=fedora-list&w=2&r=1&s=__libc_wai...
Alexander
Alexander,
It doesn't work for me. I paste the result at the end of the message. Do you have any idea what i have done wrong? A summary of what I did:
1. First I set LD_LIBRARY_PATH to contain libjvm.so and libzip.so:
LD_LIBRARY_PATH="/usr/java/jdk1.5.0/jre/lib/i386/client:/usr/java/jdk1.5.0/jre/lib/i386"; export LD_LIBRARY_PATH
2. Then I compiled the source like the c-file comments say:
gcc -shared -o libcwait.so libcwait.c -fpic -O
3. Finally I executed the install command:
LD_PRELOAD="/home/abonnema/tcc6_1/libcwait.so ./tcc6.1lin.bin"
and I got the error (see bottom of the message).
I am not a C-programmer so I really don't understand the error. Do you know what is wrong?
Thank you very much for taking the effort to help.
Guus.
A.J. Bonnema wrote:
Alexander Dalloz wrote:
<snip>
Alexander,
It doesn't work for me. I paste the result at the end of the message. Do you have any idea what i have done wrong? A summary of what I did:
- First I set LD_LIBRARY_PATH to contain libjvm.so and libzip.so:
LD_LIBRARY_PATH="/usr/java/jdk1.5.0/jre/lib/i386/client:/usr/java/jdk1.5.0/jre/lib/i386"; export LD_LIBRARY_PATH
- Then I compiled the source like the c-file comments say:
gcc -shared -o libcwait.so libcwait.c -fpic -O
- Finally I executed the install command:
LD_PRELOAD="/home/abonnema/tcc6_1/libcwait.so ./tcc6.1lin.bin"
and I got the error (see bottom of the message).
I am not a C-programmer so I really don't understand the error. Do you know what is wrong?
Thank you very much for taking the effort to help.
Guus.
I finally solved this problem. Turns out the tip from Alexander was key to the solution. Only the LD_LIBRARY_PATH needs to point to a "compatible" jvm or you will get errors. When I executed the above commands using a 1.3.1 jvm the installation finally worked.
Alexander, thanks for you pointer (and your patience).
Just so the original problem is clear and problem and solution are in one place, I summarize what happened. I wanted to install Together Contol Center 6.1. The trouble started with the error message:
"/tmp/install.dir.12566/Linux/resource/jre/jre/bin/i386/native_threads/java: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory "
After fixing this with an LD_LIBRARY as above I got the following error message:
" Error occurred during initialization of VM Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference "
The final commands were:
LD_LIBRARY_PATH="/usr/java/jre1.3.1_13/lib/i386/client:/usr/java/jre1.3.1_13/lib/i386/"; export LD_LIBRARY_PATH LD_PRELOAD="/home/abonnema/tcc6_1/libcwait.so" ./tcc6.1lin.bin
(The LD_LIBRARY_PATH plus export is on one line).
Hope this helps someone save some time.
Guus.
A.J. Bonnema wrote:
I finally solved this problem. Turns out the tip from Alexander was key to the solution. Only the LD_LIBRARY_PATH needs to point to a "compatible" jvm or you will get errors. When I executed the above commands using a 1.3.1 jvm the installation finally worked.
Alexander, thanks for you pointer (and your patience).
Just so the original problem is clear and problem and solution are in one place, I summarize what happened. I wanted to install Together Contol Center 6.1. The trouble started with the error message:
"/tmp/install.dir.12566/Linux/resource/jre/jre/bin/i386/native_threads/java: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory "
After fixing this with an LD_LIBRARY as above I got the following error message:
" Error occurred during initialization of VM Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference "
The final commands were:
LD_LIBRARY_PATH="/usr/java/jre1.3.1_13/lib/i386/client:/usr/java/jre1.3.1_13/lib/i386/"; export LD_LIBRARY_PATH LD_PRELOAD="/home/abonnema/tcc6_1/libcwait.so" ./tcc6.1lin.bin
(The LD_LIBRARY_PATH plus export is on one line).
Hope this helps someone save some time.
Guus.
Add to these commands that executing the <path-Borland>/Borland/Together6.1/bin/Together.sh also needs the same preload, as in:
LD_PRELOAD="<path-my-libcwait>/libcwait.so" <path-Borland>/Borland/Together6.1/bin/Together.sh
(on one line offcourse).
Hope this helps (too).
Guus.