LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-29-2013, 03:27 AM   #1
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Rep: Reputation: Disabled
unable to load libjvm.so


Hi,

I am getting below error while running mount -a. Can anybody tell me to fix this plz

# mount -a
/usr/lib/hadoop/bin/fuse_dfs: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory


I have files on system

# locate libjvm.so
/home/oracle/app/oracle/product/11.2.0/dbhome_1/jdk/jre/lib/amd64/server/libjvm.so
/mnt/san2/projects/MAST0001-3/users/aye/jdk1.6.0_29/jre/lib/amd64/server/libjvm.so
/mnt/san4/oracle/backup/2012-06-06/app/oracle/product/11.2.0/dbhome_1/jdk/jre/lib/amd64/server/libjvm.so
/opt/jdk1.7.0_17/jre/lib/amd64/server/libjvm.so
/root/jdk1.7.0/jre/lib/amd64/server/libjvm.so
/root/jdk1.7.0_17/jre/lib/amd64/server/libjvm.so
/usr/java/jdk1.7.0_17/jre/lib/amd64/server/libjvm.so
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/x86_64/client/libjvm.so
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/x86_64/server/libjvm.so
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
/usr/lib/jvm/java-1.6.0-sun-1.6.0.37.x86_64/jre/lib/amd64/server/libjvm.so
/usr/lib64/gcj-4.4.4/libjvm.so


Thanks,
 
Old 03-29-2013, 03:51 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
try to copy this lib into a common directory (like /usr/lib or similar)
 
Old 04-02-2013, 11:15 AM   #3
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
I found the path of jvm and made soft link to the standard directory. Now it is fine.

Before

# ldd /usr/lib/hadoop/bin/fuse_dfs
linux-vdso.so.1 => (0x00007fff4c5ad000)
libfuse.so.2 => /lib64/libfuse.so.2 (0x00000031e3a00000)
librt.so.1 => /lib64/librt.so.1 (0x0000003fb9200000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003fb8600000)
libjvm.so => not found
libhdfs.so.0.0.0 => /usr/lib64/libhdfs.so.0.0.0 (0x00007f01a437e000)
libm.so.6 => /lib64/libm.so.6 (0x0000003fb8200000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003fb8a00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fb7e00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fb7a00000)
libjvm.so => not found


ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0.37.x86_64/jre/lib/amd64/server/libjvm.so /lib64/libjvm.so

After
# ldd /usr/lib/hadoop/bin/fuse_dfs
linux-vdso.so.1 => (0x00007fff3edff000)
libfuse.so.2 => /lib64/libfuse.so.2 (0x00000031e3a00000)
librt.so.1 => /lib64/librt.so.1 (0x0000003fb9200000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003fb8600000)
libjvm.so => /lib64/libjvm.so (0x00007f97553f8000)
libhdfs.so.0.0.0 => /usr/lib64/libhdfs.so.0.0.0 (0x00007f97551eb000)
libm.so.6 => /lib64/libm.so.6 (0x0000003fb8200000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003fb8a00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fb7e00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fb7a00000)
 
  


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
can't find libjvm.so sam_nyc Linux - Newbie 2 03-02-2012 12:29 PM
Which libjvm.so for Redhat ES 6 64 bit? barrie123 Red Hat 2 02-14-2011 01:07 AM
i am unable to load mappingtable by using dmsetup and unable to create vitualdevice varunsharma35 Linux - Software 0 12-20-2008 09:52 AM
ipw2200 - Unable to load ucode, unable to load firmware blizinsk Linux - Wireless Networking 2 10-10-2004 09:28 AM
can't find libjvm.so? dt23 Mandriva 2 07-20-2004 01:53 AM


All times are GMT -5. The time now is 09:08 AM.

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