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

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: Beta version
Operating System: CentOS
Top

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: Beta version
Operating System: linux
Top

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: Beta version
Operating System: linux
Top

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: Beta version
Operating System: CentOS release 6.4 (Final)
Top

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: Beta version
Operating System: Centos 6.4
Top

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值