Getting error while trying to install oci8 using pecl on Ubuntu14.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I am getting an error when trying to install oci8 on Ubuntu using pecl:



sudo: pecl: command not found









share|improve this question



























    up vote
    1
    down vote

    favorite












    I am getting an error when trying to install oci8 on Ubuntu using pecl:



    sudo: pecl: command not found









    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am getting an error when trying to install oci8 on Ubuntu using pecl:



      sudo: pecl: command not found









      share|improve this question















      I am getting an error when trying to install oci8 on Ubuntu using pecl:



      sudo: pecl: command not found






      14.04 php oracle






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 at 3:05









      ubashu

      2,24221736




      2,24221736










      asked Apr 2 at 7:28









      Umesh

      62




      62




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. The packaging and distribution system used by PECL is shared with its sister, PEAR. PEAR is the PHP Extension and Application Repository, found at https://pear.php.net.



          In Ubuntu 14.04 open the terminal and type:



          sudo apt-get install php-pear php5-dev # required in order to use pecl 
          sudo pecl install oci8-2.0.12


          This is the easiest way to install oci8 on Ubuntu 14.04 using pecl, but because of XAMPP you have PHP 7.2 installed. You can switch between PHP versions by following the instructions in How to have two versions of PHP installed and switch easily between them?.



          In Ubuntu 16.04 type:



          sudo apt install php-pear php7.0-dev # required in order to use pecl 
          sudo pecl install oci8


          To view pecl usage information type:



          man pecl 





          share|improve this answer






















          • I need to have setup with php7.2 please guide me proper way to solve this issue to get proper access on oci8
            – Umesh
            Apr 3 at 4:46










          • I know how to set up oci8 with php7.2, but first I need to know two things. 1. Do you already have php7.2 installed in 14.04? 2. Is the exact version important or can I substitute php7.0 for php7.2? Until you answer this comment I edited my answer by adding the basic requirements for installing oci8 with php7.* which are php-pear and php7.0-dev.
            – karel
            Apr 3 at 5:58











          • I had installed latest xampp on ubuntu. from that I got php 7.2
            – Umesh
            Apr 13 at 6:53










          • I edited my answer.
            – karel
            Apr 13 at 7:06










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1021246%2fgetting-error-while-trying-to-install-oci8-using-pecl-on-ubuntu14-04%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. The packaging and distribution system used by PECL is shared with its sister, PEAR. PEAR is the PHP Extension and Application Repository, found at https://pear.php.net.



          In Ubuntu 14.04 open the terminal and type:



          sudo apt-get install php-pear php5-dev # required in order to use pecl 
          sudo pecl install oci8-2.0.12


          This is the easiest way to install oci8 on Ubuntu 14.04 using pecl, but because of XAMPP you have PHP 7.2 installed. You can switch between PHP versions by following the instructions in How to have two versions of PHP installed and switch easily between them?.



          In Ubuntu 16.04 type:



          sudo apt install php-pear php7.0-dev # required in order to use pecl 
          sudo pecl install oci8


          To view pecl usage information type:



          man pecl 





          share|improve this answer






















          • I need to have setup with php7.2 please guide me proper way to solve this issue to get proper access on oci8
            – Umesh
            Apr 3 at 4:46










          • I know how to set up oci8 with php7.2, but first I need to know two things. 1. Do you already have php7.2 installed in 14.04? 2. Is the exact version important or can I substitute php7.0 for php7.2? Until you answer this comment I edited my answer by adding the basic requirements for installing oci8 with php7.* which are php-pear and php7.0-dev.
            – karel
            Apr 3 at 5:58











          • I had installed latest xampp on ubuntu. from that I got php 7.2
            – Umesh
            Apr 13 at 6:53










          • I edited my answer.
            – karel
            Apr 13 at 7:06














          up vote
          2
          down vote













          PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. The packaging and distribution system used by PECL is shared with its sister, PEAR. PEAR is the PHP Extension and Application Repository, found at https://pear.php.net.



          In Ubuntu 14.04 open the terminal and type:



          sudo apt-get install php-pear php5-dev # required in order to use pecl 
          sudo pecl install oci8-2.0.12


          This is the easiest way to install oci8 on Ubuntu 14.04 using pecl, but because of XAMPP you have PHP 7.2 installed. You can switch between PHP versions by following the instructions in How to have two versions of PHP installed and switch easily between them?.



          In Ubuntu 16.04 type:



          sudo apt install php-pear php7.0-dev # required in order to use pecl 
          sudo pecl install oci8


          To view pecl usage information type:



          man pecl 





          share|improve this answer






















          • I need to have setup with php7.2 please guide me proper way to solve this issue to get proper access on oci8
            – Umesh
            Apr 3 at 4:46










          • I know how to set up oci8 with php7.2, but first I need to know two things. 1. Do you already have php7.2 installed in 14.04? 2. Is the exact version important or can I substitute php7.0 for php7.2? Until you answer this comment I edited my answer by adding the basic requirements for installing oci8 with php7.* which are php-pear and php7.0-dev.
            – karel
            Apr 3 at 5:58











          • I had installed latest xampp on ubuntu. from that I got php 7.2
            – Umesh
            Apr 13 at 6:53










          • I edited my answer.
            – karel
            Apr 13 at 7:06












          up vote
          2
          down vote










          up vote
          2
          down vote









          PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. The packaging and distribution system used by PECL is shared with its sister, PEAR. PEAR is the PHP Extension and Application Repository, found at https://pear.php.net.



          In Ubuntu 14.04 open the terminal and type:



          sudo apt-get install php-pear php5-dev # required in order to use pecl 
          sudo pecl install oci8-2.0.12


          This is the easiest way to install oci8 on Ubuntu 14.04 using pecl, but because of XAMPP you have PHP 7.2 installed. You can switch between PHP versions by following the instructions in How to have two versions of PHP installed and switch easily between them?.



          In Ubuntu 16.04 type:



          sudo apt install php-pear php7.0-dev # required in order to use pecl 
          sudo pecl install oci8


          To view pecl usage information type:



          man pecl 





          share|improve this answer














          PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. The packaging and distribution system used by PECL is shared with its sister, PEAR. PEAR is the PHP Extension and Application Repository, found at https://pear.php.net.



          In Ubuntu 14.04 open the terminal and type:



          sudo apt-get install php-pear php5-dev # required in order to use pecl 
          sudo pecl install oci8-2.0.12


          This is the easiest way to install oci8 on Ubuntu 14.04 using pecl, but because of XAMPP you have PHP 7.2 installed. You can switch between PHP versions by following the instructions in How to have two versions of PHP installed and switch easily between them?.



          In Ubuntu 16.04 type:



          sudo apt install php-pear php7.0-dev # required in order to use pecl 
          sudo pecl install oci8


          To view pecl usage information type:



          man pecl 






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 13 at 7:05

























          answered Apr 2 at 7:53









          karel

          50.6k11107127




          50.6k11107127











          • I need to have setup with php7.2 please guide me proper way to solve this issue to get proper access on oci8
            – Umesh
            Apr 3 at 4:46










          • I know how to set up oci8 with php7.2, but first I need to know two things. 1. Do you already have php7.2 installed in 14.04? 2. Is the exact version important or can I substitute php7.0 for php7.2? Until you answer this comment I edited my answer by adding the basic requirements for installing oci8 with php7.* which are php-pear and php7.0-dev.
            – karel
            Apr 3 at 5:58











          • I had installed latest xampp on ubuntu. from that I got php 7.2
            – Umesh
            Apr 13 at 6:53










          • I edited my answer.
            – karel
            Apr 13 at 7:06
















          • I need to have setup with php7.2 please guide me proper way to solve this issue to get proper access on oci8
            – Umesh
            Apr 3 at 4:46










          • I know how to set up oci8 with php7.2, but first I need to know two things. 1. Do you already have php7.2 installed in 14.04? 2. Is the exact version important or can I substitute php7.0 for php7.2? Until you answer this comment I edited my answer by adding the basic requirements for installing oci8 with php7.* which are php-pear and php7.0-dev.
            – karel
            Apr 3 at 5:58











          • I had installed latest xampp on ubuntu. from that I got php 7.2
            – Umesh
            Apr 13 at 6:53










          • I edited my answer.
            – karel
            Apr 13 at 7:06















          I need to have setup with php7.2 please guide me proper way to solve this issue to get proper access on oci8
          – Umesh
          Apr 3 at 4:46




          I need to have setup with php7.2 please guide me proper way to solve this issue to get proper access on oci8
          – Umesh
          Apr 3 at 4:46












          I know how to set up oci8 with php7.2, but first I need to know two things. 1. Do you already have php7.2 installed in 14.04? 2. Is the exact version important or can I substitute php7.0 for php7.2? Until you answer this comment I edited my answer by adding the basic requirements for installing oci8 with php7.* which are php-pear and php7.0-dev.
          – karel
          Apr 3 at 5:58





          I know how to set up oci8 with php7.2, but first I need to know two things. 1. Do you already have php7.2 installed in 14.04? 2. Is the exact version important or can I substitute php7.0 for php7.2? Until you answer this comment I edited my answer by adding the basic requirements for installing oci8 with php7.* which are php-pear and php7.0-dev.
          – karel
          Apr 3 at 5:58













          I had installed latest xampp on ubuntu. from that I got php 7.2
          – Umesh
          Apr 13 at 6:53




          I had installed latest xampp on ubuntu. from that I got php 7.2
          – Umesh
          Apr 13 at 6:53












          I edited my answer.
          – karel
          Apr 13 at 7:06




          I edited my answer.
          – karel
          Apr 13 at 7:06

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021246%2fgetting-error-while-trying-to-install-oci8-using-pecl-on-ubuntu14-04%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491