Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created October 7, 2011 15:12
Show Gist options
  • Select an option

  • Save khannedy/1270483 to your computer and use it in GitHub Desktop.

Select an option

Save khannedy/1270483 to your computer and use it in GitHub Desktop.
Installing OCI8 in Ubuntu
sudo alien oracle-instantclient11.2-basic_11.2.0.2.0-2_i386.rpm
sudo alien oracle-instantclient11.2-devel_11.2.0.2.0-2_i386.rpm
sudo gedit /etc/php5/conf.d/oci8.ini
sudo dpkg -i oracle-instantclient11.2-basic_11.2.0.2.0-2_i386.deb
sudo dpkg -i oracle-instantclient11.2-devel_11.2.0.2.0-2_i386.deb
sudo pecl install oci8
instantclient,/usr/lib/oracle/11.2/client/lib
extension=oci8.so
echo@echo-ubuntu:~$ sudo pecl install oci8
downloading oci8-1.4.6.tgz ...
Starting to download oci8-1.4.6.tgz (167,182 bytes)
.................................done: 167,182 bytes
10 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
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] :
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment