- 2010/11/11 00:31
- Linux
PHP公式:http://www.php.net/
ダウンロード:http://www.php.net/downloads.php
作業ディレクトリ:/usr/local/src
▽参考サイト
http://centos.i-recording.net/php_install.html
http://pentan.info/server/linux/php.html
▽ダウンロード
最新:php5.3.3(tar.gz)
# wget http://www.php.net/get/php-5.3.3.tar.gz/from/jp.php.net/mirror
▽ファイル検証
# md5sum php-5.3.3.tar.gz
▽解凍・作業ディレクトリへ移動
# tar zxvf httpd-2.2.16.tar.gz -C /usr/local/src
# cd /usr/local/src/php-5.3.3.tar.gz/
▽configureオプションを指定
# ./configure –with-apxs2=/usr/local/apache2/bin/apxs –enable-mbregex –enable-mbstring –enable-zend-multibyte –with-mysql –with-mysqli=/usr/bin/mysql_config –enable-ftp –with-zlib –with-openssl –with-pdo-mysql –with-gd
▽ビルド
# make
▽エラー
makeかけたら下記エラーが出た
configure: error: libpng.(a|so) not found.
libpngライブラリが見つかりません。
▽libpngインストール
# yum install -y libpng libpng-devel
▽configureオプションを指定
# ./configure –with-apxs2=/usr/local/apache2/bin/apxs –enable-mbregex –enable-mbstring –enable-zend-multibyte –with-mysql –with-mysqli=/usr/bin/mysql_config –enable-ftp –with-zlib –with-openssl –with-pdo-mysql –with-gd
▽エラー
checking for specified location of the MySQL UNIX socket… no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
MySQLのヘッダーファイルがない・かクライアントライブラリがない
※この場合、MySQLインストールしましょう。
MySQL入れてないかった。。。
- Linux – iptablesの設定 – さくらVPS
- Linux-チューニング-さくらVPS
この記事を読んだ人は次のエントリも読んでいます。
コメント:0
トラックバック:0
- この記事のトラックバック URL
- http://seo.gunpla-rev.net/blog/linux/linux-httppentan-infoserverlinuxphp-html%e3%80%80%e5%a4%b1%e6%95%97%e7%b7%a8/trackback/
- トラックバックの送信元リスト
- Linux-http://pentan.info/server/linux/php.html 失敗編 - 携帯アフィリエイトで稼ぐアフィリエイトSEO より