« W-ZERO3用液晶フィルタ物色 | メイン | @niftyTTY終焉/GW旅行計画/JALwebでキャンセル待ち可能に »
2006年03月30日
postgreSQLインストール |
不調
Jenaプロジェクト
PostgreSQLをインストール
PostgreSQLへ新規テーブル作成
データ管理xlsファイルからTSV(タブ区切りテキスト)ファイルを作成し、
初期データを 転送(\copyコマンド)。
\copy foto from data_tsv.txt with null ’’
PHPでハンドリングできるようPHPおよびapacheを保守
PHPはこの際 v4.4.2を新規にインストール(先日v4.3.11を入れていた)。
./configure --with-pgsql=/data/postgres --with-gd --with-jpeg --with-png --with-gif --with-apxs=/usr/local/apache/bin/apxs --enable-mbstring --with-zlib-dir=/usr/lib --without-mysql --enable-mbregex --with-magickwand=/usr --with-mcrypt
→エラー!
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a/so) not found.
libpngがないようだ。
tar zxf libpng-1.2.8-config.tar.gz
cd libpng-1.2.8-config
./configure
make
sudo make install
→別のエラー
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
libmcryptがないようだ
tar zxf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure
make
sudo make install
→別のエラー
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
あー、PostgreSQLをデフォルトと違う場所へインストールしたんだった
--with-pgsql=/xxx/postgres としてやる。
→configure done!
make
sudo make install
php.ini 修正
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/lib/php.ini
apacheのhttpd.conf 修正
LoadModule php4_module libexec/libphp4.so 追加
AddModule mod_php4.c 追加
AddType application/x-httpd-php .php .phtml .htm 追加
apache再起動
restartではなく、stop&start を使用
→apache起動したようだ。
phpが組み込まれているか確認
以下の内容のHTMLファイルを作成して表示させた
<?php
phpinfo();
?>
→うまくいった けどmagickwandが入ってないYO
ImageMagickが入っていない&magickwand_phpextendが入っていない
ImageMagickインストール
tar zxf ImageMagick-6.2.6-7.tar.gz
cd ImageMagick-6.2.6
./configure
make
sudo make install
magickwand_phpExtension インストール
tar zxf magickwand-0.1.8.tar.gz
sudo cp -r magickwand PHP_SRC_DIR/ext/
cd PHP_SRC_DIR/ext/magickwand
phpize
-Configuring for:
-PHP Api Version: 20020918
-Zend Module Api No: 20020429
-Zend Extension Api No: 20050606
cd PHP_SRC_DIR
rm ./configure
./buildconf --force
-Forcing buildconf
-using default Zend directory
-buildconf: checking installation...
-buildconf: autoconf version 2.59 (ok)
-buildconf: Your version of autoconf likely contains buggy cache code.
- Running cvsclean for you.
- To avoid this, install autoconf-2.13.
-rebuilding configure
-rebuilding main/php_config.h.in
./config.nice
make
sudo make install
2023:
投稿者 onsenfan [ PC・インターネット , プログラミング ] : 2006年03月30日 21:29
この記事が役に立った/おもしろいと思ったら、ワンクリックで応援お願いしますトラックバック
このエントリーのトラックバックURL:
https://blog.odorokutamegoro.com/mt-tb.cgi/947_3291585862072