LinuxサーバにApache2.4(現在最新のver2.4.41)をwgetでソースからインストールしたいのですが、以下のようなエラーが出ており解決方法がわからない状態です。
経緯
apr,apr-utilのインストール
Apache2.4をソースからインストールしてみるなどを参考に、apr,apr-utilのインストール。
インストール先はテストも兼ねて以下の様にしてます。(バージョン番号は現在の最新版です)
apr:/home/username/apache2/apr-1.7.0/
apr-util:/home/username/apache2/apr-util-1.6.1/
httpd:/home/username/apache2/httpd/
plain
1 2./configure --prefix=/home/username/apache2/apr-1.7.0 3make 4make install 5 6./configure --prefix=/home/username/apache2/apr-util-1.6.1 --with-apr=/home/username/apr-1.7.0 7make 8make install 9
ここまではなぜかブログにあるようなエラー等は起きず無事指定ディレクトリにインストール出来ました。
httpdのインストール
最新安定版のhttpd.2.4.41を/home/username/apache2/httpd/にインストール。
plain
1./configure --prefix=/home/username/apache2/httpd --with-apr=/home/username/apache2/apr-1.7.0 --with-apr-util=/home/username/apache2/apr-util-1.6.1
しかし、このあとmakeの段階で以下のようなエラーが出てインストールに失敗してしまいます。
plain
1... 2... 3/home/usernmae/apache2/apr-1.7.0/build-1/libtool --silent --mode=link gcc -g -O2 -pthread -o htpasswd htpasswd.lo passwd_common.lo /home/username/apache2/apr-util-1.6.1/lib/libaprutil-1.la -lexpat /home/username/apache2/apr-1.7.0/lib/libapr-1.la -lrt -lcrypt -lpthread -ldl -lcrypt 4libtool: error: cannot find the library '/home/username/apache2/apr-1.7.0/lib/libapr-1.la' or unhandled argument '/home/username/apache2/apr-1.7.0/lib/libapr-1.la' 5Makefile:48: recipe for target 'htpasswd' failed 6make[2]: *** [htpasswd] Error 1 7make[2]: ディレクトリ '/home/username/tmp/httpd-2.4.41/support' から出ます 8/home/username/tmp/httpd-2.4.41/build/rules.mk:75: recipe for target 'all-recursive' failed 9make[1]: *** [all-recursive] Error 1 10make[1]: ディレクトリ '/home/username/tmp/httpd-2.4.41/support' から出ます 11/home/username/tmp/httpd-2.4.41/build/rules.mk:75: recipe for target 'all-recursive' failed 12make: *** [all-recursive] Error 1 13httpd-2.4.41$ ./configure --with-apr=/home/username/apache2/apr-1.7.0 --with-apr-util=/home/a0131724/
cannot findとあるので実際に確認してみましたが、/home/username/apache2/apr-1.7.0配下には確かにlibapr-1.laが在りました。原因がわかる方お教えください。
linuxのディストリビューションはUbuntu18.04です。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。