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












1















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



sudo: pecl: command not found









share|improve this question





























    1















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



    sudo: pecl: command not found









    share|improve this question



























      1












      1








      1








      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 '18 at 3:05









      ubashu

      2,35821837




      2,35821837










      asked Apr 2 '18 at 7:28









      UmeshUmesh

      62




      62






















          1 Answer
          1






          active

          oldest

          votes


















          2














          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


          In Ubuntu 18.04 type:



          sudo apt install php-pear php7.2-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 '18 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 '18 at 5:58













          • I had installed latest xampp on ubuntu. from that I got php 7.2

            – Umesh
            Apr 13 '18 at 6:53











          • I edited my answer.

            – karel
            Apr 13 '18 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',
          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%2f1021246%2fgetting-error-while-trying-to-install-oci8-using-pecl-on-ubuntu14-04%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









          2














          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


          In Ubuntu 18.04 type:



          sudo apt install php-pear php7.2-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 '18 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 '18 at 5:58













          • I had installed latest xampp on ubuntu. from that I got php 7.2

            – Umesh
            Apr 13 '18 at 6:53











          • I edited my answer.

            – karel
            Apr 13 '18 at 7:06
















          2














          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


          In Ubuntu 18.04 type:



          sudo apt install php-pear php7.2-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 '18 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 '18 at 5:58













          • I had installed latest xampp on ubuntu. from that I got php 7.2

            – Umesh
            Apr 13 '18 at 6:53











          • I edited my answer.

            – karel
            Apr 13 '18 at 7:06














          2












          2








          2







          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


          In Ubuntu 18.04 type:



          sudo apt install php-pear php7.2-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


          In Ubuntu 18.04 type:



          sudo apt install php-pear php7.2-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 Dec 22 '18 at 12:39

























          answered Apr 2 '18 at 7:53









          karelkarel

          57.6k12128146




          57.6k12128146













          • 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 '18 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 '18 at 5:58













          • I had installed latest xampp on ubuntu. from that I got php 7.2

            – Umesh
            Apr 13 '18 at 6:53











          • I edited my answer.

            – karel
            Apr 13 '18 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 '18 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 '18 at 5:58













          • I had installed latest xampp on ubuntu. from that I got php 7.2

            – Umesh
            Apr 13 '18 at 6:53











          • I edited my answer.

            – karel
            Apr 13 '18 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 '18 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 '18 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 '18 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 '18 at 5:58















          I had installed latest xampp on ubuntu. from that I got php 7.2

          – Umesh
          Apr 13 '18 at 6:53





          I had installed latest xampp on ubuntu. from that I got php 7.2

          – Umesh
          Apr 13 '18 at 6:53













          I edited my answer.

          – karel
          Apr 13 '18 at 7:06





          I edited my answer.

          – karel
          Apr 13 '18 at 7:06


















          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%2f1021246%2fgetting-error-while-trying-to-install-oci8-using-pecl-on-ubuntu14-04%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

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei