IBM launchpad and install shell script errors

Posted by Hariharan Vadivelu on
Some of the IBM product installers like IHS and Websphere application servers have hard code version checks and may fail if you are working on a non supported version of Linux or have most up to date version of browser running on your OS.

Here are few easy hacks to work around the issues

Error 1: While launching install script you may notice following error.
In this case Install script is performing a check on host OS for a specific version of Redhat or Suse Linux

./install: line 435: [: -ge: unary operator expected

A very simple workaround is to edit
/etc/redhat-release to include the Redhat version that your script is expecting.

For instance, on my host host following is the content after modification

#CentOS release 6.3 (Final)
Red Hat Enterprise Linux ES release 5

Remember to roll back the changes to this file once your installation is complete.

Error 2: Browser compatibility issues with launchpad.sh script

<!--NLS_ENCODING=UTF-8
NLS_MESSAGEFORMAT_NONE-->

No supported Web browser was detected

An error occurred while starting the launchpad.  
This error typically occurs when the launchpad is unable to find a supported browser. 

Edit WAS/disk1/launchpad/browser.sh and include the version of Firefox that is installed on your OS, for instance my CentOS 6.2 comes with FF 10
and hence I included following line "*Firefox\ 10.*) return 0;;"

supportedFirefoxVersion()
{
        case "$*" in
                *Firefox\ [1-9].*) return 0;;
                *Firefox/[1-9].*) return 0;;
                *Firefox\ 10.*) return 0;;
                *Firefox*) return 1;;
                *rv:1.[7-9]*) return 0;;
                *rv:[2-9].*) return 0;;
                *rv:*) return 1;;
                Mozilla*\ 1.[7-9]*) return 0;;
                Mozilla*\ [2-9].[0-9]*) return 0;;
                *) return 1;;
        esac
}

2 comments: