문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
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 | ||
</ | </ | ||
- | - | + | - libclntsh.so 경로를 확인한다. < |
+ | $ ls $ORACLE_HOME/ | ||
+ | / | ||
+ | </ | ||
+ | - 환경설정을 맞춰서 컴파일을 한다. \\ --with-oci8 에 상황에 맞게 shared 와 instantclient 를 붙여준다. < | ||
+ | $ ./configure --with-oci8=$ORACLE_HOME (default) | ||
+ | $ ./configure --with-oci8=instantclient, | ||
+ | $ ./configure --with-oci8=shared, | ||
+ | </ | ||
+ | - make install 를 실행한다. \\ root가 아닐 경우 퍼미션 에러가 날 수 있다, 이때에는 sudo 를 같이 써준다. < | ||
+ | $ make install | ||
+ | $ sudo make install | ||
+ | |||
+ | [sudo] password for starlits: | ||
+ | /bin/bash / | ||
+ | libtool: install: cp ./ | ||
+ | libtool: install: cp ./ | ||
+ | libtool: finish: PATH="/ | ||
+ | ---------------------------------------------------------------------- | ||
+ | Libraries have been installed in: | ||
+ | / | ||
+ | |||
+ | 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' | ||
+ | | ||
+ | - add LIBDIR to the `LD_RUN_PATH' | ||
+ | | ||
+ | - use the `-Wl,-rpath -Wl, | ||
+ | - have your system administrator add LIBDIR to `/ | ||
+ | |||
+ | See any operating system documentation about shared libraries for | ||
+ | more information, | ||
+ | ---------------------------------------------------------------------- | ||
+ | Installing shared extensions: | ||
+ | </ |