Created
October 7, 2011 15:12
-
-
Save khannedy/1270483 to your computer and use it in GitHub Desktop.
Installing OCI8 in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo gedit /etc/php5/conf.d/oci8.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pecl install oci8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| instantclient,/usr/lib/oracle/11.2/client/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension=oci8.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment