Page 1 of 1

line 66: /share/xampp/xampplib: No such file or directory ca

PostPosted: 02. July 2013 12:02
by pompom0053
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

Re: line 66: /share/xampp/xampplib: No such file or director

PostPosted: 07. July 2013 12:18
by zvaranka
This error appears in my PCLinuxOs system. Is there alternative installable pack as in case of older versions (tar.gz)?

Re: line 66: /share/xampp/xampplib: No such file or director

PostPosted: 07. July 2013 15:30
by zvaranka
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:

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

Re: line 66: /share/xampp/xampplib: No such file or director

PostPosted: 11. July 2013 03:28
by Gary2050
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

Re: line 66: /share/xampp/xampplib: No such file or director

PostPosted: 24. July 2013 10:36
by strain17
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"

Re: line 66: /share/xampp/xampplib: No such file or director

PostPosted: 29. July 2013 16:36
by Beltran
We have fixed this issue in both versions: XAMPP 1.8.2-1 and XAMPP 1.8.3-0

Thanks for reporting it.