LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cannot install glassfish on debian Lenny x64 (https://www.linuxquestions.org/questions/linux-server-73/cannot-install-glassfish-on-debian-lenny-x64-782091/)

pliqui 01-13-2010 10:16 PM

Cannot install glassfish on debian Lenny x64
 
Good night all,

I'm trying to install glassfish enterprise server on an debian lenny x64 virtual machine.

I encounter some issues like the binary can only be execute by a 32bits JDK, need an xserver for install, all this has been take care of.

From Sun GlassFish Enterprise Server 2.1 Installation Guide
Quote:

If you are installing Sun GlassFish Enterprise Server on a 64–bit machine (running a 64–bit operating system), use a 32–bit JDK to install Sun GlassFish Enterprise Server on your 64–bit machine. You will need to use the following command: ./distribution_filename —javahome path to 32–bit JDK location
Latest 32bits JDK from SUN
Code:

glassadmin:/home/glassfish# java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)

My problem now is when i try to run the binary i'm getting this error
Code:

glassadmin:/home/glassfish# l
total 260M
-rwxr-xr-x 1 glassfish glassfish 260M 2009-11-12 08:17 sges_ee-2_1_1-linux.bin
glassadmin:/home/glassfish# ./sges_ee-2_1_1-linux.bin
./sges_ee-2_1_1-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

I went to the repos and download the library in question.

Code:

glassadmin:/home/glassfish# aptitude search libstdc++
v  libstdc++-dev                                  -
i  libstdc++5                                    - The GNU Standard C++ Library v3
i  libstdc++6                                    - The GNU Standard C++ Library v3

glassadmin:/home/glassfish# l /usr/lib/libstdc*
lrwxrwxrwx 1 root root  18 2010-01-13 22:31 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
-rw-r--r-- 1 root root 810K 2008-07-15 16:36 /usr/lib/libstdc++.so.5.0.7
lrwxrwxrwx 1 root root  28 2010-01-13 22:57 /usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.10
-rw-r--r-- 1 root root 996K 2009-01-02 06:15 /usr/lib/libstdc++.so.6.0.10

But still getting the error of shared libraries.

Thanks in advance for any tip.

pliqui 01-13-2010 10:33 PM

Found the answer
 
Just needed to install the following package and was done
Code:

aptitude install ia32-libs


All times are GMT -5. The time now is 05:10 AM.