PHP5 install error on FreeBSD 7.0

Joseph Simmons josephdsimmons at gmail.com
Sat Apr 12 00:39:41 UTC 2008


I can't seem to install PHP 4 or 5 from the port collection or PHP5
from PHP's website. I'm new to FreeBSD so I'm not sure I'm overlooking
something rather simple or if I'm missing some other program or
something like that....
I have Apache 2.2.6 installed and running, I've tried to install PHP
several times, below is what the terminal gives me when I try to
install PHP5 from the port collection.
Thanks


cougar# pwd
/usr/ports/lang/php5
cougar# make install
===>  Building for php5-5.2.5
"Makefile", line 588: warning: duplicate script for target
"main/internal_functions.lo" ignored
/bin/sh /usr/ports/lang/php5/work/php-5.2.5/libtool
--preserve-dup-deps --mode=compile cc  -DHAVE_MYSQL_H
-I/usr/local/include/apache22   -I/usr/local/include/apr-1
-I/usr/local/include/apr-1 -I/usr/local/include
-I/usr/local/include/mysql -Isapi/apache2handler/
-I/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/
-DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.2.5/include
-I/usr/ports/lang/php5/work/php-5.2.5/main
-I/usr/ports/lang/php5/work/php-5.2.5 -I/usr/local/include/libxml2
-I/usr/local/include
-I/usr/ports/lang/php5/work/php-5.2.5/ext/date/lib
-I/usr/ports/lang/php5/work/php-5.2.5/TSRM
-I/usr/ports/lang/php5/work/php-5.2.5/Zend    -pipe -g -O0 -Wall
-prefer-non-pic -c
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/mod_php5.c -o
sapi/apache2handler/mod_php5.lo
 cc -DHAVE_MYSQL_H -I/usr/local/include/apache22
-I/usr/local/include/apr-1 -I/usr/local/include/apr-1
-I/usr/local/include -I/usr/local/include/mysql -Isapi/apache2handler/
-I/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/
-DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.2.5/include
-I/usr/ports/lang/php5/work/php-5.2.5/main
-I/usr/ports/lang/php5/work/php-5.2.5 -I/usr/local/include/libxml2
-I/usr/local/include
-I/usr/ports/lang/php5/work/php-5.2.5/ext/date/lib
-I/usr/ports/lang/php5/work/php-5.2.5/TSRM
-I/usr/ports/lang/php5/work/php-5.2.5/Zend -pipe -g -O0 -Wall -c
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/mod_php5.c -o
sapi/apache2handler/.libs/mod_php5.o
In file included from
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/mod_php5.c:26:
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:24:19:
error: httpd.h: No such file or directory
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:25:25:
error: http_config.h: No such file or directory
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:26:23:
error: http_core.h: No such file or directory
In file included from
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/mod_php5.c:26:
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:29:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'AP_MODULE_DECLARE_DATA'
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:37:
error: expected specifier-qualifier-list before 'request_rec'
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:51:
error: expected ')' before '*' token
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:52:
error: expected ')' before '*' token
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:55:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'php_dir_cmds'
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/php_apache.h:56:
error: expected ')' before '*' token
/usr/ports/lang/php5/work/php-5.2.5/sapi/apache2handler/mod_php5.c:28:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'module'
*** Error code 1

Stop in /usr/ports/lang/php5/work/php-5.2.5.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.


More information about the freebsd-questions mailing list