php-install Digest 28 Jun 2001 15:20:31 -0000 Issue 339

Topics (messages 3366 through 3368):

Re: Rebuild php
        3366 by: Jani Taskinen

PHP & Java (another one!)
        3367 by: Chris

During MAKE:  program cc1 got fatal signal 11
        3368 by: Innovum

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


On Wed, 27 Jun 2001, Chris wrote:

>Hi,
>I've succesfully installed php 4.0.1pl1 on my Linux Server few months ago,
>and now I wanted to recompile it with some more modules.
>I went to the installation directory then I've deleted the config.cache file
>and:
>

This should work better:

./configure --with-all-modules-I-need
make clean
make
make install

Notice the 'make clean'.

And best way to get really clean sources is to rm -rf the 'old' ones
and unpack the sources from tar.gz again.

--Jani





Hi,
after one day spent on web and newsgroup searching, I decided to ask here
for an help:

when I open a php page with something like:
$system = new Java("java.lang.System");
I get the following error: Fatal error: Cannot instantiate non-existent
class: java in /home/httpd/htdocs/MyFile.php on line ...

PHP and Apache are working, when I do phpinfo() I get all the info but
"Additional Modules" is blank (should I see Java section there?)

I've
1) installed j2sdk1.3.0 on my linux system
2) built and installed php4.0.4pl1 --with-java option
3) bulit and installed apache 1.3.19
4) I've modified php.ini:
[Java]
java.home = /usr/local/j2sdk1.3.0
java.class.path = /usr/local/lib/php_java.jar
java.library.path=/usr/local/lib:/usr/local/jdk1.3.0/jre/lib/i386/native_thr
eads:/usr/local/j2sdk1.3.0/jre/lib/i386/classic:/usr/local/j2sdk1.3.0/jre/li
b/i386
extension_dir=/home/public/php-4.0.4pl1/modules
extension=libphp_java.so

5) Modified some env variables
PATH=/usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/j2sdk1.3.0/bin:/usr/lo
cal/j2sdk1.3.0/bin:/home/chris/bin
LD_LIBRARY_PATH=/usr/local/j2sdk1.3.0/jre/lib/i386/native_threads:/usr/local
/j2sdk1.3.0/jre/lib/i386/classic:/usr/local/j2sdk1.3.0/jre/lib/i386:/usr/lib
/apache

Thanks a lot for any help!

Chris.









Here is what is exactly says:
gcc: Internal compiler error: program cc1 got fatal signal 11
make[4]: ***[mf_pack.lo] Error 1
make[4]: Leaving directory '/homechris/php-406/ext/mysql/libmysql'
make[3]: ***[all-recursive] Error 1
make[3]: Leaving directory '/homechris/php-406/ext/mysql/libmysql'
make[2]: ***[all-recursive] Error 1
make[2]: Leaving directory '/homechris/php-406/ext/mysql'
make[1]: ***[all-recursive] Error 1
make[1]: Leaving directory '/homechris/php-406/ext'
make: *** [all-recursive] Error 1


And here is, what i exactly did:
QUICK INSTALL (Static)
$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..

$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install

$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
 (The above line is correct!  Yes, we know libphp4.a does not exist at this
  stage.  It isn't supposed to.  It will be created.)
$ make

Whats WRONG??




Reply via email to