/usr/share/apache2/build/config_vars.mk kann nicht geöffnet werden: Keine solche Datei oder kein solches Verzeichnis in /usr/bin/apxs2 Zeile 203

/usr/share/apache2/build/config_vars.mk kann nicht geöffnet werden: Keine solche Datei oder kein solches Verzeichnis in /usr/bin/apxs2 Zeile 203

Bitte, was bedeutet das, kann jemand helfen

cannot open /usr/share/apache2/build/config_vars.mk: No such file or directory at /usr/bin/apxs2 line 203.

Danke

 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.

Antwort1

Diese Datei ist im apache2-devPaket enthalten (sieheSuchergebnisseauf packages.ubuntu.com). Sie müssen es also mit folgendem installieren:

sudo apt-get install apache2-bin apache2-dev

und versuchen Sie es dann erneut.

verwandte Informationen