사용자 도구

사이트 도구


develop:php:oci8_install:enabling_the_php_oci8_extension_on_debian_unbuntu

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
develop:php:oci8_install:enabling_the_php_oci8_extension_on_debian_unbuntu [2015/03/03 11:21]
starlits [OCI8 Install]
develop:php:oci8_install:enabling_the_php_oci8_extension_on_debian_unbuntu [2017/12/27 01:22]
starlits 제거됨
줄 23: 줄 23:
 $ phpize $ phpize
 </code> </code>
-  - +  - libclntsh.so 경로를 확인한다. <code> 
 +$ ls $ORACLE_HOME/lib/libclntsh.so 
 +/u01/app/oracle/product/10.2.0/lib/libclntsh.so 
 +</code> 
 +  - 환경설정을 맞춰서 컴파일을 한다. \\ --with-oci8 에 상황에 맞게 shared 와 instantclient 를 붙여준다. <code> 
 +$ ./configure --with-oci8=$ORACLE_HOME (default) 
 +$ ./configure --with-oci8=instantclient,$ORACLE_HOME 
 +$ ./configure --with-oci8=shared,instantclient,$ORACLE_HOME 
 +</code>  
 +  - make install 를 실행한다. \\ root가 아닐 경우 퍼미션 에러가 날 수 있다, 이때에는 sudo 를 같이 써준다. <code> 
 +$ 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/ 
 +</code>