我嘗試從 apche 安裝 httpd。因此我必須使用以下命令安裝 pcre:
在目錄中:PCRE-8.39
./configure --prefix=/usr/local/pcre
make
make install
這效果非常好。
此後,我能夠運行 httpd 中的配置程式而不會出現錯誤。
./configure --prefix=/usr/local/apache --with-pcre=/usr/local/pcre/bin/pcre-config
所以我嘗試了下一步。命令make
:
make
這裡我得到一個錯誤:
...
...
httpd-2.4.39/build/rules.mk:75: the rule for goal "all-recrusive" failed
make: *** [all-recrusive] Error 1
我使用 httpd 版本 2.4.39 和 PCRE 版本 8.39。
版本
httpd:2.4.39
聚合酶連鎖反應:8.39
作業系統:Debian
我的問題是:
我必須改變什麼才能解決這個問題?
為什麼會出現這個錯誤?
答案1
我終於解決我的問題了! (:
未安裝 expat.h 庫。所以我從下載了庫https://github.com/libexpat/libexpat/releases並在 expact 資料夾中執行以下命令。
目錄:expact-2.2.7
$ ./configure
$ sudo make
$ sudo make install