Ext/oci8/oci8.lo Error 1
Contents |
00:49 UTC From: russell dot edwards at cplaromas dot com
Fatal Error: Zend_smart_str.h: No Such File Or Directory
Assigned: Status: Not a bug Package: OCI8 related PHP oci8.c:36:28: fatal error: zend_smart_str.h: no such file or directory Version: 4.3.3 OS: RedHat 9 Private report: No CVE-ID: View Add Comment Developer Edit zend_smart_str.h missing [2003-09-18 10:04 UTC] russell dot edwards at cplaromas dot com Description: ------------ Hi, I am trying to install PHP 4.3.3 with Oracle support
Zend_smart_str.h Not Found
so that I can connect to an Oracle database running on another server. The configure script runs successfully: ./configure --with-oci8 --with-oracle --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-sigchild however, when I run the make command it terminates with the following error: make: *** [ext/oci8/oci8.lo] Error 1 I have installed
Configure: Error: Cannot Find Sys/sdt.h Which Is Required For Dtrace Support
the Oracle client (version 9.2.0.1.0). Using the Oracle Net Configuration Assistant I can successfully connect to my database. PHP will make, install and run successfully if I only install with with apache and MySQL support but when I add oracle the make falls over. The problem I have is just getting PHP to compile with Oracle support. Is there a known fix to this problem that I'm missing or am I doing something fundamentally stupid? :-) Many Thanks, Russ Actual result: -------------- The actual result is massive, so I have just included a sample below but can forward the full result if necessary. [root@dev2bh php-4.3.3]# make /bin/sh /home/redwards/php-4.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/oci8/ -I/home/redwards/php-4.3.3/ext/oci8/ -DPHP_ATOM_INC -I/home/redwards/php-4.3.3/include -I/home/redwards/php-4.3.3/main -I/home/redwards/php-4.3.3 -I/home/redwards/php-4.3.3/Zend -I/usr/local/mysql/include/mysql -I/home/oracle/product/9.2.0.1.0/rdbms/demo -I/home/redwards/php-4.3.3/ext/xml/expat -I/home/redwards/php-4.3.3/TSRM -g -O2 -prefer-pic -c /home/redwards/php-4.3.3/ext/oci8/oci8.c -o ext/oci8/oci8.lo In file included from
02:10 UTC Votes:1 Avg. Score:3.0 'zend_smart_str.h' file not found ± 0.0 Reproduced:1 of 1 (100.0%) Same Version:1
Fatal Error: 'zend_smart_str.h' File Not Found
(100.0%) Same OS:1 (100.0%) From: aqangeles at gmail dot com Assigned: Status: oci8_dtrace_gen.h: no such file or directory Not a bug Package: OCI8 related PHP Version: 7.0.0 OS: Ubuntu 14.04.3 LTS Private report: No CVE-ID: View Add https://bugs.php.net/25588 Comment Developer Edit [2015-12-10 06:12 UTC] aqangeles at gmail dot com Description: ------------ Installing of oci8 extension via PECL and manually compiling the package fails. Test script: --------------- $ sudo pecl install oci8 Expected result: ---------------- oci8 extension installed Actual https://bugs.php.net/bug.php?id=71078 result: -------------- downloading oci8-2.0.8.tgz ... Starting to download oci8-2.0.8.tgz (190,854 bytes) .........................................done: 190,854 bytes 11 source files, building running: phpize Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : building in /tmp/pear/temp/pear-build-root3P4AoF/oci8-2.0.8 running: /tmp/pear/temp/oci8/configure --with-php-config=/usr/bin/php-config --with-oci8 checking for grep that handles long lines and -e... /bin/grep [.........] configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands running: make /bin/bash /tmp/pear/temp/pear-build-root3P4AoF/oci8-2.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root3P4AoF/oci8-2.0.8/include -I/tmp/pear/temp/pear-build-root3P4AoF/oci8-2.0.8/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -I/u01/app/oracle/product/11.2.0/xe/rdbms/public -I/u01/app/oracle/product/11.2.0/xe/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c -o oci8.lo libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root3P4AoF/oci8-2.0.8/include -I/tmp/pear/temp/pear-b
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official https://ubuntuforums.org/showthread.php?t=92528&page=3 Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu https://naveensnayak.wordpress.com/2012/09/17/connection-from-php-to-oracle-database-using-oci8-on-ubuntu-with-oracle-instant-client-and-sdk/ Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Other Discussion and Support Tutorials Howto: Install Oracle Instant Client and PHP OCI8 module Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is fatal error: the place to report it, thanks ! Page 1 of 7 123 ... Last Jump to page: Results 1 to 10 of 66 Thread: Howto: Install Oracle Instant Client and PHP OCI8 module Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode November 20th, 2005 #1 elmicha View Profile View Forum Posts Private Message First Cup of Ubuntu Join no such file Date Dec 2004 Location Bonn, Germany Beans 6 If you want to connect to an Oracle database with PHP, you can use Oracle's Instant Client and the oci8 module from pear. Download the Basic and the SDK packages from http://www.oracle.com/technology/tec...antclient.html. At the time of this 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. Code: 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 /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. Code: ln -s libclntsh.so.10.1 libclntsh.so ln -s libocci.so.10.1 libocci.so In the next step we will download the oci8 module with pear. Pear is in the php-pear package. Code: 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. Code: 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 fo
Oracle Instant Client and SDK) Connect from PHP to Oracle DB ( using OCI8 on Ubuntu with Oracle Instant Client and SDK) September 17, 2012 Naveen Nayak Leave a comment Go to comments I will be doing this on VirtualBox with Ubuntu 12.04 installed on it and up to date. Please note that the OCI8 extensions, PHP version might be different or greater based on what OS version you are trying to install Before we begin, make sure you have the following A working instance of LAMP ( Linux, Apache, php and MySQL ) - at least Apache and PHP Root privileges A file called phpinfo.php( in your webroot which has phpinfo() ) to verify OCI8 after installation You can install LAMP very easily with tasksel : sudo apt-get install tasksel -> tasksel ->choose LAMP server We will need 2 packages from Oracle ( 32 or 64 bit according to your machine ) - current Version 11.2.0.3.0 - zip versions You can get the 2 downloads ( 32-bit ) from here http://www.oracle.com/technetwork/topics/linuxsoft-082809.html Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications Unzip all files in this to a directory called /opt/oracle_instantclient ( of-course you can put it anywhere you like ) Instant Client Package - SDK: Additional header files and an example makefile for developing Oracle applications with Instant Client Unzip this into the same directory /opt/oracle_instantclient Your /opt/oracle_instantclient directory must now contain all files from Instant Client Package - Basic and an SDK directory from Instant Client Package - SDK Next we need to create some symbolic links to ".so" files - you will see a file called libclntsh.so.version in /opt/oracle_instantclient directory. In my case the file name is libclntsh.so.11.1. We will create a symbolic link named libclntsh.so to the file libclntsh.so.11.1 in the same directory using the command ln -s libclntsh.so.11.1 libclntsh.so Next we will install the php5-dev package command sudo apt-get install php5-dev Next we will install the package libaio using the command sudo apt-get install libaio-dev Then we install pear package using sudo apt-get install php-pear Next, we will install the oci8 extension using sudo pecl install oci8 This will ask for Oracle Home Directory - give the path of the insta