Ubuntu – Getting error while trying to install oci8 using pecl on Ubuntu14.04
14.04oraclePHP
I am getting an error when trying to install oci8 on Ubuntu using pecl:
sudo: pecl: command not found
Best 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
Perl compatible regular expressions - PCRE libraries is missing (...fatal error: pcre.h:...), because you are compiling module you should add dev packages too:
mHouses, you are my hero.
I spent 4 hours yesterday trying to install pecl_http-1.7.6 on my 32 bit ubuntu 14.04 with no avail.
Your instructions worked perfect for me, too.
Best 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:
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:
In Ubuntu 18.04 type:
To view pecl usage information type: