LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-05-2005, 01:20 PM   #1
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Rep: Reputation: 15
Question AWK (could be JVM?) Error - libdl.so.2/libc.so.6


I am receiving the following error attempting to run a shell script on (an InstallAnywhere launcher to be precise) that seems to lead me to believe that I am missing some installed resource on my FC4 x86_64 installation or have something set up improperly (the following is identical to that which occurs on another FC4 x86_64 machine):

Code:
[root@mace PROJECT_main_2005-10-04]# ./PROJECT
awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/jdks/64/jdk1.5.0_05/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
I have run a check to see where things are, and it all seems to be in place... I even ran an ldconfig to be sure that my /etc/ld.so.conf was populated. The following output illustrates the output of this data:



Code:
[root@mace ~]# locate libdl.so.2
/lib64/libdl.so.2
/lib/libdl.so.2

[root@mace ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/lib64

[root@mace ~]# rpm -q --whatprovides libdl.so.2
glibc-2.3.5-10
glibc-2.3.5-10.3

[root@mace ~]# rpm -q --whatprovides libc.so.6
glibc-2.3.5-10
glibc-2.3.5-10.3

[root@mace ~]# rpm -q --whatprovides libpthread.so.0
glibc-2.3.5-10
glibc-2.3.5-10.3

[root@mace ~]# rpm -qa | grep glibc
glibc-common-2.3.5-10.3
glibc-headers-2.3.5-10.3
glibc-debuginfo-2.3.5-10.3
glibc-utils-2.3.5-10.3
glibc-devel-2.3.5-10
glibc-2.3.5-10
glibc-devel-2.3.5-10
glibc-profile-2.3.5-10.3
glibc-2.3.5-10.3
glibc-devel-2.3.5-10.3
glibc-2.3.5-10
glibc-kernheaders-2.4-9.1.94
glibc-common-2.3.5-10
glibc-headers-2.3.5-10
glibc-2.3.5-10.3
glibc-devel-2.3.5-10.3
An additional piece of information is that when running on an FC4 x86 (non-64) install, everything seems to be working just fine. Could it be the JVM (Sun Java 1.5.0_05)? The problem with that is everything else I run using command-line (non-InstallAnywhere scripted) Java commands, things seem to work fine

Does anyone have any ideas of what I need to do in order to get this working?

Last edited by revof11; 10-05-2005 at 01:37 PM.
 
Old 10-27-2005, 10:40 AM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
I've been bumping into the exact same problem for a couple months... I get the same errors with other installAnywhere scripts (ZendStudio installer, Gallery2 remote....).

I did not have time to investigate the problem deeper but it looks to me as if the install anywhere script is looking for 32bit versions of library... in the 64bit path.

More on this later if I make any findings... and any suggestion/comment/solution appreciated

Last edited by zeitounator; 10-27-2005 at 10:43 AM.
 
Old 11-29-2005, 05:52 AM   #3
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Solution finally

OK !!! After months I think I finally got the solution to this installAnywhere bug on x86_64.

The solution is not trivial but here it goes (tested successfully on the installAnywhere scripts for ZendStudioClient-5.0.0 and GalleryRemote).
  • Open the bin installer file in an hexadecimal editor (such as hexedit).
  • Look for the line
    Code:
    export LD_ASSUME_KERNEL=2.2.5
    and replace it with
    Code:
    #xport LD_ASSUME_KERNEL=2.2.5
  • Save the file and lauch. It should work
 
Old 11-29-2005, 05:56 AM   #4
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Forgot to mention you have to apply the same hack on the resulting LaunchAnywhere script once installed...
 
Old 05-22-2006, 05:21 AM   #5
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Easier solution with sed

Assuming the install anywhere script is called Install.bin
Code:
cp Install.bin Install.bak
cat Install.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > Install.bin
rm Install.bak
Reference: http://www.zend.com/support/knowledg...84&view_only=1
 
Old 05-22-2006, 07:29 AM   #6
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Original Poster
Rep: Reputation: 15
PERFECT!
You are, indeed, my hero, sir.
 
Old 07-04-2006, 02:13 AM   #7
zhaosj
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Rep: Reputation: 0
thanks all. I can do it right too.
 
Old 07-25-2006, 02:47 AM   #8
mohan.kgs
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Smile

Awesome solution. Thanks a lot.
 
Old 02-06-2007, 12:26 PM   #9
norcon
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
Having had similar difficulties loading an application on x86_64, I followed your advice and succeeded having changed the "export LD_ASSUME_KERNEL=2.2.5" line. However you mention that I also need to apply the same hack to the resulting LaunchAnywhere script, but I am unable to find a similar line in any .lax file. Please could you point me in the right direction to find the right script and what needs changing in it.

Thanks
 
Old 02-06-2007, 03:07 PM   #10
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Original Poster
Rep: Reputation: 15
It's not the LAX file.
It's the shell script it outputs.

When you do a "Create Launcher"... it's the file that it creates.
 
Old 02-07-2007, 12:18 PM   #11
norcon
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
Thanks for your advice.....apologies for my lack of knowledge....I'm learning all the time!

I have found two shell scripts with seemingly identical content which have two lines that I am looking for. These are:

# the call will hang, if it -is- vulnerable!
export LD_ASSUME_KERNEL=2.2.5

if [ $linux_LD_ASSUME_KERNEL_hack -eq 1 ]; then
LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL

I have changed the "export" to "#xport" in each case but the application dill not run. Maybe there is some other problem with the application??
 
Old 04-19-2007, 05:44 PM   #12
appacoet
LQ Newbie
 
Registered: Jun 2005
Location: Birmingham, AL USA
Distribution: Suse 9.2 Professional
Posts: 6

Rep: Reputation: 0
Awsome Solution!!! Thank you sir!!
 
Old 09-12-2008, 03:04 PM   #13
rv99
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Same problem - Brightmail AntiSpam under FC9

Thanks dude - you are a true scholar and gentleman.
 
Old 12-22-2009, 09:12 PM   #14
gnome_dj
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
When I install sys prompted same to you, in accordance with the method you have done after the operation, found that there is an error

awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/usr/alienbrain/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

when I
cp Install.bin Install.bak
cat Install.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > Install.bin
rm Install.bak

the prompted ware same.
now what can i do? who can help me~
 
Old 08-29-2014, 02:34 PM   #15
sheslostcontrol
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by zeitounator View Post
Assuming the install anywhere script is called Install.bin
Code:
cp Install.bin Install.bak
cat Install.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > Install.bin
rm Install.bak
Reference: http://www.zend.com/support/knowledg...84&view_only=1
Installing some legacy software today on CentOS 7, and feel lucky to have stumbled across this solution. Worked like a charm. The Zend KB article is 404'ed.
 
  


Reply



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
JVM error when I run eclipse tareqth Linux - Software 4 07-22-2005 02:53 AM
CorelPhotoPaint on SuSe 9.1. (libc error) kyanite Linux - Software 0 09-02-2004 02:48 PM
error running eclipse with stock jvm! c24chan Slackware 2 05-09-2004 03:39 AM
libc.so relocation error??? SIR_Taco Slackware 1 11-24-2003 06:23 PM
GNU libc libraries error Kaotica Linux - Software 1 04-16-2003 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:39 PM.

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
Open Source Consulting | Domain Registration