我在ubuntu10.10上安装XAMPP
(i)我已将tar xvfz xampp-linux-1.7.7.tar.gz -C ./opt
提取到opt文件夹
(ii)当我写道:sudo ./opt/lampp/lampp start
我收到以下错误:
cat: /opt/lampp/lib/VERSION: No such file or directory
./lampp: line 126: /opt/lampp/share/lampp/selinux: No such file or directory
Starting XAMPP for Linux ...
./lampp: line 133: /opt/lampp/share/lampp/nogroupcheck: No such file or directory
cat: /opt/lampp/lib/VERSION: No such file or directory
./lampp: line 126: /opt/lampp/share/lampp/selinux: No such file or directory
XAMPP: Another web server daemon is already running.
cat: /opt/lampp/lib/VERSION: No such file or directory
./lampp: line 126: /opt/lampp/share/lampp/selinux: No such file or directory
XAMPP: Starting MySQL...
./lampp: line 253: /opt/lampp/bin/mysql.server: No such file or directory
XAMPP: Couldn't start MySQL!
cat: /opt/lampp/lib/VERSION: No such file or directory
./lampp: line 126: /opt/lampp/share/lampp/selinux: No such file or directory
./lampp: line 140: /opt/lampp/share/lampp/alladdons: No such file or directory
XAMPP for Linux started.
我在网上搜索了几种表格,但我无法纠正错误。就xampp而言,我是一个新手,请原谅我的忽略并帮助我找到解决方案?
答案 0 :(得分:2)
./opt
将使用相对于当前工作目录的目录。 XAMPP使用/opt/lampp/
的硬编码值作为其目录。确保你实际上提取到/ opt,而不是./opt
sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
sudo /opt/lampp/lampp start
答案 1 :(得分:1)
我猜你没有使用root privileges.i.e将“tar xvfz xampp-linux-1.7.7.tar.gz -C ./opt”解压缩到opt文件夹中。
sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt into the opt folder
sudo /opt/lampp/lampp start
尝试使用root权限执行此操作。我希望它可以帮助您。
答案 2 :(得分:-1)
如果没有为脚本提供正确的路径,就会发生这种情况。