Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling PHP with Java

Status
Not open for further replies.

Ares

Technical User
Jun 25, 2001
4
GB
Hello

I was wondering if anyone could help me with a problem. I have installed Apache/PHP and MySQL. Now I need to install Java so I have ungziped JKD and done the make. Then I go into the php dir and type:

root@Area79:/usr/local/src/php-4.0.5# ./configure --with-java=/usr/local/src/jdk1.2.2/

It completes the configure fine.

When I type ‘make’ it get the following errors:

root@Area79:/usr/local/src/php-4.0.5# make
Making all in Zend
make[1]: Entering directory `/usr/local/src/php-4.0.5/Zend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/php-4.0.5/Zend'
Making all in main
make[1]: Entering directory `/usr/local/src/php-4.0.5/main'
make[2]: Entering directory `/usr/local/src/php-4.0.5/main'
/bin/sh /usr/local/src/php-4.0.5/libtool --silent --mode=compile gcc -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5 -I/usr/local/src/php-4.0.5/Zend -I/usr/local/src/php-4.0.5/ext/mysql/libmysql -I/usr/local/src/php-4.0.5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.5/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c internal_functions.c
/bin/sh /usr/local/src/php-4.0.5/libtool --silent --mode=link gcc -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5 -I/usr/local/src/php-4.0.5/Zend -I/usr/local/src/php-4.0.5/ext/mysql/libmysql -I/usr/local/src/php-4.0.5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.5/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -o libmain.la main.lo internal_functions.lo snprintf.lo php_sprintf.lo safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo php_content_types.lo strlcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo network.lo php_open_temporary_file.lo php_logos.lo
make[2]: Leaving directory `/usr/local/src/php-4.0.5/main'
make[1]: Leaving directory `/usr/local/src/php-4.0.5/main'
Making all in ext
make[1]: Entering directory `/usr/local/src/php-4.0.5/ext'
Making all in java
make[2]: Entering directory `/usr/local/src/php-4.0.5/ext/java'
make[3]: Entering directory `/usr/local/src/php-4.0.5/ext/java'
/usr/local/src/php-4.0.5/build/shtool mkdir -p net/php
javac net/php/reflect.java
make[3]: javac: Command not found
make[3]: *** [php_java.jar] Error 127
make[3]: Leaving directory `/usr/local/src/php-4.0.5/ext/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.5/ext/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.5/ext'
make: *** [all-recursive] Error 1
root@Area79:/usr/local/src/php-4.0.5#

has anyone come across this before or know how I can resolve it. I am running Slackware 7.0 and am not a linux expert :)
Thanks

Ares
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top