64-Bit

在 fedora17 上啟動 xampp 時出錯

  • February 3, 2013

我目前在我的 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.

為什麼你會認為禁用 64 位檢查會神奇地使它工作?這沒有任何工作的機會。

此外,您永遠不應該在 fedora 或任何其他提供相關軟體包的發行版上使用lampp(閱讀:所有這些)。擺脫它,只需從 fedora 儲存庫安裝 apache、mysql 和 php 包。

引用自:https://serverfault.com/questions/474968