문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | |||
develop:php:oci8_install:enabling_the_php_oci8_extension_on_debian_unbuntu [2017/12/27 01:22] starlits 제거됨 |
— (현재) | ||
---|---|---|---|
줄 1: | 줄 1: | ||
- | ====== Enabling the php oci8 ====== | ||
- | |||
- | ===== Oracle Installed ===== | ||
- | |||
- | 설치되어 있는 오라클 정보이다. | ||
- | |||
- | ^ ORACLE_BASE | / | ||
- | ^ ORACLE_HOME | $ORACLE_BASE/ | ||
- | ^ LD_LIBRARY_PATH | $ORACLE_HOME/ | ||
- | |||
- | ===== OCI8 Install ===== | ||
- | |||
- | - http:// | ||
- | $ wget http:// | ||
- | </ | ||
- | - 압축을 해제한다. < | ||
- | $ tar xvfz oci8-2.0.8.tgz | ||
- | </ | ||
- | - 소스경로로 이동한다. < | ||
- | $ cd oci8-2.0.8/ | ||
- | </ | ||
- | - PHP 확장모듈을 위한 빌드환경을 만들기 위해 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: | ||
- | </ | ||