Error /tmp/pear/temp/oci8/configure
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you zend_smart_str.h: no such file or directory might have Meta Discuss the workings and policies of this site oci8.c:36:28: fatal error: zend_smart_str.h: no such file or directory About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Zend_smart_str.h Missing
posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users.
Zend_smart_str.h Not Found
Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Bash script to run “pecl install oci8” up vote 3 down vote favorite 1 I am trying to create shell script that will fatal error: 'zend_smart_str.h' file not found do the initial provisioning of a vagrant vm (running Ubuntu 12.04). Everything (installing php, apache, oracle instantclient, etc,) works fine, except for the last step - installing the php oci8 extension: pecl install oci8 When I run this command manually (with sudo prefix) it works fine. But when the script runs this command it fails like this: running: make /bin/bash /tmp/pear/temp/pear-build-rootG74SsU/oci8-2.0.6/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootG74SsU/oci8-2.0.6/include -I/tmp/pear/temp/pear-build-rootG74SsU/oci8-2.0.6/main -I/tmp/pear/temp/oci8 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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-rootG74SsU/oci8-2.0.6/include -I/tmp/pear/temp/pear-build-rootG74SsU/oci8-2.0.6/main -I/tmp/pear/temp/oci8 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c -fPIC -DPIC -o .libs/oci8.o In file included from /tmp/pear/temp/oci8/oci8.c:48:0: /tmp/pear/temp/oci8/php_oci8_int.h:60:17: fatal error: oci.h: No such file or directory compilation terminated. make: *** [oci8.lo] Error 1 ERROR: `make' failed The pecl script asks for a path in the beginning of the installation, and this is where I think the issue is: Please provide the path to the ORACLE
Apache, Linux « Oracle Enterprise... | Main | OCI8 1.3 Extension... » PECL Install Prompts Explained, With Particular Reference to OCI8 By
Fatal Error: Oci.h: No Such File Or Directory
cj on Mar 19, 2009 The short version of the article: configure: error: oracle instant client sdk header files not found To install the PHP OCI8 extension from the PECL repository do: $ pecl install oci8 downloading oci8-1.3.4.tgz zend/zend_smart_str.h: no such file or directory ... Starting to download oci8-1.3.4.tgz (134,240 bytes) ....done: 134,240 bytes 10 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 http://superuser.com/questions/703305/bash-script-to-run-pecl-install-oci8 Zend Extension Api No: 220060519 1. 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 1-1, 'all', 'abort', or Enter to continue: At this stage: Enter 1 to update the first (and only) setting. Enter the full path of your ORACLE_HOME or enter the string "instantclient,/path/to/instant/client/libs" https://blogs.oracle.com/opal/entry/pecl_install_prompts_explained without quotes. Do not put the string $ORACLE_HOME or any other environment variable name, because the pecl installer doesn't expand variables. You will get reprompted 1-1, 'all', 'abort', or Enter to continue. As it says, press Enter to continue. Edit php.ini and add "extension=oci8.so" if not already done by the installer. Make sure extension_dir includes the directory containing oci8.so. It's not immediately obvious from first glance that the very first prompt 1-1, 'all', 'abort', or Enter to continue isn't asking for an ORACLE_HOME value right there and then, but is letting you choose to be asked to change that value. This is part of PEARs (the system used by PECL) methodology. Some installations might have multiple values with defaults. The installer will let you change any or all of the values, or just accept them all and continue. Versions of PEAR prior to PEAR 1.5 prompted for option values directly, which was easier. (Update: Helgi Þormar Þorbjörnsson says that PEAR 1.8 will revert to
02:10 UTC Votes:1 Avg. Score:3.0 https://bugs.php.net/bug.php?id=71078 ± 0.0 Reproduced:1 of 1 (100.0%) Same Version:1 https://nevtech.wordpress.com/2010/08/24/oracle-php5-and-apache-2-2-installation-of-oci8-functionality-on-ubuntu-10-04-x86_64/ (100.0%) Same OS:1 (100.0%) From: aqangeles at gmail dot com Assigned: Status: Not a bug Package: OCI8 related PHP Version: 7.0.0 OS: Ubuntu 14.04.3 LTS Private report: No CVE-ID: View Add no such 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 no such file 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-build-root3P4AoF/oci8-2.0.
August 24, 2010 -- nevtech Installing Oracle support for php5 turned out to be hell! So here is what i did. System was Ubuntu 10.04 x86_64 but i imagine same things goes for i386 you just need to find the appropriate Oracle Instant client files. First you need to download the following zip files from Oracle: oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.zip oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.x86_64.zip oracle-instantclient11.2-sdk-11.2.0.1.0-1.x86_64.zip Then you need to unpack these to /opt sudo unzip oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.zip -d /opt
sudo unzip oracle-instantclient11.2-sdk-11.2.0.1.0-1.x86_64.zip -d /opt
sudo unzip oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.x86_64.zip -d /opt
Then we need to set important environment variables (You would wan't to add this tou your .bashrc): export TNS_ADMIN=/opt/instantclient_11_2
export SQLPATH=instantclient_11_2
export LD_LIBRARY_PATH=/opt/instantclient_11_2:$LD_LIBRARY_PATH
export PATH=$PATH:$SQLPATH We move to the directory containing our newly created files: cd /opt/instantclient_11_2/ Then we need to hax a bit to ensure that this lib is found correctly by pecl: mv libclntsh.so.11.1 libclntsh.so
ln -s libclntsh.so libclntsh.so.11.1 If you don't do the step above you will most likely get this error below: checking Oracle Instant Client version… configure: error: Link from /opt/instantclient_11_2/libclntsh.so to libclntsh.so.11.1 not found ERROR: `/tmp/pear/temp/oci8/configure -with-oci8=instantclient,/opt/instantclient_11_2′ failed Now if you don't already have apache2.2 and php5 and the other packets below you need to get and install them so: apt-get install php-pear php5-dev apache2.2-common libapache2-mod-php5 php5 Time to finally install oci8: pecl install oci8 You will be asked to input the path to the ORACLE_HOME directory: Please provide the path to the ORACLE_HOME directory.