line 66: /share/xampp/xampplib: No such file or directory ca
Hello everyone
I have managed to install LAMPP for Linux, but when I run /opt/xampp/xampplib to launch LAMPP, the following errors are returned:
/opt/lampp/lampp: line 66: /share/xampp/xampplib: No such file or directory
cat: /lib/VERSION: No such file or directory
I have verified that xampplib exists at the file path shown in the command line, so I don't have a clue what is causing these errors. Please help me.
Regards
I have managed to install LAMPP for Linux, but when I run /opt/xampp/xampplib to launch LAMPP, the following errors are returned:
/opt/lampp/lampp: line 66: /share/xampp/xampplib: No such file or directory
cat: /lib/VERSION: No such file or directory
I have verified that xampplib exists at the file path shown in the command line, so I don't have a clue what is causing these errors. Please help me.
Regards
-
pompom0053
- Posts: 1
- Joined: 02. July 2013 10:02
- XAMPP Version: Beta version
- Operating System: CentOS
Re: line 66: /share/xampp/xampplib: No such file or director
This error appears in my PCLinuxOs system. Is there alternative installable pack as in case of older versions (tar.gz)?
-
zvaranka
- Posts: 2
- Joined: 07. July 2013 12:15
- XAMPP Version: Beta version
- Operating System: linux
Re: line 66: /share/xampp/xampplib: No such file or director
I found a solution! I tried it in linux.
1. Open the /opt/lampp/lampp file as root with a text editor
2. Search for the line that contains this:
3. Insert this two lines before the above written line
So this is the final
4. Save the file
5 As root user in the terminal you can use the general commands for start, strop, rewrite atc.
6. You can open the http://localhost in the browser
1. Open the /opt/lampp/lampp file as root with a text editor
2. Search for the line that contains this:
-
Code:
Select all
-
. $XAMPP_ROOT/share/xampp/xampplib
3. Insert this two lines before the above written line
-
Code:
Select all
-
XAMPP_OS="Linux"
XAMPP_ROOT="/opt/lampp"
So this is the final
-
Code:
Select all
-
XAMPP_OS="Linux"
XAMPP_ROOT="/opt/lampp"
. $XAMPP_ROOT/share/xampp/xampplib
4. Save the file
5 As root user in the terminal you can use the general commands for start, strop, rewrite atc.
-
Code:
Select all
-
/opt/lampp/lampp start
6. You can open the http://localhost in the browser
-
zvaranka
- Posts: 2
- Joined: 07. July 2013 12:15
- XAMPP Version: Beta version
- Operating System: linux
Re: line 66: /share/xampp/xampplib: No such file or director
what about this problem?
is it okay??
./lampp: line 435: test: =: unary operator expected
Usage: lampp <action>
start Start XAMPP (Apache, MySQL and eventually others)
startapache Start only Apache
startmysql Start only MySQL
startftp Start only ProFTPD
stop Stop XAMPP (Apache, MySQL and eventually others)
stopapache Stop only Apache
stopmysql Stop only MySQL
stopftp Stop only ProFTPD
reload Reload XAMPP (Apache, MySQL and eventually others)
reloadapache Reload only Apache
reloadmysql Reload only MySQL
reloadftp Reload only ProFTPD
restart Stop and start XAMPP
security Check XAMPP's security
enablessl Enable SSL support for Apache
disablessl Disable SSL support for Apache
backup Make backup file of your XAMPP config, log and data files
oci8 Enable the oci8 extenssion
./lampp: line 860: test: =: unary operator expected
./lampp: line 860: test: =: unary operator expected
./lampp: line 864: test: =: unary operator expected
is it okay??
./lampp: line 435: test: =: unary operator expected
Usage: lampp <action>
start Start XAMPP (Apache, MySQL and eventually others)
startapache Start only Apache
startmysql Start only MySQL
startftp Start only ProFTPD
stop Stop XAMPP (Apache, MySQL and eventually others)
stopapache Stop only Apache
stopmysql Stop only MySQL
stopftp Stop only ProFTPD
reload Reload XAMPP (Apache, MySQL and eventually others)
reloadapache Reload only Apache
reloadmysql Reload only MySQL
reloadftp Reload only ProFTPD
restart Stop and start XAMPP
security Check XAMPP's security
enablessl Enable SSL support for Apache
disablessl Disable SSL support for Apache
backup Make backup file of your XAMPP config, log and data files
oci8 Enable the oci8 extenssion
./lampp: line 860: test: =: unary operator expected
./lampp: line 860: test: =: unary operator expected
./lampp: line 864: test: =: unary operator expected
-
Gary2050
- Posts: 1
- Joined: 11. July 2013 03:18
- XAMPP Version: Beta version
- Operating System: CentOS release 6.4 (Final)
Re: line 66: /share/xampp/xampplib: No such file or director
1. It appears one the issue is from the OS detection portion of the script.
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):
2. To "fix" the "line 431: test: =: unary operator expected" error:
Edit the /opt/lampp/lampp file and change:
to
-
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"
-
strain17
- Posts: 1
- Joined: 24. July 2013 10:12
- XAMPP Version: Beta version
- Operating System: Centos 6.4
Re: line 66: /share/xampp/xampplib: No such file or director
We have fixed this issue in both versions: XAMPP 1.8.2-1 and XAMPP 1.8.3-0
Thanks for reporting it.
Thanks for reporting it.