Solaris 10にphp7とoracleをインストールしようとしています。
oracleからoracle instant-client-basicおよびinstant-client SDKをダウンロードしました。
Instant client-basic を解凍すると、instantclient_11_2 ディレクトリが作成されます。
インスタントtclient-sdkが解凍され、instantclient_11_2ディレクトリにあります。
2つのシンボリックリンクが生成される。
ln -s /instantclient_11_2/libclntsh.so.11.1 /instantclient_11_2/libclntsh.so
ln -s /instantclient_11_2/libocci.so.11.1 /instantclient_11_2/libocci.so
私の設定スクリプトは次のとおりです。
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/lib --with-apxs2=/usr/apache2.4.3/bin/apxs --with-ldap=/opt/gcc-4.9.0/lib \
--with-mysql --with-mysqli --with-pdo-mysql --with-pdo-mysql --with-zlib --with-zlib-dir=/usr/local --with-iconv-dir=/usr/local --with-pcre-dir=/usr/local \
--with-gettext=/usr/local --with-libxml-dir=/usr/local --with-openssl=/opt/csw/ --with-openssl-dir=/opt/csw/ --with-gd --with-ldap=/opt/csw/ --enable-shared \
--with-oci8=instantclient,/instantclient_11_2 --enable-mbstring --enable-exif --enable-soap --enable-ftp --enable-mysqlnd --disable-zend-signals \
--disable-static --enable-opcache=no
構成スクリプトは問題なく完了しますが、実行すると
gmake
すぐに実行され、次に終了します。
ld: fatal: file /instantclient_11_2/libclntsh.so: wrong ELF class: ELFCLASS64
私は64ビット版のインスタントクライアントを使っていたので、32ビットのインスタントクライアントをダウンロードして同じ方法で抽出して接続しました。
また、正常に設定されていますが、gmakeを実行すると次のようになります。
/libclntsh.so: wrong ELF machine type: EM_386
私は何が間違っていましたか?