2007-01-03

Rational Application Developer 7 on Kubuntu/ubuntu Edgy Eft

After struggling to install RAD7 on kubuntu (it fails at the installation of the websphere 6.1 runtime), a collegue of mine found this posting:

WebSphere Portal 6 on Ubuntu (continued) - Exception: null

So, if you are struggling to get RAD7 installed on your kubuntu/ubuntu machine here is the procedure:
1) make /bin/sh point at bash: cd /bin; sudo ln -sf bash sh
2) install RAD7
3) replace the shell in the scripts: sudo perl -p -i -e "s/\/sh$/\/bash/" /opt/IBM/SDP70/runtimes/base_v61/bin/*.sh
4) replace the shell in the script for the profile management: sudo perl -p -i -e "s/\/sh$/\/bash/" /opt/IBM/SDP70/runtimes/base_v61/bin/ProfileManagement/*.sh
5) enable write access to the profile, so that you can develop using your user account: sudo chmod -R a+w /opt/IBM/SDP70/runtimes/base_v61/profiles/AppSrv01
6) restore the original link: cd /bin; sudo ln -sf dash sh

and then enjoy RAD7 running under ubuntu!

An alternative to step 1-3, contribuited by Joshua Purcell (see comments to this post), is to run:

sudo dpkg-reconfigure dash

Choose 'no' when it asks if you want to make sh symbolically link to dash. The same command can be used in place of step 6 if you ever want to switch back to dash.

Thanks Joshua!

PS: ubuntu and kubuntu are not officialy supported by IBM/Rational, so use at your own risk.

4 comments:

Unknown said...

Since this is the first page that comes up when I do a search on Google for installing RAD 7 under Ubuntu, I thought I'd add an update to the above that reduces the number of steps needed. Instead of going through both steps 1 and 3, you can just run the following command:

sudo dpkg-reconfigure dash

Choose 'no' when it asks if you want to make sh symbolically link to dash. The same command can be used in place of step 6 if you ever want to switch back to dash.

Pereirão said...

!! Perfect !!
Thank You SOOOOOOOOO Much !!
Was looking for a solution for a long time !!

Coding something! said...

You save me from install Windows!

Unknown said...

Thanks for the info, it was very useful, this is an update on your document for installing RAD 7.5 on ubuntu linux 9.10:

Make sure that the folder structure is correct:

The installation folder must contain the following:
PEK
RAD
RAD75_JRE
RAD75_QSG_SOFTCOPY_CDI
RAD_SETUP
WAS70

The RAD folder must contain: folders: disk1, disk2, disk3, disk4, disk5, disk6
The WAS70 folder must contain: folders: disk1, disk2, disk3, disk4,


Steps
Install Java6
Install package libstdc++5_3.3.6-17ubuntu1_i386.deb
make /bin/sh point at bash: cd /bin; sudo ln -sf bash sh
Install RAD
Instal WAS
replace the shell in the scripts:
sudo perl -p -i -e "s/\/sh$/\/bash/" /opt/IBM/SDP/runtimes/base_v7/bin/*.sh
replace the shell in the script for the profile management:
sudo perl -p -i -e "s/\/sh$/\/bash/" /opt/IBM/SDP/runtimes/base_v7/bin/ProfileManagement/*.sh
enable write access to the profile, so that you can develop using your user account:
sudo chmod -R a+w /opt/IBM/SDP/runtimes/base_v7/profiles/was70profile1
restore the original link: cd /bin; sudo ln -sf dash sh
If you have Firefox 3.5 most probably RAD will not start, and you will get the following error in the log: !MESSAGE Widget disposed too early!,,, this problem is due to the fact that a package called Xulrunner version 1.9, is installed on your PC, you have to remove xulrunner, this will remove firefox, you can install firefox on a folder on your home do not install firefox using synaptic, see this link for solving the problem, http://ubuntuforums.org/showthread.php?t=1322943,