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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
10-05-2005, 01:20 PM
|
#1
|
|
Member
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108
Rep:
|
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.
|
|
|
|
10-27-2005, 10:40 AM
|
#2
|
|
Member
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262
Rep:
|
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.
|
|
|
|
11-29-2005, 05:52 AM
|
#3
|
|
Member
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262
Rep:
|
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
|
|
|
|
11-29-2005, 05:56 AM
|
#4
|
|
Member
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262
Rep:
|
Forgot to mention you have to apply the same hack on the resulting LaunchAnywhere script once installed...
|
|
|
|
05-22-2006, 05:21 AM
|
#5
|
|
Member
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262
Rep:
|
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
|
|
|
|
05-22-2006, 07:29 AM
|
#6
|
|
Member
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108
Original Poster
Rep:
|
PERFECT!
You are, indeed, my hero, sir.
|
|
|
|
07-04-2006, 02:13 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2005
Posts: 9
Rep:
|
thanks all. I can do it right too.
|
|
|
|
07-25-2006, 02:47 AM
|
#8
|
|
LQ Newbie
Registered: Jul 2006
Posts: 1
Rep:
|
Awesome solution. Thanks a lot.
|
|
|
|
02-06-2007, 12:26 PM
|
#9
|
|
LQ Newbie
Registered: Feb 2007
Posts: 2
Rep:
|
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
|
|
|
|
02-06-2007, 03:07 PM
|
#10
|
|
Member
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108
Original Poster
Rep:
|
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.
|
|
|
|
02-07-2007, 12:18 PM
|
#11
|
|
LQ Newbie
Registered: Feb 2007
Posts: 2
Rep:
|
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??
|
|
|
|
04-19-2007, 05:44 PM
|
#12
|
|
LQ Newbie
Registered: Jun 2005
Location: Birmingham, AL USA
Distribution: Suse 9.2 Professional
Posts: 6
Rep:
|
Awsome Solution!!! Thank you sir!!
|
|
|
|
09-12-2008, 03:04 PM
|
#13
|
|
LQ Newbie
Registered: Oct 2005
Posts: 1
Rep:
|
Same problem - Brightmail AntiSpam under FC9
Thanks dude - you are a true scholar and gentleman.
|
|
|
|
12-22-2009, 09:12 PM
|
#14
|
|
LQ Newbie
Registered: Dec 2009
Posts: 3
Rep:
|
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~
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|