Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2005 18:34:00 +0600
From:      Roman Serbski <mefystofel@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Problem with PHP
Message-ID:  <cca5083b05061605347f39ff0a@mail.gmail.com>
In-Reply-To: <20050616144519.GC18206@skivay.com>
References:  <cca5083b05061602071193e589@mail.gmail.com> <20050616144519.GC18206@skivay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/16/05, Alexandr Kosarev <admin@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-STABL=
E.
> >
> > 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=3D"include rewrite auth vhost_alias ssl"
> > WITH_LDAP=3Dyes WITH_SUEXEC=3Dyes SUEXEC_DOCROOT=3D/home install clean
> >
> > I'm trying to build PHP 4.3.11 from sources:
> >
> > ./configure \
> > --prefix=3D/usr/local/php4 \
> > --with-apxs2=3D/usr/local/sbin/apxs \
> > --with-zlib=3D/usr \
> > --with-mysql=3D/usr/local \
> > --with-gettext=3D/usr/local \
> > --enable-ftp \
> > --with-gd=3D/usr/local \
> > --with-expat=3D/usr/local \
> > --with-dom=3D/usr/local \
> > --with-iconv=3D/usr/local \
> > --enable-mime-magic \
> > --with-xml=3D/usr/local \
> > --enable-mbstring \
> > --with-jpeg-dir=3D/usr/local \
> > --with-png-dir=3D/usr/local \
> > --with-freetype-dir=3D/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=3D'/usr/local/share/apache2/build/libtool' libphp4.la
> > /usr/local/libexec/apache2
> > /usr/local/share/apache2/build/libtool --mode=3Dinstall cp libphp4.la
> > /usr/local/libexec/apache2/
> > libtool: install: `libphp4.la' is not a valid libtool archive
> > Try `libtool --help --mode=3Dinstall' for more information.
> > apxs:Error: Command failed with rc=3D65536
> > .
> > *** Error code 1
> >
> > Any hints would be greatly appreciated!
> >
> > Thank you.
> > Roman
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd=
.org"
>=20
> Hello, Roman.
> Can your try to install php4 with ports collection?
> Modules for PHP4 your cat install with port /usr/ports/lang/php4-extensio=
ns/
> (make config) and your can install modules by other ports.
>=20
> 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:

=3D=3D=3D>   php4-gd-4.3.11_1 depends on executable: phpize - found
=3D=3D=3D>   php4-gd-4.3.11_1 depends on file: /usr/local/bin/automake15 - =
found
=3D=3D=3D>   php4-gd-4.3.11_1 depends on file: /usr/local/bin/autoconf253 -=
 found
=3D=3D=3D>   php4-gd-4.3.11_1 depends on shared library: freetype.9 - found
=3D=3D=3D>   php4-gd-4.3.11_1 depends on shared library: png.5 - found
=3D=3D=3D>   php4-gd-4.3.11_1 depends on shared library: jpeg.9 - found
=3D=3D=3D>   php4-gd-4.3.11_1 depends on shared library: X11.6 - not found
=3D=3D=3D>    Verifying install for X11.6 in /usr/ports/x11/xorg-libraries
=3D=3D=3D>  Vulnerability check disabled, database not found
=3D> X11R6.8.2-src1.tar.gz doesn't seem to exist in /usr/ports/distfiles/xo=
rg.
=3D> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cca5083b05061605347f39ff0a>