アプリ版:「スタンプのみでお礼する」機能のリリースについて

Linuxを四苦八苦しながら触り始めて、一週間となります。
会社のLinuxにPHPをインストールしようかと思ったのですが、コンパイルエラーからなかなか進めません。

Linux
Red Hat Enterprise Linux 4

RPM httpd
httpd-2.0.52-9.ent
httpd-devel-2.0.52-9.ent
httpd-suexec-2.0.52-9.ent
system-config-httpd-1.3.1-1
httpd-manual-2.0.52-9.ent

RPM版のPHPは既にアンインストール済みです。
mysqlはソースでインストール済みです。

apxsの場所
/usr/sbin/apxs

# perl -v
This is perl, v5.8.5 built for i386-linux-thread-multi

$PATH確認
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

ソールからインストールしたいPHPは4.4.6です

エラー内容
# ./configure --with-apxs2=/usr/sbin/apxs
(中略)
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
Can't exec "/usr/bin/apr-config": No such file or directory at /usr/sbin/apxs line 48.
Use of uninitialized value in scalar chomp at /usr/sbin/apxs line 53.
-O2 -g -pipe -m64
apxs:Error: /usr/bin/apr-config not found!.
configure: error: Aborting


apr-config がない(?)と言われているようなのですが、aprを探したところなさそうです。
aprをインストールすればいいのでしょうか?

ネットで探してみたのですが、解決方法はなかなか見つからず・・・。
できれば、apacheはこのまま使用したいのですが。

なにか解決法やアドバイスがあれば、よろしくお願いいたします。

A 回答 (1件)

こんばんは。



>apxs:Error: /usr/bin/apr-config not found!.

apr-configは、apr-develパッケージに含まれていますのでインストールしてみて下さい。

>ネットで探してみたのですが、解決方法はなかなか見つからず・・・。

ネット検索など必要ありません。
パッケージ検索コマンドを使えば、apr-configコマンドがどのパッケージに含まれるか
すぐにわかるはずです。

# which apr-config
/usr/bin/apr-config

# rpm -qif /usr/bin/apr-config
Name    : apr-devel          Relocations: (not relocatable)
Version   : 0.9.4            Vendor: CentOS
Release   : 24.5.c4.2          Build Date: 2006年08月13日 19時50分21秒
Install Date: 2007年03月06日 22時11分32秒 Build Host: build-i386
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!