Today I installed a Fedora7 with no java environment in it. I had a binfile, but I couldn't install it. I was depressed. I tried it for N times, the online method is chmod + xxxxx. bin and then execute. /xxxx. bin. I tried and always reported such an error. /java_app_platform_sdk-5_02-linux.bin: errorwhileloadingsharedlibraries: lib
Today I installed a Fedora7 with no java environment in it. I had a binfile, but I couldn't install it. I was depressed. I tried it for N times, the online method is chmod + x xxxx. bin
Then execute./xxxx. bin. I tried and always reported such an error.
. /Java_app_platform_sdk-5_02-linux.bin: error while loading shared libraries: libstdc ++. so.5: cannot open shared object file: No such file or directory. How can someone else not meet it? Just use the two commands and check it again, find the libstdc library in a Foreign Forum and report the error. Run the command yum install compat-libstdc ++-33 and install it.
This is really easy to use./xxxx. bin. It seems that it will be easy to use this online installation command for a few library files in the future.
Restrictions on permissions during installation are still quite troublesome. I started to directly run su root and then run the old command under root. The error is as follows:
Extracting installation files...
Launching Java (TM) 2 Runtime Environment...
Xlib: connection to ": 0.0" refused by server
Xlib: No protocol specified
To access the Internet, you have to switch to a common user. However, you must first grant the user permission to chmod a + x xxxx. bin su, and then execute./xxxx. bin.
Finally, use rpm-ivh xxxx to generate the rpm package. I installed jdk1.6 with rpm. It is estimated that sun has set the environment variables when installing it, on the terminal side, you can directly view your jdk version using java-version.