Problem with PHP

Roman Serbski mefystofel at gmail.com
Thu Jun 16 12:34:02 GMT 2005


On 6/16/05, Alexandr Kosarev <admin at alexandr.fdns.net> wrote:
> On Thu, Jun 16, 2005 at 03:07:21PM +0600, Roman Serbski wrote:
> > Hello,
> >
> > Please help with the installation of PHP 4.3.11 under FreeBSD 5.4-STABLE.
> >
> > pkg_info | grep apache
> > apache-2.0.54       Version 2 of Apache web server with prefork MPM.
> >
> > pkg_info | grep libtool
> > libtool-1.5.10_1    Generic shared library support script (version 1.5)
> >
> > Apache has been compiled from ports with the following options:
> >
> > make WITH_STATIC_MODULES="include rewrite auth vhost_alias ssl"
> > WITH_LDAP=yes WITH_SUEXEC=yes SUEXEC_DOCROOT=/home install clean
> >
> > I'm trying to build PHP 4.3.11 from sources:
> >
> > ./configure \
> > --prefix=/usr/local/php4 \
> > --with-apxs2=/usr/local/sbin/apxs \
> > --with-zlib=/usr \
> > --with-mysql=/usr/local \
> > --with-gettext=/usr/local \
> > --enable-ftp \
> > --with-gd=/usr/local \
> > --with-expat=/usr/local \
> > --with-dom=/usr/local \
> > --with-iconv=/usr/local \
> > --enable-mime-magic \
> > --with-xml=/usr/local \
> > --enable-mbstring \
> > --with-jpeg-dir=/usr/local \
> > --with-png-dir=/usr/local \
> > --with-freetype-dir=/usr/local
> >
> > `./configure` and `make` do not show any errors, but when I try to
> > `make install` the following error appears:
> >
> > Installing PHP SAPI module:       apache2handler
> > /usr/local/share/apache2/build/instdso.sh
> > SH_LIBTOOL='/usr/local/share/apache2/build/libtool' libphp4.la
> > /usr/local/libexec/apache2
> > /usr/local/share/apache2/build/libtool --mode=install cp libphp4.la
> > /usr/local/libexec/apache2/
> > libtool: install: `libphp4.la' is not a valid libtool archive
> > Try `libtool --help --mode=install' for more information.
> > apxs:Error: Command failed with rc=65536
> > .
> > *** Error code 1
> >
> > Any hints would be greatly appreciated!
> >
> > Thank you.
> > Roman
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 
> Hello, Roman.
> Can your try to install php4 with ports collection?
> Modules for PHP4 your cat install with port /usr/ports/lang/php4-extensions/
> (make config) and your can install modules by other ports.
> 
> So why your try install php4 from source???

Hello,

I was always thinking that building PHP from sources gives more
flexibility rather than from ports. For example, I want to build gd
support for PHP. If I compile PHP from sources all I have to do is to
install ports/graphics/gd and define --with-gd for PHP configure. As
for php4-extensions, I don't know why, but it tries to fetch X11R
sources:

===>   php4-gd-4.3.11_1 depends on executable: phpize - found
===>   php4-gd-4.3.11_1 depends on file: /usr/local/bin/automake15 - found
===>   php4-gd-4.3.11_1 depends on file: /usr/local/bin/autoconf253 - found
===>   php4-gd-4.3.11_1 depends on shared library: freetype.9 - found
===>   php4-gd-4.3.11_1 depends on shared library: png.5 - found
===>   php4-gd-4.3.11_1 depends on shared library: jpeg.9 - found
===>   php4-gd-4.3.11_1 depends on shared library: X11.6 - not found
===>    Verifying install for X11.6 in /usr/ports/x11/xorg-libraries
===>  Vulnerability check disabled, database not found
=> X11R6.8.2-src1.tar.gz doesn't seem to exist in /usr/ports/distfiles/xorg.
=> Attempting to fetch from ftp://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/.

Why do I need to download 32MB to have gd support enabled? I was not
able to find any way to disable this behavior.

Thank you.


More information about the freebsd-questions mailing list