Installing RAD 754, WCS Toolkit on Ubuntu 11.10

Posted by Unknown on
I'm almost done setting up eclipse and my Open Source J2ee development environment on Ubuntu, I decided to try setting up Commerce development toolkit on Ubuntu, I did expect this to be a bumpy ride, so here is my experience with RAD and WAS 7 test environment on Ubuntu 11.10


Step 1
If you are trying to run installer launchpad from your external USB/hard drive you need to ensure you copy all the content to some location which has execute permission, on Ubuntu all external drives are automatically mounted to /media folder and for some reason this does not have permissions to run any program.
you may get following error if you run launchpad from external drive.

-bash: ./launchpad.sh: Permission denied

To work around this issue copy all the installer files to your home folder and then execute launchpad from this location.


Step 2

Before we get started we need to ensure we have installed libstdc++5, IBM installer depends on this library, this can be installed by running following from command prompt

sudo apt-get install libstdc++5
Validate your installation by running following from command prompt

ldconfig -p | grep libstdc++

You should see something similar

libstdc++.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
libstdc++.so.6 (libc6) => /usr/lib32/libstdc++.so.6
libstdc++.so.6 (libc6) => /usr/lib/i386-linux-gnu/libstdc++.so.6
libstdc++.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libstdc++.so.5
libstdc++.so.5 (libc6) => /usr/lib32/libstdc++.so.5


Step 3
Now we have required library installed, but InstallationManager has few hard coded logic in it, To fix this issue create a simlink using following command.

sudo ln -s /usr/lib32/libstdc++.so.5 /usr/lib/

For records here are the issues you may encounter if you don't follow previous step.


You may notice following error during startup
Inspiron-N5110:/opt/IBM/InstallationManager/eclipse$ sudo ./launcher
/usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
/usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
/usr/lib/gio/modules/libdconfsettings.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libdconfsettings.so

Ideally setting up classpath should fix this issue, E.g. LD_LIBRARY_PATH="/usr/lib32/libstdc++.so.5"
This appears to be a stupid hardcoded logic in InstallationManager which always checks in /usr/lib, instead of checking classpath entry LD_LIBRARY_PATH, to overcome this problem you need to create the simlink as mentioned in this step.
Error encountered: "make sure libstdc++.so.5 is available in the system library path"

when you get to one of the steps of installation.





and now it is time to give credits for all brave hearts who tried this on Linux. 

6 comments:

  1. hello friend, i am thiyagarajan from chennai
    for me till step 2 its working and i get only two lines as it given below ,
    libstdc++.so.6 (libc6) => /usr/lib/i386-linux-gnu/libstdc++.so.6
    libstdc++.so.5 (libc6) => /usr/lib/i386-linux-gnu/libstdc++.so.5
    what can i do further?

    ReplyDelete
  2. Are you able to proceed with the rest of the steps
    ? I'm not sure if the output varies by Linux version, my tests were on Ubuntu 11.

    ReplyDelete
  3. I was getting these "WRONG ELF CLASS" messages when starting Adobe Reader under Ubuntu 11.10, and the symlink command suggested above solved them with a single line. Thanks a lot!

    ReplyDelete
  4. Thanks for this blog, everything went good, assuming the symbolic link points to the location of libstddc++ in my system !

    ReplyDelete
  5. would you please tell me how to install RAD on my ubuntu11.10
    thank you

    ReplyDelete
  6. THANKS FOR SHARING SUCH A AMAZING WORK
    GREAT PIECE OF WORK!!!
    access point supplier in dubai

    ReplyDelete