Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I get the following message when intallation fails...
Quote:
[root@localhost java]# ./j2eesdk-1_4-linux.bin
./j2eesdk-1_4-linux.bin: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
[root@localhost java]#
I have not got a clue what is wrong. I have libstc++. Ant help will be greatly appreciated.
Are you sure you have all the needed packages? I have the following and had no problem installing java.
Looking in installed packages for a providing package
Installed package: libstdc++.i386 0:3.3.3-7 matches with libstdc++
Installed package: libstdc++34.i386 0:3.4.0-1 matches with libstdc++34
Installed package: compat-libstdc++.i386 0:7.3-2.96.126 matches with compat-libstdc++
Installed package: libstdc++-devel.i386 0:3.3.3-7 matches with libstdc++-devel
4 results returned
Does anyone know what exactly this message relates to.
libstdc++-libc6.2-2.so.3
What should I be looking for. Where would it be in the filesystem. Where would I get the correct version.
I am completely new to linux but not computing.
The reason I installed linux on my second machine was to go on line, develop c and c++ programs with and without IDE's, develop Java using SDK, develop smalltalk.
So far going on line is a no no. My connection via broadband would have to be by ethernet, I only have USB and apparently this cannot be done.
I cant get Java installed on my machine because a shared library is missing. I cant find it on the machine and so far searches on the internet have been fruitless.
I cant get Squeak smalltalk to unpack onto my machine. It just hangs whilst unzipping the tar.gz file.
Why are there never any step by step guides to Linux software. I have been Fu***** around now for days trying fruitlessly to install Java and Squeak on my machine and getting angry and pissed off.
Was my post invisible? I will try to help you one more time.
The above packages are the ones I have installed. With those packages, I was able to compile java without a problem. Upon doing further research, I see that the compat-libstdc++ package is what you need, it will provide that missing file. Install that first, and then try java again.
If you need further help on how to install this package first, post here.
All sorted. Thanks stonecrest but the problem was that I was trying to install the enterprise edition when I required the standard edition. Standard edition installed okay I think, although I do get errors concerning the CLASSPATH with a simple program I written to test the installation. A simple date prog produced the following errors when javac was processed.
Quote:
[tamtam@localhost Java]$ javac HelloDate.java
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.lang.Thread.finish(Thread.java:183)
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.lang.Thread.finish(Thread.java:185)
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.lang.Thread.finish(Thread.java:185)
...THE SAME MESSAGE CONTINUES FOR NUMEROUS LINES BEFORE PROMPT RETURNS.
The relevant class is produced and executing with
$ java HelloDate
produces the expected output
This may have something to do with the following which is installed also.
Copyright (c) 1996-2004 Kaffe.org project contributors (please see
the source code for a full list of contributors). All rights reserved.
Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc.
The Kaffe virtual machine is free software, licensed under the terms of
the GNU General Public License. Kaffe.org is a an independent, free software
community project, not directly affiliated with Transvirtual Technologies,
Inc. Kaffe is a Trademark of Transvirtual Technologies, Inc. Kaffe comes
with ABSOLUTELY NO WARRANTY.
What a coincidence. I had the exact same problem today. Running Mandrake 10.1, and trying to install java and getting this error message. I also found the problem was that I had the enterprise edition. After installing the standard edition with the command ./j2sdk-1_4_2_06-linux-i586.bin I found that I can't actually run it. I type in "java -version" and I get the error message "bash: java: command not found"
I'm a complete newbie to this and sorry if I'm going off track on this thread, does anyone know why this is not working? Do I need to do anything else to get it to work? I thought this should tell me the version?
Now run "source .bash_profile" and the changes should be made.
although I do get errors concerning the CLASSPATH with a simple program I written to test the installation
Have you set the JAVA_HOME environment variable? Maybe you need to set CLASSPATH environment variable. Add the following line to .bash_profile:
Code:
export CLASSPATH=/usr/local/java/lib:.
Now run "source .bash_profile" and try compiling the program again.
I have assumed that java has been installed to /usr/local/java. If not, substitute it with the correct path.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.