Installing WebSphere on Ubuntu Edgy

The WebSphere scripts assume that /bin/sh maps to bash. Edgy changed /bin/sh to dash. That’s really quite annoying. Getting WAS to install properly is simple. Run the regular install (creating a profile will fail).

sudo perl -p -i -e "s/\/sh$/\/bash/"  /opt/IBM/WebSphere/AppServer/bin/*

Then launch the Profile Management tool.

sudo /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/

Create the profile and you should be good to go.

2 Responses to “Installing WebSphere on Ubuntu Edgy”

  1. Aristotle Pagaltzis Says:

    What’s annoying is people who write scripts with the assumption that sh == bash. It’s not. Unfortunately bash doesn’t restrict itself to the POSIX sh spec when running as “sh”, so this kind of thing gets perpetuated. It’s a frequent source of pain for people running anything that’s not Linux.

  2. James Says:

    Aristotle: Agreed.