문서의 이전 판입니다!
설치되어 있는 오라클 정보이다.
ORACLE_BASE | /u01/app/oracle |
---|---|
ORACLE_HOME | $ORACLE_BASE/product/10.2.0 |
LD_LIBRARY_PATH | $ORACLE_HOME/lib:$ORACLE_HOME/jdbc/lib |
# vi /etc/bash_completion.d/oracle export ORACLE_BASE="/usr/local/instantclient_11_2" export ORACLE_HOME="/usr/local/instantclient_11_2" export LD_LIBRARY_PATH="/usr/local/instantclient_11_2"
$ wget http://pecl.php.net/get/oci8-2.1.8.tgz
$ tar xvfz oci8-2.1.8.tgz
$ cd oci8-2.1.8/
$ phpize
$ ls $ORACLE_HOME/lib/libclntsh.so /u01/app/oracle/product/10.2.0/lib/libclntsh.so or $ ls $ORACLE_HOME/libclntsh.so /usr/local/instantclient_11_2/libclntsh.so
$ ./configure --with-oci8=$ORACLE_HOME (default) $ ./configure --with-oci8=instantclient,$ORACLE_HOME $ ./configure --with-oci8=shared,instantclient,$ORACLE_HOME
$
$ make install $ sudo make install [sudo] password for starlits: /bin/bash /home/starlits/src/opensources/oci8-2.0.8/libtool --mode=install cp ./oci8.la /home/starlits/src/opensources/oci8-2.0.8/modules libtool: install: cp ./.libs/oci8.so /home/starlits/src/opensources/oci8-2.0.8/modules/oci8.so libtool: install: cp ./.libs/oci8.lai /home/starlits/src/opensources/oci8-2.0.8/modules/oci8.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /home/starlits/src/opensources/oci8-2.0.8/modules ---------------------------------------------------------------------- Libraries have been installed in: /home/starlits/src/opensources/oci8-2.0.8/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Installing shared extensions: /usr/lib/php5/20090626+lfs/