I have broken php5 Freebsd 8-1

I get

Code:
 make install
===>  Installing for php5-5.3.2_1
===>   php5-5.3.2_1 depends on file: /usr/local/sbin/apxs - found
===>   php5-5.3.2_1 depends on executable: pkg-config - found
===>   php5-5.3.2_1 depends on shared library: pcre.0 - found
===>   php5-5.3.2_1 depends on shared library: xml2.5 - found
===>   Generating temporary packing list
===>  Checking if lang/php5 already installed
"Makefile", line 601: warning: duplicate script for target "main/internal_functions.lo" ignored
Installing PHP SAPI module:       apache2handler
apxs:Error: file libphp5.la is not a DSO
*** Error code 1

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

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

Stop in /usr/ports/lang/php5.

I have run make deinstall
How do I reinstall php.
 
This might be related:
20100518:
AFFECTS: users of devel/apr0, devel/apr1, www/apache20, www/apache22
AUTHOR: pgollucci@FreeBSD.org

devel/apr port has been renamed to devel/apr1.

WITH_APR_FROM_PORTS=yes for www/apache22 has been dissolved and may be
removed from your configuration files; devel/apr1 is always used now.

Please manually delete apache-2.\* if installed _before_ updating using
either portmaster or portupgrade:

pkg_delete -f apache-2.\*

Then, if you use portmaster:

portmaster -o devel/apr1 devel/apr

If you use portupgrade:

portupgrade -f -o devel/apr1 devel/apr

Finally, reinstall Apache port if you deleted it earlier and update ports as
usual (`XX' below is either 20 or 22):

portinstall www/apacheXX
 
Thank you for your replies. I need to learn about portmaster and portupgrade.

Have been trying to install this FreeBSD server just using 'pkg_add -r'.
 
Solved

roxanne said:
make install clean may help.

I ended up running

portsnap fetch extract

portmanager -u

Then went to /usr/ports/lang/php5

make install clean

as php was not installed, now my only problem is php won't run any scripts except phpinfo()
 
If you want to use PHP in Apache you will have to build from source. The package only contains the CLI version, it does NOT contain the apache module.
 
Back
Top