From: William L. <wil...@co...> - 2005-08-02 12:35:01
|
Hello, I've been trying to compile this module on my development web server for the company I work for. I can't get pass the "./configure" stage. It aborts with the following: [root@cooeps php-java-bridge-2.0.7]# ./configure --with-java=/usr/local/IBMJava2-142 ... ... checking for unistd.h... yes checking whether AF_LOCAL is declared... yes checking whether PF_LOCAL is declared... yes checking for socket in -lsocket... no checking for sem_init in -lrt... yes checking for pthreads_cflags... checking for pthreads_lib... configure: error: host_alias is not set. Make sure to run config.guess I then run "config.guess" and I get the following: i686-pc-linux-gnu I retry with configure but still it fails in the same part. Then I try adding the --host parameter to the configure script: [root@cooeps php-java-bridge-2.0.7]# ./configure --host=i686-pc-linux-gnu --with-java=/usr/local/IBMJava2-142 configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for i686-pc-linux-gnu-gcc... no checking for gcc... gcc ... ... checking whether AF_LOCAL is declared... yes checking whether PF_LOCAL is declared... yes checking for socket in -lsocket... no checking for sem_init in -lrt... yes checking for pthreads_cflags... checking for pthreads_lib... checking for broken stdio buffering... no checking for broken gcc installation... no checking for abstract namespace... yes checking for struct ucred... yes configure: error: cannot run And here is where I am stuck. According to the project web page I am complying with the minimum version requests for the tools needed to make the build. I am using RedHat 9 with the following packages: - kernel-2.4.20-8 - JDK from IBM 1.4.2 (IBMJava2-142) - gcc-3.2.2-5 - apache 1.3.28 (compiled from source) - php 4.3.2 (compiled from source) - libtool-1.4.3-5 - automake-1.6.3-5 - make-3.79.1-17 - autoconf-2.57-3 What can I do? any ideas? The funny thing is that I configured the module successfully in my workstation with Fedora Core 3 and the latest updates. Thanx in advance, -William |
From: Jost B. <jos...@ya...> - 2005-09-17 15:24:42
|
Hi William, [please excuse the delay] to the best of my knowledge this problem should be fixed in version 2.0.8RC5. Please see the updated INSTALL document for details. Furthermore it should be possible to use the binary RPM: * Extract the "java.so" and "JavaBridge.jar" from the binary RPM with the command: rpm2cpio php-java-bridge*.rpm | cpio -iduv * Install PHP 4.3.2 or above and copy the "java.so" and "JavaBridge.jar" into its extension folder. * run the test.php with: php test.php Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-09-17 17:39:31
|
Jost, I tried you're directions below for extracting the "java.so" and "JavaBridge.jar" from RPM and copying them into the PHP extension folder(/usr/local/lib/php/ext). I get this error returned to the browser, #!/usr/bin/php Please permanently activate the extension. Loading java extension now... java extension not installed. I can't run test.php from a command line either, it can't load the java.so with similar error messages. I added the java.ini lines to the php.ini. PHP is running fine. The .so and .war file are located in - usr/local/lib/php/ext The contents of the php.ini file is below... RH 9.0 PHP 4.4.0 Thanks, Jim ---------------PHP INI FILE START---------------- . . . regula PHP.INI entries are ok... . . . The BELOW PORTION WAS ADDED TO THE PHP.INI file ;; -*- mode: Scheme; tab-width:4 -*- ;; Copy this file to the php ini directory (usually /etc/php.d) or ;; copy its content to the global php.ini (usually /etc/php.ini or ;; /usr/local/lib/php.ini). ;; ;; Use the java.socketname, java.hosts and java.servlet to ;; control the operation mode: ;; ;; 1) java.socketname and java.hosts off: local backend which ;; starts automatically. ;; ;; 2) java.socketname set: local system backend started by the ;; php-java-bridge service script. ;; ;; 3) java.hosts set: external backend(s) on a different server(s). ;; ;; 4) java.hosts and java.servlet set: external backend(s) ;; deployed in a j2ee application server or servlet engine. extension = java.so [java] ;; log level between 0 (log off) and 4 (log debug). The default "log ;; file" is the standard output. The default level is 2. java.log_level = 2 java.log_file = /var/log/php-java-bridge.log ;; Adjust the following options if the VM or its location have ;; changed since you ran the ./configure command. java.java_home = @JAVA_HOME@ java.java = @JAVA_JAVA@ ;; If you want to start the backend automatically as a sub-component ;; of your HTTP server, comment out _all the following options_. ;; If you don't have a servlet engine, double-click on JavaBridge.jar ;; or use the php-java-bridge service script to start and stop the ;; backend as a system service. Please see the RedHat RPM download ;; for an example how to start java as a system service. ;;POR took out ;;java.socketname = /var/run/.php-java-bridge_socket ;; If you have a servlet engine or an application server, deploy ;; JavaBridge.war and re-start the servlet engine or the application ;; server. Comment out the "java.socketname" option and uncomment ;; the following options. java.hosts = "127.0.0.1:8080" java.servlet = On ---------------PHP INI FILE FINISH---------------- >From: Jost Boekemeier <jos...@ya...> >To: William Lovaton ><wil...@co...>,php...@li... >Subject: Ant: [Php-java-bridge-users] Problem compiling version 2.0.7 on >RedHat 9 >Date: Sat, 17 Sep 2005 17:24:35 +0200 (CEST) > >Hi William, > >[please excuse the delay] > >to the best of my knowledge this problem should be >fixed in version 2.0.8RC5. Please see the updated >INSTALL document for details. > >Furthermore it should be possible to use the binary >RPM: > >* Extract the "java.so" and "JavaBridge.jar" from the >binary RPM with the command: > > rpm2cpio php-java-bridge*.rpm | cpio -iduv > >* Install PHP 4.3.2 or above and copy the "java.so" >and "JavaBridge.jar" into its extension folder. > >* run the test.php with: php test.php > > >Regards, >Jost Boekemeier > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. >Download it for free - -and be entered to win a 42" plasma tv or your very >own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: Jost B. <jos...@ya...> - 2005-09-19 20:06:57
|
Hi, [please excuse the delay] the java.so for RH9/php4.4 is available at: http://php-java-bridge.sourceforge.net/php-java-bridge_2.0.8-RH9-php4.4.tar It contains java.so (version 2.0.8) and JavaBridge.jar (version 2.0.8). Please copy the java.so into the extension directory of you php 4.4 installation and please make sure that the php executable /usr/bin/php is indeed the php4.4 cgi binary. To compile the php-java-bridge on RH9, please follow the "Installation from source" instructions in the INSTALL document. binary or source RPM's cannot be used on RH9, this rpm distribution is too old, sorry. In case you don't want to install autoconf 2.57, automake 1.6.3 and libtool 1.4.3, please see the "Compiling the bridge without autoconf" section. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-09-20 01:33:50
|
>please make sure that the php executable /usr/bin/php >is indeed the php4.4 cgi binary How can I tell? My PHP file is from 6-29-2003. Thanks Jim >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas <jd...@ho...>, >wil...@co...,php...@li... >Subject: Ant: RE: Ant: [Php-java-bridge-users] Problem compiling version >2.0.7 on RedHat 9 >Date: Mon, 19 Sep 2005 22:05:34 +0200 (CEST) > >Hi, > >[please excuse the delay] > >the java.so for RH9/php4.4 is available at: > >http://php-java-bridge.sourceforge.net/php-java-bridge_2.0.8-RH9-php4.4.tar > >It contains java.so (version 2.0.8) and JavaBridge.jar >(version 2.0.8). Please copy the java.so into the >extension directory of you php 4.4 installation and >please make sure that the php executable /usr/bin/php >is indeed the php4.4 cgi binary. > > >To compile the php-java-bridge on RH9, please follow >the "Installation from source" instructions in the >INSTALL document. binary or source RPM's cannot be >used on RH9, this rpm distribution is too old, sorry. > >In case you don't want to install autoconf 2.57, >automake 1.6.3 and libtool 1.4.3, please see the >"Compiling the bridge without autoconf" section. > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. >Download it for free - -and be entered to win a 42" plasma tv or your very >own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: Jost B. <jos...@ya...> - 2005-09-20 16:29:53
|
Hi Jim, > How can I tell? My PHP file is from 6-29-2003. With the command php --version or php -v. php 4.4 was released 2005, so I assume you have still the 4.1 installed. Where have you installed php 4.4? Please locate it, check that it is a cgi binary (php -i must display HTML content) and then copy it into the cgi directory, please see section "AS/Servlet with PHP CGI" in the README. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-09-24 19:43:46
|
Jost, Thanks for compiling for RH 9.0, that solves that problem. I have a problem with PHP seeing the java.so. When I run a test with, echo '<php phpinfo() ?>' | php | fgrep java, I get the folllowing error; PHP Warning: Unknown(): Unable to load dynamic library './java.so' - ./java.so: cannot open shared object file: No such file or directory in Unknown on line 0 (I tried the full path also in the php.ini, "extension=/usr/local/lib/php/ext/java.so") What I have done, 1- Tested and confirmed that I have PHP 4.4.0. It is running fine and serving up web pages. 2- I copied the java.so to the PHP install directory, /usr/local/lib/php/ext 3. I added "extension=java.so" to the php.ini 4 - I copied JavaBridge.jar /usr/opt/tomcat/webapps/WEB_INF/lib (Is this the correct directory to copy to JavaBridge.jar to?) Thanks, for the compiled code, and I really appreciate your help! Jim >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas <jd...@ho...>, >wil...@co...,php...@li... >Subject: Ant: RE: Ant: [Php-java-bridge-users] Problem compiling version >2.0.7 on RedHat 9 >Date: Mon, 19 Sep 2005 22:05:34 +0200 (CEST) > >Hi, > >[please excuse the delay] > >the java.so for RH9/php4.4 is available at: > >http://php-java-bridge.sourceforge.net/php-java-bridge_2.0.8-RH9-php4.4.tar > >It contains java.so (version 2.0.8) and JavaBridge.jar >(version 2.0.8). Please copy the java.so into the >extension directory of you php 4.4 installation and >please make sure that the php executable /usr/bin/php >is indeed the php4.4 cgi binary. > > >To compile the php-java-bridge on RH9, please follow >the "Installation from source" instructions in the >INSTALL document. binary or source RPM's cannot be >used on RH9, this rpm distribution is too old, sorry. > >In case you don't want to install autoconf 2.57, >automake 1.6.3 and libtool 1.4.3, please see the >"Compiling the bridge without autoconf" section. > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. >Download it for free - -and be entered to win a 42" plasma tv or your very >own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: Jost B. <jos...@ya...> - 2005-09-25 11:04:57
|
Hi Jim, > PHP Warning: Unknown(): Unable to load dynamic > library './java.so' - can you please type the following two commands: echo "<?php dl('java.so'); ?>" >test.php strace -s512 /usr/local/bin/php test.php 2>strace.log create a ticket for this, please see (http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the strace.log there? I will check this asap. Regards, Jost Boekemeier ___________________________________________________________ Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: http://surveylink.yahoo.com/wix/p0379378.aspx |
From: Jim D. <jd...@ho...> - 2005-09-25 17:07:57
|
Done.. Thanks, Jim >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas <jd...@ho...>, >wil...@co...,php...@li... >Subject: Ant: RE: Ant: RE: Ant: [Php-java-bridge-users] Problem compiling >version 2.0.7 on Red >Date: Sun, 25 Sep 2005 13:04:46 +0200 (CEST) > >Hi Jim, > > > PHP Warning: Unknown(): Unable to load dynamic > > library './java.so' - > >can you please type the following two commands: > >echo "<?php dl('java.so'); ?>" >test.php >strace -s512 /usr/local/bin/php test.php 2>strace.log > >create a ticket for this, please see > >(http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > >and attach the strace.log there? > >I will check this asap. > > >Regards, >Jost Boekemeier > > > > >___________________________________________________________ >Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: >http://surveylink.yahoo.com/wix/p0379378.aspx > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. >Download it for free - -and be entered to win a 42" plasma tv or your very >own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |