Could not find -Xrun library: libyjpagent.so

Questions about YourKit Java Profiler
Post Reply
Spice
Posts: 4
Joined: Tue Dec 28, 2004 9:40 am

Could not find -Xrun library: libyjpagent.so

Post by Spice »

Hello.
I have a problem with installing yjp-3.2

Don't working configuration:
1. Linux 2.4.27
2. YourKit Java Profiler 3.2 #451
3. Java version
$java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

4. Added <YJP Home>/bin/linux to the LD_LIBRARY_PATH
$/sbin/ldconfig
5. Test
$java -Xrunyjpagent:help
Error occurred during initialization of VM
Could not find -Xrun library: libyjpagent.so

Working configuration
1. Linux 2.4.27
2. YourKit Java Profiler 3.2 #451
3. Java version
$java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
4. Added <YJP Home>/bin/linux to the LD_LIBRARY_PATH
$/sbin/ldconfig
5. Test
$java -Xrunyjpagent:help
YourKit Java Profiler 3.2 #451 agent usage: -Xrunyjpagent[:help]|[:<option>, ...]
<skipped other output/>

Question:
How to run yjp under java version 1.4.x ?
Vladimir Kondratyev
Posts: 1626
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

1. Perhaps I'm wrong but ldconfig just rebuild information about libraries which are specified in ld.conf file. So there is no need to run ldconfig at all.

2. What is the output of "ldd libyjpagent.so"?
Spice
Posts: 4
Joined: Tue Dec 28, 2004 9:40 am

Post by Spice »

Vladimir Kondratyev wrote:1. Perhaps I'm wrong but ldconfig just rebuild information about libraries which are specified in ld.conf file. So there is no need to run ldconfig at all.
Yes, but I'm specified path in ld.conf :),
2. What is the output of "ldd libyjpagent.so"?
#ldd /opt/yjp/bin/linux/libyjpagent.so
libltdl.so.3 => not found
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00158000)
libc.so.6 => /lib/libc.so.6 (0x0020c000)
libm.so.6 => /lib/libm.so.6 (0x00319000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0033c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

but,
#ldd /opt/yjp-eap/bin/linux/libyjpagent.so
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x0017d000)
libm.so.6 => /lib/libm.so.6 (0x00230000)
libc.so.6 => /lib/libc.so.6 (0x00254000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00361000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

#apt-cache search libltdl
libltdl - dlopen wrapper for GNU libtool

#apt-get install libltdl
#java -Xrunyjpagent:help
YourKit Java Profiler 3.2 #451 agent usage: -Xrunyjpagent[:help]|[:<option>, ...]

It's worked now ;). Thnx
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Yes, you are right, ltdl is not needed anymore in the 4.0 EAP version. The corresponding change was not (and will not) be back ported to 3.x.
Post Reply