首页 > 解决方案 > Fedora 上的 Xamp 无法启动

问题描述

我安装了 xampp 并且它工作正常,直到我尝试启动 xampp 时开始收到以下错误:

XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility librar y for your system.

在注释了/opt/lampp/lampp引用此错误的代码行之后,我现在在启动 xampp 时遇到了一个新错误/opt/lampp/lampp start

Starting XAMPP for Linux 7.2.3-0...
XAMPP: Starting Apache...fail.
httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 10 of /opt/lam
pp/etc/extra/httpd-xampp.conf: Cannot load modules/libphp7.so into server: libnsl.so.1: cannot op
en shared object file: No such file or directory
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.

我已经php-7.2.3安装了/opt/lampp/binapache,其他一切都在工作之前。如何让 Apache 启动?

标签: apachexamppfedoralampp

解决方案


看来您缺少 libnsl,请通过以下命令安装它:

# sudo dnf 安装 libnsl

如果这不起作用,您可以手动下载它:

visit https://pkgs.org/

in the search box (pkgs.org of course) type libnsl.so.1 and choose the appropriate OS. The version shown might be higher e.g libnsl-2.28-9.fc29.x86_64.rpm, but it doesn't matter, the file needed is also included in this very package.

in the terminal, navigate to the directory where the .rpm was downloaded.

then type the following command to install it:

# sudo rpm libnsl-2.XX-X.fc29.x86_64.rpm

完成后,一切都应该正常工作。


推荐阅读