리눅스6.1, 오라클 8.0.5 사용합니다.
오라클은 문제없습니다.
demo프로그램도 컴파일 실행 모두 잘됩니다.
근데 웹에서 구동시 에러발생:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
error_log화일의 에러내용:
[Mon Feb 7 19:11:09 2000] [error] [client 210.111.78.33] Premature end of script headers: /home/httpd/cgi-bin/test1
test1: error in loading shared libraries: libclntsh.so.1.0: cannot open shared object file: No such file or directory
제 오라클 환경설정값:
ORACLE_HOME=/home/oracle/app/oracle/product/8.0.5
ORACLE_SID=ORCL
LD_LIBRARY_PATH=/home/oracle/app/oracle/product/8.0.5/lib:
제 추측으론 ldconfig에서 문제가 생긴것 같습니다.
ldconfig 실행시 warning 발생:
ldconfig:warngin:/home/oracle/app/oracle/product/8.0.5/lib/libclntsh.so.1.0 is not a symlink
$ORACLE_HOME/lib:
lrwxrwxrwx 1 oracle dba 16 Feb 7 18:27 libclntsh.so -> libclntsh.so.1.0*
-rwxr-xr-x 1 oracle dba 4359287 Feb 7 18:27 libclntsh.so.1.0*
-rwxr-xr-x 1 oracle dba 4359287 Feb 7 18:25 libclntsh.so.1.0.pre-glibcpatch*
고수님들의 솔루션을 구합니다.
|