Date: Wed, 12 Jun 2002 13:11:13 -0700 (PDT) From: "Robert F. Ross" <rross@recourse.com> To: Josh Levine <joshl@levindustries.com> Cc: freebsd-java@FreeBSD.ORG Subject: Re: Apache+PHP+Java Message-ID: <Pine.GSO.4.21.0206121309540.1002-100000@recourse.com> In-Reply-To: <3D07A193.68536CEC@levindustries.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You need a linux libnsl if it's the linux jdk you're running, not a freebsd libnsl. Symlinking the wrong platform libs won't help much since it's being emulated. The native JDKs are in /usr/ports, but threading/JNI don't seem to be as stable in them as with the linux JDK. IANAE. Robert Ross Senior Software Engineer Recourse Technologies, Inc. On Wed, 12 Jun 2002, Josh Levine wrote: > Hi! > > I'm trying to compile PHP with Java support, and am running into some > problems (about two days worth so far). I guess my short question is, > which JDK port should I be using to do this? > > Currently, I have linux-jdk1.4.0.01 installed and am trying to use > that. I've read a lot about a FreeBSD native version - does this > actually exist? If so, what's the port name for it? Anyway, here's > what I have in my php.ini file: > > [Java] > java.class.path = /usr/local/lib/php/php_java.jar > java.home = /usr/local/linux-jdk > java.library = /usr/local/linux-jdk/jre/lib/i386/server/libjvm.so > java.library.path = /usr/local/lib/php/extensions:/usr/compat/linux/lib > extension=libphp_java.so > > And here's the error message I receive: > > Unable to load Java Library > /usr/local/linux-jdk/jre/lib/i386/server/libjvm.so, error: Shared object > "libnsl.so.1" not found in /usr/home/research/htdocs/java.php on line 3 > > I've tried symlinking the various objects it needs to /usr/local/lib, > but then the script just didn't work, and the Apache error log contained > a series of these messages: > > [notice] child pid 50819 exit signal Bus error (10) > > Any ideas? > > Thanks in advance for your help, > Josh Levine > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0206121309540.1002-100000>