PHP / JAVA Configuration problems
| From: | Knittel, Michael | Date: | Wed, 23 Mar 2005 21:34:51 +0000 |
| Subject: | PHP / JAVA Configuration problems | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-15889@lists.php.net to get a copy of this message | ||
I am trying to configure PHP to integrate JAVA support and am receiving an
error during configuration. The following is the current system
information, configuration parameters and debug.log file. I have checked
all the path information and have verified the existance of the libjvm.so
file that is generating the error. Any assistance you can provide is
greatly appreciated.
OS: SuSE 9
PHP: 4.3.10
JAVA JDK: 1.5.0.02
PHP Configuration Parameters:
'./configure' '--prefix=/usr' '--datadir=/usr/share/php'
'--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share'
'--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib'
'--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin'
'--disable-debug' '--enable-inline-optimization'
'--enable-memory-limit'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild'
'--disable-ctype' '--disable-session' '--without-mysql'
'--disable-cli'
'--without-pear' 'i586-suse-linux' '--with-java=/usr/java/jdk1.5.0_02'
Debug.log error messages:
CONFIGURE: './configure' '--prefix=/usr' '--datadir=/usr/share/php'
'--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share'
'--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib'
'--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin'
'--disable-debug' '--enable-inline-optimization'
'--enable-memory-limit'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild'
'--disable-ctype' '--disable-session' '--without-mysql'
'--disable-cli'
'--without-pear' 'i586-suse-linux' '--with-java=/usr/java/jdk1.5.0_02'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I$(top_builddir)/Zend
LDFLAGS: -Wl,-rpath,/usr/java/jdk1.5.0_02/jre/lib/i386/server
-L/usr/java/jdk1.5.0_02/jre/lib/i386/server
-Wl,-rpath,/usr/java/jdk1.5.0_02/jre/lib/i386/native_threads
-L/usr/java/jdk1.5.0_02/jre/lib/i386/native_threads
-Wl,-rpath,/usr/java/jdk1.5.0_02/jre/lib/i386
-L/usr/java/jdk1.5.0_02/jre/lib/i386
LIBS: -lcrypt -ljava -lresolv -lm -ldl -lnsl -lcrypt
DLIBS:
SAPI: cgi
PHP_RPATHS: /usr/java/jdk1.5.0_02/jre/lib/i386/server
/usr/java/jdk1.5.0_02/jre/lib/i386/native_threads
/usr/java/jdk1.5.0_02/jre/lib/i386
uname -a: Linux testphp4 2.6.5-7.97-smp #1 SMP Fri Jul 2 14:21:59 UTC 2004
i686 i686 i386 GNU/Linux
gcc -o conftest -g -O2
-Wl,-rpath,/usr/java/jdk1.5.0_02/jre/lib/i386/server
-L/usr/java/jdk1.5.0_02/jre/lib/i386/server
-Wl,-rpath,/usr/java/jdk1.5.0_02/jre/lib/i386/native_threads
-L/usr/java/jdk1.5.0_02/jre/lib/i386/native_threads
-Wl,-rpath,/usr/java/jdk1.5.0_02/jre/lib/i386
-L/usr/java/jdk1.5.0_02/jre/lib/i386 conftest.c -lcrypt -ljava -lresolv -lm
-ldl -lnsl -lcrypt 1>&5
./conftest: error while loading shared libraries: libjvm.so: cannot open
shared object file: No such file or directory
Thank you,
Mike Knittel
Software Systems Engineer
Insight Communications
(502) 357-4599