お世話になっております。fedora 14、php 5.3.6-1.fc14、ibm db2 express c 9.7.4 linux x86で
PDOを使ってDB2に接続するため、ドライバをインストールしようとしているのですが、方法がわかりません。
https://students.kiv.zcu.cz/doc/php5/manual/ja/r …
http://www.php.net/manual/ja/install.pecl.phpize …
を参考に以下のようにターミナルで実行したのですが、
[root@FLORA-FEDORA ibm_db2-1.9.1]# phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
[root@FLORA-FEDORA ibm_db2-1.9.1]# ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for IBM_DB2 support... yes, shared
checking Looking for DB2 CLI libraries... checking in yes...
checking in yes/lib64...
checking in yes/lib32...
checking in yes/lib...
not found
configure: error: Please reinstall the DB2 CLI distribution
となって、何か失敗したようです。
調べていると、
http://pecl.php.net/bugs/bug.php?id=14045
に同じような症状が書いてあり、
Seems like your DB2 is not installed properly, could you please
re-install it and then check if you are able to build ibm_db2. The
directory include should contain many more files like sqlcli1.h,
sqlcli.h, sql.h etc. while installing ibm_db2 it finds for DB2 CLI
include files in the include directory
と記載されていたので、以下のように再インストール
[root@FLORA-FEDORA expc]# ./db2_install
製品のインストール用のデフォルト・ディレクトリー - /opt/ibm/db2/V9.7
***********************************************************
別のディレクトリーを選択してインストールしますか [yes/no] ?
no
DB2 インストールを初期化しています。
実行されるタスクの合計数: 14
実行される全タスクの合計見積もり時間: 374
...省略
タスク #14 が終了しました。
正常
includeフォルダに、記載されているファイルは入ったようなのですが、
./configureの実行結果は結局エラーでした。
fedora14でpdoを利用するためには、どのようにすればよいのでしょうか。
./configureとかを利用する方法にはこだわりません。
簡単であればあるほどよいと思っています。
mysqlみたいに、
yumや、gpk-applicationを使って、簡単にできるなら、それがよいと考えています。
どなたかご存知の方、ご教授よろしくお願いいたします。
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
似たような質問が見つかりました
- その他(プログラミング・Web制作) python fbprophetについて 1 2022/09/29 19:44
- 戦争・テロ・デモ ウクライナ、メル友に五千円要求されてさ 1 2022/04/02 09:38
- ボランティア ウクライナ人からどういうこと? 6 2022/03/28 07:37
- その他(SNS・コミュニケーションサービス) 自分のpcがハッキングされたようなメールが来たのですがどうすればいいですか? 4 2022/10/02 16:14
- 英語 下記はなんていってますか? こんにちは以降、訳していただけたら助かります。 Hello, We’re 1 2023/01/14 00:09
- 公的扶助・生活保護 保証人? 1 2022/05/17 22:42
- 英語 英文の添削お願いします。【長文です。】 マッチングアプリで相手を言い負かしている時のやつです。 色々 1 2023/07/01 02:12
- その他(SNS・コミュニケーションサービス) 爆サイやっていたら、下のような文字が出ました! これは何なのでしょうか? nginx error! 1 2023/06/09 12:27
- VPN 何これ 1 2022/04/19 01:32
- 英語 英語の質問です。 When I taught in high school, I wanted to 4 2023/08/19 16:10
関連するカテゴリからQ&Aを探す
おすすめ情報
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
Red Hat ES 3にPHP5.2.5インス...
-
Call to undefined function: m...
-
パスがうまく通らないので、パ...
-
同一のホスト名で何か問題があ...
-
DNSサーバを設定したのですがns...
-
エクセルで#N/Aを含めた平均値...
-
”Tortoise SVN” と ”Subversio...
-
エラーメールで"too many hops"...
-
ドメインに参加しようとするとD...
-
パスワード設定していないユー...
-
コマンドでのFTP転送が進まない。
-
BIND エラー not found: 3(NXD...
-
Permission deniedエラーについて
-
リモートデスクトップ接続でパ...
-
AWSでSSH接続をしたいのですが...
-
特定アプリが落ちたら再起動し...
-
root権限によるFFFTPでの接続
-
Fedora37Gnome環境ではrootでロ...
-
TortoiseSVNでアクセスエラー
-
Windows Serverに対して、sshで...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
PHP5.2.9インストール時に、 Or...
-
お使いの PHP MySQL ライブラリ...
-
コンパイルエラー
-
linux-C言語(gcc)でPostgresql
-
php4とphp5の混在 .iniファイル...
-
Red Hat ES 3にPHP5.2.5インス...
-
cygwinのgccによるコンパイルう...
-
fedora php pdoでdb2接続方法
-
Ubuntu feisy fawnでGTK+のプロ...
-
パスワード設定していないユー...
-
同一のホスト名で何か問題があ...
-
DNSサーバを設定したのですがns...
-
リモートデスクトップ接続でパ...
-
AWSでSSH接続をしたいのですが...
-
エラーメールで"too many hops"...
-
エクセルで#N/Aを含めた平均値...
-
Mailの送信済みメールボックス...
-
”Tortoise SVN” と ”Subversio...
-
循環参照にならない方法があっ...
-
「DNSサーバーを自動的に取得す...
おすすめ情報