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件)
- 最新から表示
- 回答順に表示
No.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
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
似たような質問が見つかりました
- PostgreSQL PostgreSQL14.6のSSL対応について 1 2023/01/05 15:42
- UNIX・Linux postfix smtpサーバーリレーがTLSハンドシェーク失敗 1 2022/08/15 15:45
- その他(プログラミング・Web制作) python 2 2022/12/23 09:06
- UNIX・Linux cronの@rebootでのdateコマンドの実行につきまして 2 2023/06/11 16:23
- その他(プログラミング・Web制作) mariadbでのエラー 1 2022/11/15 12:31
- Ruby Ruby / passenger のインストールについて 1 2023/01/30 18:31
- UNIX・Linux cronでシェルスクリプト実行時のkubactlコマンドが機能しない対処法。 2 2022/08/03 18:58
- その他(プログラミング・Web制作) ラズパイ上の、pythonのエラーについて 1 2023/04/12 23:27
- MySQL Mac です。ローカルホストの phpMyAdmin にアクセスできません。 1 2023/06/06 17:14
- CGI 古ーくからフリーのtree.cgi掲示板を利用させてもらって来ましたが、最新でなにか復活できないか? 2 2023/04/07 10:43
このQ&Aを見た人はこんなQ&Aも見ています
関連するカテゴリからQ&Aを探す
おすすめ情報
このQ&Aを見た人がよく見るQ&A
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
makeコマンドができない
-
./configureの次にmakeが出来ま...
-
gccのインクルードパスの確認
-
configure error
-
パソコンでゲームをプレイしよ...
-
M.2 NVME SSDがWindowsからはア...
-
パッケージが既存のパッケージ...
-
Windows2000を最新マシンにイン...
-
ubuntu 初期化について
-
1枚でも「1枚”組”」なのですか?
-
エラー”Illegal seek”はどんな...
-
Ubuntu on Xorgのログインについて
-
makeコマンドが使えません。
-
imacの初期化はCDがないとでき...
-
apt-get install ****** でinst...
-
CD-ROMの認識方法について(MS-...
-
rpmファイルがインストールでき...
-
1番新しい今のパーフェクトホイ...
-
MSI「P55-SD50」のBIOS設定につ...
-
thunderbirdが起動できない・・・
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
gccのインクルードパスの確認
-
makeコマンドができない
-
perlのダウングレード方法
-
Debianでのmakeコマンドインス...
-
macos での /usr/local/lib と...
-
*** ターゲット `all' を make ...
-
ダウンロードファイルなどは、...
-
Mac上でPythonのtkinterを使っ...
-
make でエラー
-
glibcバージョンアップ
-
OpensslのVer.ダウン
-
Linuxのgccのインクルードパス?
-
readline インストールについて
-
ソースからmakeした場合の削除方法
-
./configureの次にmakeが出来ま...
-
Apacheのバージョンアップ方法
-
solarisのmakeについて
-
phpで再度configureする方法
-
Solaris10でCコンパイラが見...
-
linuxの/usr/includeについて
おすすめ情報