ホーム > Linux > Linux-http://pentan.info/server/linux/php.html 失敗編

Linux-http://pentan.info/server/linux/php.html 失敗編

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入れてないかった。。。

コメント: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 より

ホーム > Linux > Linux-http://pentan.info/server/linux/php.html 失敗編

検索
フィード
メタ情報
あと何日

今年の目標PHPを覚える

今日:2012-05-21
全体:366日間
経過:142日間
残日数:224日間
消化率:38.8%
ブログパーツ
킹ēǂ݂uOp[c
QRコード
QRR[h

ページの上部に戻る