Page 1 of 1

PHP installation in solaris ,please help me!

Posted: Fri Sep 06, 2002 4:12 am
by nsong
Please help me!
I know you have some experience on installing php in solaris from http://www.php.net,so I want to get some help from you . Thank you anyway .

I am Installing PHP in Solaris5.9 with apache and oracle 8i supportted .I take the following steps:

First,I install flex, gcc, gzip,perl,bison, make, m4, autoconf, automake as user "oracle".

Second,I configured as followwing:./configure --with-prefix=/export/home/oracle/www/soft --with-oracle=/export/home/oracle/OraHome --with-oci8=/export/home/oracle/OraHome --enable-track-vars
And no problem reported

Then I begin to make,the following error occered:

When I try to install php-4.2.1,the error is:

sw# make
Making all in Zend
make[1]: Entering directory `/export/home/oracle/www/php-4.2.1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -D_POSIX_PTHREAD_SEMANTICS -I../TSRM -g -O2 -prefer-non-pic
-static -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo
'./'`zend_language_parser.c
In file included from zend_compile.h:24,
from zend_language_parser.c:147:
zend.h:55:19: unix.h: No such file or directory
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/export/home/oracle/www/php-4.2.1/Zend'
make: *** [all-recursive] Error 1


And when I try to install php-4.0.6,the error is:

sw# make
Making all in Zend
make[1]: Entering directory `/export/home/oracle/www/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g
-O2 -c zend_language_scanner.c
/usr/ccs/bin/as: "/var/tmp/ccO2rYeQ.s", line 29507: error: unknown opcode
".subsection"
/usr/ccs/bin/as: "/var/tmp/ccO2rYeQ.s", line 29507: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccO2rYeQ.s", line 29665: error: unknown opcode
".previous"
/usr/ccs/bin/as: "/var/tmp/ccO2rYeQ.s", line 29665: error: statement syntax
make[1]: *** [zend_language_scanner.lo] Error 1
make[1]: Leaving directory `/export/home/oracle/www

I don't know how to comeover it,can you give

Posted: Fri Sep 06, 2002 6:27 am
by Johnm
You will have to find the file unix.h then edit the path in zend.h on line 55 and maybe line 19 to tell zend.h where to find it. If you do not have it installed anywhere you will have to find it and install it. I will not even hazard a guess as to which package uses unix.h.

Direwolf

Posted: Sun Sep 08, 2002 4:59 am
by nsong
I find that "unix.h" is in the floder "main/" and change "include<unix.h>" in zend.h to "include<../main/unix.h>" ,but the result is the same!

Posted: Sun Sep 08, 2002 9:02 am
by Johnm
Hmmm. well, try changing the include path back to what it was and adding that directory to the INCLUDEDIR (or something close to that) that is in the configure script (I think, maybe in the Makefile) it is going to look something like this:

INCLUDEDIR= -L/dir/dir/main -L/usr/lib etc.
I do not have any of this to reference as I am at home but that should point you in the right direction.

Direwolf