Error Oracle Oci8 Required Libraries Not Found
Contents |
2005, 01:04 AMIf you want to connect to an Oracle database with PHP,
Oracle Instant Client Sdk Header Files Not Found
you can use Oracle's Instant Client and the oci8 module oci8 download from pear. Download the Basic and the SDK packages from http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html. At the time of this
Php Oci8 Install
writing, the filenames are instantclient-basic-linux32-10.2.0.1-20050713.zip and instantclient-sdk-linux32-10.2.0.1-20050713.zip. Unzip these files in a new directory, e.g. /opt/oracle/instantclient. mkdir -p /opt/oracle/instantclient cd /opt/oracle/instantclient unzip instantclient-basic-linux32-10.2.0.1-20050713.zip unzip instantclient-sdk-linux32-10.2.0.1-20050713.zip echo install oci8 php linux /opt/oracle/instantclient >> /etc/ld.so.conf ldconfig The previous two lines are supposed to create symlinks named libclntsh.so and libocci.so which we will need later. In my case these symlinks were not created by ldconfig, so I created them manually. ln -s libclntsh.so.10.1 libclntsh.so ln -s libocci.so.10.1 libocci.so In the next step we will download pecl install oci8 the oci8 module with pear. Pear is in the php-pear package. apt-get install php-pear "Normally" we should be able to just use pear install oci8 now, but apparently pear is not able to figure out where the instantclient libraries are. So we will just download the oci8 module and build it on our own. mkdir -p /usr/local/src cd /usr/local/src pear download oci8 tar xzf oci8-1.1.1.tgz cd oci8-1.1.1 phpize ./configure --with-oci8=shared,instantclient,/opt/oracle/instantclient make make install The oci8-1.1.1.tgz filename will of course change for newer releases. To enable the oci8 module in the php.ini (/etc/php5/apache2/php.ini and /etc/php5/cli/php.ini), add a line extension=oci8.so (put this line after the examples starting with ;extension). Now stop and start Apache. You should see the oci8 module in the output of phpinfo(). mthaddonMarch 24th, 2006, 12:12 PMI've followed the instructions, but get the following error when running the ./configure command. Do I need version 3.4 or something (I've seen as a problem elsewhere
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Oracle Instant Client Sdk Header Files Not Found Centos
and policies of this site About Us Learn more about Stack Overflow install oci8 php ubuntu the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Php Oracle 12c
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it https://ubuntuforums.org/archive/index.php/t-92528.html only takes a minute: Sign up Enabling PDO OCI up vote 2 down vote favorite I've tried to install OCI, so i can use new PDO("oci:dbname... After 1,5h of fight I've installed oracle instantclient (basic and sdk) and then oci for php (as described here http://ubuntuforums.org/showthread.php?t=92528). Now I'm a bit confused because my PHPinfo tells that OCI8 Support is enabled, http://stackoverflow.com/questions/21229821/enabling-pdo-oci but in PDO section there's only odbc in "PDO drivers" section. Can anyone tell me when did I go wrong? P.S. I've got XUBUNTU 12.10 and following packets installed: php-pear, php5, php5-cli, php5-common, php5-dbg, php5-dev, php5-odbc (Please answer fast cause I got only week for this project :) Edit: Thanks for explaining. Now I'm trying to install "pdo_oci" following this: http://lacot.org/blog/2009/11/03/ubuntu-php5-oci8-and-pdo_oci-the-perfect-install.html and now invoking this: /usr/local/src/PDO_OCI-1.0# ./configure --with-oci8=instantclient,/opt/oracle/instantclient,12.1 I'm getting following error: configure: error: Oracle-OCI needed libraries not found under /opt/oracle/instantclient I wonder if doing this on Windows wouldn't be easier. php oracle pdo oci xubuntu share|improve this question edited Jan 20 '14 at 10:46 asked Jan 20 '14 at 9:00 Warej 1113 That link explains how to use OCI8, not PDO. They're different and unrelated extensions. –Álvaro González Jan 20 '14 at 9:04 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote You should note that there're two completely different PHP extensions designed to connect to Oracle databases: OCI8 is the extension developed by Oracle Corporation. It's actively maintained
Errors Exceptions Generators References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Context options and parameters Supported Protocols and Wrappers Security Introduction http://php.net/manual/en/oci8.installation.php General considerations Installed as CGI binary Installed as an Apache module Session Security Filesystem Security Database Security Error Reporting Using Register Globals User Submitted Data Magic http://ext.omo3.com/solaris/php_migration.html Quotes Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database not found Connections Safe Mode Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Credit Card Processing Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image oracle instant client Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation Keyboard Shortcuts? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search(current page) / Focus search box Testing » « Requirements PHP Manual Function Reference Database Extensions Vendor Specific Database Extensions OCI8 Installing/Configuring Change language: English Brazilian Portuguese Chinese (Simplified) French German Japanese Korean Romanian Russian Spanish Turkish Other Edit Report a Bug Installation Configuring PHP with OCI8 Review the previous Requirements section before configuring OCI8. To enable the OCI8 extension, configure PHP with the option --with-oci8 . Before starting the web server, OCI8 typically requ
Webのお仕事 Webマスターな生活 ビデオ編集 Oracle Solaris管理 vi Linux管理 PHP drupal MacOS X Java練習帳 MacでシゴトのTips集 Tomcat + eclipse on Mac WebObjects WebObjects 目次 読み物 花粉症・レーザー治療体験談 小山のオハナシ 人気のあるコンテンツ Today's:PDFのプリント印刷時間が遅いので早く出力する設定 MySQL 文字化けを防ぐ、文字コードの確認と設定 MySQL テーブルの複製(コピー)を作成する 渋谷生活 Oracle 別表(別テーブル)から値をコピーして一括更新する MySQL 外部ホストからアクセスする tarバックアップから一部のディレクトリ・ファイルを取り出す Linuxにハードディスクを増設する wgetでサイト(ディレクトリ)を丸ごとダウンロード OracleのSQLコマンド All time:MySQL 文字化けを防ぐ、文字コードの確認と設定 渋谷生活 MySQL 外部ホストからアクセスする MySQL5 インストール・初期設定・起動と停止 MySQL エクスポートとインポート(データベース単位での引越し) Solaris PHPの引っ越し sasaki - Mon, 2008-09-08 17:33 イントラネットの引っ越しで、PHPを新しいSolarisにインストールする。 ■古いサーバで、PHPのバージョンと、インストールオプションを調べる サーバーAにインストールされているPHP $ php -i バージョン: 4.4.2 コンフィグ: './configure' '--with-mysql' '--with-apxs=/usr/apache/bin/apxs' '--enable-mbstring' '--with-gd' '--with-zlib' 設定ファイル: /usr/local/lib/php.ini MySQLのAPI: 3.23.49 MySQLのソケット: /tmp/mysql.sock というようなことが分かる