無法開啟 /usr/share/apache2/build/config_vars.mk: /usr/bin/apxs2 第 203 行沒有這樣的檔案或目錄

無法開啟 /usr/share/apache2/build/config_vars.mk: /usr/bin/apxs2 第 203 行沒有這樣的檔案或目錄

請問這是什麼意思有人可以幫忙嗎

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

阿帕契2-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

然後重試。

相關內容