ablog

不器用で落着きのない技術者のメモ

php-4.4.8 を confgure するときにでるエラーたち

# ./configure \
'--with-apxs2=/usr/local/apache228-php4/bin/apxs' \
'--enable-mbstring' \
'--enable-mbstr-enc-trans' \
'--enable-mbregex' \
'--enable-cli' \
'--enable-pcntl' \
'--enable-track-vars' \
'--with-oci8-instant-client=/opt/app/oracle/product/10.2.0/instantclient_1' \
'--with-expat=builtin'

を実行したときに出るエラーと対処法のメモ。

  • Oracle Instant Client SDK header files not found
...

checking Oracle Instant Client SDK header directory... configure: error: Oracle Instant Client SDK header files not found

「Instant Client Package - SDK」がないと発生する。
http://www.oracle.com/technology/software/tech/oci/instantclient/index.html からダウンロードして置けば解決する。

  • Oracle Instant Client library version not supported
checking Oracle Instant Client version... configure: error: Oracle Instant Client library version not supported

「--with-oci8-instant-client」で指定したパス以下に libclntsh.so.10.1 がないとこのエラーが出る。

  • configure: error: Link from ...
checking Oracle Instant Client version... configure: error: Link from /opt/app/oracle/product/10.2.0/instantclient_1/libclntsh.so to libclntsh.so.10.1 not found

シンボリックリンク libclntsh.so.10.1 を作成すると、解決する。

$ cd /opt/app/oracle/product/10.2.0/instantclient_1
$ ln -s libclntsh.so.10.1 libclntsh.so