请问这是什么意思,有人能帮忙吗
cannot open /usr/share/apache2/build/config_vars.mk: No such file or directory at /usr/bin/apxs2 line 203.
谢谢
apt-cache policy apache2-dev
apache2-dev:
Installed: 2.4.18-2ubuntu3.10
Candidate: 2.4.18-2ubuntu3.10
Version table:
*** 2.4.18-2ubuntu3.10 500
500 http://fi.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
2.4.18-2ubuntu3 500
500 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Apache2-v
The program 'apache2' is currently not installed. To run 'apache2' please ask your administrator to install the package 'apache2-bin'
sudo systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since to 2019-06-06 01:08:07 EEST; 2min 15s ago
Docs: man:systemd-sysv-generator(8)
kesä 06 01:08:07 bozz-feedz systemd[1]: Starting LSB: Apache2 web server...
kesä 06 01:08:07 bozz-feedz systemd[1]: Started LSB: Apache2 web server.
答案1
该文件包含在apache2-dev
包中(参见搜索结果在 packages.ubuntu.com 上)。因此,您需要使用以下命令安装它:
sudo apt-get install apache2-bin apache2-dev
然后重试。