我目前在我的 fedora(64 位)系统上安装了 xampp。我编辑了以下代码以使其兼容 64 位。
# XAMPP is currently 32 bit only
#case `uname -m` in
# *_64)
# if /opt/lampp/bin/php -v > /dev/null 2>&1
# then
# :
# else
# $de && echo "XAMPP gibt es zur Zeit nur als 32-Bit Applikation. Bitte verwende eine 32-Bit Ko$
# $de || echo "XAMPP is currently only availably as 32 bit application. Please use a 32 bit com$
# exit
# fi
# ;;
#esac
但我收到以下错误
[root@localhost ~]# /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
/opt/lampp/share/lampp/phpstatus: /opt/lampp/bin/php: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
XAMPP: Starting Apache with SSL ...
/opt/lampp/bin/apachectl: /opt/lampp/bin/httpd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
XAMPP: Error 126! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://www.apachefriends.org/f/
XAMPP: Starting MySQL...
/opt/lampp/bin/mysql.server: /opt/lampp/bin/my_print_defaults: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP: /opt/lampp/lampp: /opt/lampp/sbin/proftpd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
XAMPP: Error 126! Couln't start ProFTPD!
XAMPP for Linux started.
答案1
你为什么会认为禁用 64 位检查就能神奇地让它工作呢?这根本不可能奏效。
此外,您永远不应该在 fedora 或任何其他提供相关软件包(即:所有软件包)的发行版上使用 lampp。删除它,只需从 fedora 存储库安装 apache、mysql 和 php 软件包即可。