Thursday, June 13, 2013

Unable to find supported browser The launchpad cannot start. This error typically occurs when a supported browser cannot be found.

ช่วงนี้ผมทดสอบติดตั้งซอฟต์แวร์ IBM หลายตัวบน RHEL6.4 ซอฟต์แวร์บางตัวเช่น TDI 7.1 มีการใช้ browser เป็น lauchpad ในการติดตั้ง และปัญหาที่ผมพบก็คือ ทั้งๆที่เครื่องผม firefox อยู่แล้วเมื่อสั่ง

./lauchpad.sh

มันก็ยังเกิด error

An error occurred while starting the IBM Tivoli Directory Integrator 7.1 Launchpad. 

If IBM Tivoli Directory Integrator Launchpad continues to fail after following the instructions below, you can
install IBM Tivoli Directory Integrator 7.1 using the installation program
located in the IBM Tivoli Directory Integrator installer directory of the product DVD.

Note:  
1. It is highly recommended to read the installation and migration information prior to
running the installer.  
2. The IBM Tivoli Directory Integrator 7.1 installer supports migration
of IBM Tivoli Directory Integrator 6.0, 6.1, 6.1.1, or, 7.0 to IBM Tivoli Directory Integrator 7.1. 

To correct the error and start the IBM Tivoli Directory Integrator 7.1 Launchpad:  
====================================================================== 

1. Make sure you are using a supported browser to launch IBM Tivoli Directory In:

ขึ้นมาอยู่ดี

ถึงแม้ว่าจะทดลอง which firefox แล้วเอาค่าที่ได้มา export BROWSER=/usr/bin/firefox แล้วก็ตามปัญหาก็ยังไม่หายไป

อีกวิธีหนึ่งที่ผมใช้แก้ปัญหานี้ก็คือ การปรับแก้ browser.sh ใหม่ครับ โดยก่อนทำก็จัดการ backup มันไว้ก่อน หลังจากนั้นก็เข้าไปแก้ที่

supportedFirefoxVersion()
{
    case "$*" in
        *Firefox\ [1-9].*) return 0;;
        *Firefox/[1-9].*) 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
}

โดยแทรก regulare expression เพิ่มเข้าไปดังนี้

supportedFirefoxVersion()
{
    case "$*" in
        *Firefox\ [1-9].*) return 0;;
        *Firefox/[1-9].*) return 0;;
        *Firefox\ [1-9][0-9].*) 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
}

ทำการ save แล้วทดลองรันใหม่พบว่าสามารถใช้งาน lauchpad ได้ครับ


ref: http://www-10.lotus.com/ldd/lcwiki.nsf/dx/Tutorialcol_Installing_IBM_Connections_4.0_on_Linux_RHEL_6.3_64-bitcol_Preparing_your_system

No comments: