fatal error: zend_smart_str.h: No such file or directory












0















I am trying to install oci8 using "pecl install oci8" command but getting error as -



fatal error: zend_smart_str.h: No such file or directory
#include "zend_smart_str.h"


following are my system details -
1.ubuntu 14.04
2.php 7.0.17-2+deb.sury.org~trusty+1



steps I followed -




  1. download instantclient-basic-linux-12.2.0.1.0.zip


  2. download instantclient-sdk-linux.x64-12.2.0.1.0.zip


  3. create dir in /opt/oracle

  4. extract both zip files

  5. run pecl install oci8 command


Outout -



/bin/bash /tmp/oci8-2.1.4/libtool --mode=compile cc  -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include  -DHAVE_CONFIG_H  -g -O2   -c /tmp/oci8-2.1.4/oci8.c -o oci8.lo 
libtool: compile: cc -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/oci8-2.1.4/oci8.c -fPIC -DPIC -o .libs/oci8.o
/tmp/oci8-2.1.4/oci8.c:36:28: fatal error: zend_smart_str.h: No such file or directory
#include "zend_smart_str.h"
^
compilation terminated.
make: *** [oci8.lo] Error 1


Please help!! Thanks much.










share|improve this question



























    0















    I am trying to install oci8 using "pecl install oci8" command but getting error as -



    fatal error: zend_smart_str.h: No such file or directory
    #include "zend_smart_str.h"


    following are my system details -
    1.ubuntu 14.04
    2.php 7.0.17-2+deb.sury.org~trusty+1



    steps I followed -




    1. download instantclient-basic-linux-12.2.0.1.0.zip


    2. download instantclient-sdk-linux.x64-12.2.0.1.0.zip


    3. create dir in /opt/oracle

    4. extract both zip files

    5. run pecl install oci8 command


    Outout -



    /bin/bash /tmp/oci8-2.1.4/libtool --mode=compile cc  -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include  -DHAVE_CONFIG_H  -g -O2   -c /tmp/oci8-2.1.4/oci8.c -o oci8.lo 
    libtool: compile: cc -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/oci8-2.1.4/oci8.c -fPIC -DPIC -o .libs/oci8.o
    /tmp/oci8-2.1.4/oci8.c:36:28: fatal error: zend_smart_str.h: No such file or directory
    #include "zend_smart_str.h"
    ^
    compilation terminated.
    make: *** [oci8.lo] Error 1


    Please help!! Thanks much.










    share|improve this question

























      0












      0








      0








      I am trying to install oci8 using "pecl install oci8" command but getting error as -



      fatal error: zend_smart_str.h: No such file or directory
      #include "zend_smart_str.h"


      following are my system details -
      1.ubuntu 14.04
      2.php 7.0.17-2+deb.sury.org~trusty+1



      steps I followed -




      1. download instantclient-basic-linux-12.2.0.1.0.zip


      2. download instantclient-sdk-linux.x64-12.2.0.1.0.zip


      3. create dir in /opt/oracle

      4. extract both zip files

      5. run pecl install oci8 command


      Outout -



      /bin/bash /tmp/oci8-2.1.4/libtool --mode=compile cc  -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include  -DHAVE_CONFIG_H  -g -O2   -c /tmp/oci8-2.1.4/oci8.c -o oci8.lo 
      libtool: compile: cc -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/oci8-2.1.4/oci8.c -fPIC -DPIC -o .libs/oci8.o
      /tmp/oci8-2.1.4/oci8.c:36:28: fatal error: zend_smart_str.h: No such file or directory
      #include "zend_smart_str.h"
      ^
      compilation terminated.
      make: *** [oci8.lo] Error 1


      Please help!! Thanks much.










      share|improve this question














      I am trying to install oci8 using "pecl install oci8" command but getting error as -



      fatal error: zend_smart_str.h: No such file or directory
      #include "zend_smart_str.h"


      following are my system details -
      1.ubuntu 14.04
      2.php 7.0.17-2+deb.sury.org~trusty+1



      steps I followed -




      1. download instantclient-basic-linux-12.2.0.1.0.zip


      2. download instantclient-sdk-linux.x64-12.2.0.1.0.zip


      3. create dir in /opt/oracle

      4. extract both zip files

      5. run pecl install oci8 command


      Outout -



      /bin/bash /tmp/oci8-2.1.4/libtool --mode=compile cc  -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include  -DHAVE_CONFIG_H  -g -O2   -c /tmp/oci8-2.1.4/oci8.c -o oci8.lo 
      libtool: compile: cc -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -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 -I/opt/oracle/instantclient_12_2/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/oci8-2.1.4/oci8.c -fPIC -DPIC -o .libs/oci8.o
      /tmp/oci8-2.1.4/oci8.c:36:28: fatal error: zend_smart_str.h: No such file or directory
      #include "zend_smart_str.h"
      ^
      compilation terminated.
      make: *** [oci8.lo] Error 1


      Please help!! Thanks much.







      14.04 php7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 19 '17 at 9:44









      Sachin VairagiSachin Vairagi

      10112




      10112






















          1 Answer
          1






          active

          oldest

          votes


















          0
















          1. php 7.0.17-2+deb.sury.org~trusty+1




          sudo apt-get install php7.0-dev



          Provides /usr/include/php/20151012/Zend/zend_smart_str.h






          share|improve this answer
























          • okay let me check it and will update. Thank you!!

            – Sachin Vairagi
            Apr 21 '17 at 8:10











          • sorry it didn't work, however I have resolved it by downloading lower version - instantclient-basic-linux.x64-12.1.0.1.0.zip and instantclient-sdk-linux.x64-12.1.0.1.0.zip. Thanks much for your reply.

            – Sachin Vairagi
            Apr 26 '17 at 5:01











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f906558%2ffatal-error-zend-smart-str-h-no-such-file-or-directory%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0
















          1. php 7.0.17-2+deb.sury.org~trusty+1




          sudo apt-get install php7.0-dev



          Provides /usr/include/php/20151012/Zend/zend_smart_str.h






          share|improve this answer
























          • okay let me check it and will update. Thank you!!

            – Sachin Vairagi
            Apr 21 '17 at 8:10











          • sorry it didn't work, however I have resolved it by downloading lower version - instantclient-basic-linux.x64-12.1.0.1.0.zip and instantclient-sdk-linux.x64-12.1.0.1.0.zip. Thanks much for your reply.

            – Sachin Vairagi
            Apr 26 '17 at 5:01
















          0
















          1. php 7.0.17-2+deb.sury.org~trusty+1




          sudo apt-get install php7.0-dev



          Provides /usr/include/php/20151012/Zend/zend_smart_str.h






          share|improve this answer
























          • okay let me check it and will update. Thank you!!

            – Sachin Vairagi
            Apr 21 '17 at 8:10











          • sorry it didn't work, however I have resolved it by downloading lower version - instantclient-basic-linux.x64-12.1.0.1.0.zip and instantclient-sdk-linux.x64-12.1.0.1.0.zip. Thanks much for your reply.

            – Sachin Vairagi
            Apr 26 '17 at 5:01














          0












          0








          0









          1. php 7.0.17-2+deb.sury.org~trusty+1




          sudo apt-get install php7.0-dev



          Provides /usr/include/php/20151012/Zend/zend_smart_str.h






          share|improve this answer















          1. php 7.0.17-2+deb.sury.org~trusty+1




          sudo apt-get install php7.0-dev



          Provides /usr/include/php/20151012/Zend/zend_smart_str.h







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 19 '17 at 21:32









          Knud LarsenKnud Larsen

          1,596167




          1,596167













          • okay let me check it and will update. Thank you!!

            – Sachin Vairagi
            Apr 21 '17 at 8:10











          • sorry it didn't work, however I have resolved it by downloading lower version - instantclient-basic-linux.x64-12.1.0.1.0.zip and instantclient-sdk-linux.x64-12.1.0.1.0.zip. Thanks much for your reply.

            – Sachin Vairagi
            Apr 26 '17 at 5:01



















          • okay let me check it and will update. Thank you!!

            – Sachin Vairagi
            Apr 21 '17 at 8:10











          • sorry it didn't work, however I have resolved it by downloading lower version - instantclient-basic-linux.x64-12.1.0.1.0.zip and instantclient-sdk-linux.x64-12.1.0.1.0.zip. Thanks much for your reply.

            – Sachin Vairagi
            Apr 26 '17 at 5:01

















          okay let me check it and will update. Thank you!!

          – Sachin Vairagi
          Apr 21 '17 at 8:10





          okay let me check it and will update. Thank you!!

          – Sachin Vairagi
          Apr 21 '17 at 8:10













          sorry it didn't work, however I have resolved it by downloading lower version - instantclient-basic-linux.x64-12.1.0.1.0.zip and instantclient-sdk-linux.x64-12.1.0.1.0.zip. Thanks much for your reply.

          – Sachin Vairagi
          Apr 26 '17 at 5:01





          sorry it didn't work, however I have resolved it by downloading lower version - instantclient-basic-linux.x64-12.1.0.1.0.zip and instantclient-sdk-linux.x64-12.1.0.1.0.zip. Thanks much for your reply.

          – Sachin Vairagi
          Apr 26 '17 at 5:01


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f906558%2ffatal-error-zend-smart-str-h-no-such-file-or-directory%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?