1. It appears one the issue is from the OS detection portion of the script.
- Code: Select all
osguess() {
if test -f /etc/redhat-release
then
if egrep "9 " /etc/redhat-release > /dev/null
then
echo "rh9"
return 0
fi
elif test "$(uname)" = "Darwin"
then
echo "macosx"
return 0
else
if test -f /etc/vfstab
then
echo "solaris"
return 0
else
echo "linux"
return 0
fi
fi
}
My installation of CentOS 6.4 does not have "/etc/vfstab", thus the
"test -f /etc/vfstab" returns nothing and results in variables XAMPP_OS and XAMPP_ROOT not being set properly. The workaround provided by zvaranka works, but I chose to set the variables before exporting them. Here is an excerpt of my "/opt/lampp/lampp" script (ver. 1.8.3-beta1):
- Code: Select all
esac
XAMPP_OS="Linux"
XAMPP_ROOT="/opt/lampp"
export XAMPP_OS
export XAMPP_ROOT
. $XAMPP_ROOT/share/xampp/xampplib
2. To "fix" the "line 431: test: =: unary operator expected" error:
Edit the /opt/lampp/lampp file and change:
- Code: Select all
if test $(osguess) = "rh9"
to
- Code: Select all
if test "$(osguess)" = "rh9"