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

Problems with the Linux version of XAMPP, questions, comments, and anything related.

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

Postby pompom0053 » 02. July 2013 12:02

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
pompom0053
 
Posts: 1
Joined: 02. July 2013 10:02
XAMPP Version: 5.6.3
Operating System: CentOS

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

Postby zvaranka » 07. July 2013 12:18

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: 5.6.3
Operating System: linux

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

Postby zvaranka » 07. July 2013 15:30

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
zvaranka
 
Posts: 2
Joined: 07. July 2013 12:15
XAMPP Version: 5.6.3
Operating System: linux

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

Postby Gary2050 » 11. July 2013 03:28

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
Gary2050
 
Posts: 1
Joined: 11. July 2013 03:18
XAMPP Version: 5.6.3
Operating System: CentOS release 6.4 (Final)

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

Postby strain17 » 24. July 2013 10:36

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"
strain17
 
Posts: 1
Joined: 24. July 2013 10:12
XAMPP Version: 5.6.3
Operating System: Centos 6.4

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

Postby Beltran » 29. July 2013 16:36

We have fixed this issue in both versions: XAMPP 1.8.2-1 and XAMPP 1.8.3-0

Thanks for reporting it.
User avatar
Beltran
Power-User
 
Posts: 75
Joined: 22. March 2013 12:29
XAMPP Version: 5.5.19
Operating System: Windows, Linux, OS X


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests