Wrong interpreter specified in install scripts

Discussion in 'Bug Reports' started by galiyosha, Sep 6, 2008.

  1. galiyosha

    galiyosha New Member

    install.sh and functions.sh have /bin/sh specified as an interpreter. However, on systems, where /bin/sh is a plain Bourne shell (like Solaris 10), installation fails with the message of
    install.sh: test: argument expected
    because of line 972 in function.sh:
    Code:
    if [ -e "$LSINSTALL_DIR/bin/lshttpd.dbg" ]; then
    All runs fine if installation is invoked by bash install.sh.

    Please correct the shebang line in your install scripts to point explicitly to bash.

    OS: Solaris 10, 64-bit
    LSWS 3.3.17 Standard
  2. mistwang

    mistwang LiteSpeed Staff

    Bash may not available by default, even on some solaris distribution. Maybe use

    if [ -f ... ]; then

    instead to make it compatible with most shell.
  3. PSS

    PSS Member

    On CentOS Linux 6.4 64-bit, Litespeed 4.2.2 Std refused to install until I did

    yum install glibc.i686

    Error was:
    /usr/local/lsws/bin/lswsctrl: ./litespeed: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    [ERROR] Failed to start litespeed!
  4. webizen

    webizen New Member

Share This Page