failed php4 install...can't figure this one out

Ion-Mihai Tetcu itetcu at
Thu Apr 29 10:48:36 PDT 2004

On Thu, 29 Apr 2004 18:32:18 +0100
Peter Risdon <peter at> wrote:

> Mikkel Christensen wrote:
> >On Thursday 29 April 2004 16:22, Jason Williams wrote:
> >  
> >
> >>After that, I tried installing the following port:
> >>
> >>/usr/ports/lang/php4


> >>configure: error: libjpeg.(a|so) not found.
> >>===>  Script "configure" failed unexpectedly.


> I don't think that's true. You're right to say that other ports use this 
> directory; take the mod_php4 port as an example. The Makefile is:

> So it's a sort of wrapper for lang/php4 with the configure argument 
> WITHOUT_CLI = yes but you should still be able to use the lang/php4 port 
> if you wish. I always do.


> The problem for the OP is a dependency, though. No idea why it wasn't 
> pulled in automatically 

It should be:

.if defined(WITH_GD)
LIB_DEPENDS+=   freetype.9:${PORTSDIR}/print/freetype2
LIB_DEPENDS+=   t1.5:${PORTSDIR}/devel/t1lib
LIB_DEPENDS+=   png.5:${PORTSDIR}/graphics/png
LIB_DEPENDS+=   jpeg.9:${PORTSDIR}/graphics/jpeg
CONFIGURE_ARGS+=--with-gd \
                --enable-gd-native-ttf \
                --enable-gd-jis-conv \
                --with-freetype-dir=${LOCALBASE} \
                --with-t1lib=${LOCALBASE} \
                --with-jpeg-dir=${LOCALBASE} \
.if !defined(WITHOUT_X11)
LIB_DEPENDS+=   Xpm.4:${PORTSDIR}/x11/XFree86-4-libraries
.if defined(WITH_LZW)

> but the fix would be to install graphics/jpeg and try again.

I've builded today on an 5-current and is OK. The OP should  provide
more details.

Unregistered ;) FreeBSD "user"

More information about the freebsd-questions mailing list