Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2004 18:32:18 +0100
From:      Peter Risdon <peter@circlesquared.com>
To:        Mikkel Christensen <mikkel@talkactive.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: failed php4 install...can't figure this one out
Message-ID:  <40913C22.4020903@circlesquared.com>
In-Reply-To: <200404291717.48287.mikkel@talkactive.net>
References:  <5.2.1.1.0.20040429091808.00b13150@pop.courtesymortgage.com> <200404291717.48287.mikkel@talkactive.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>>
>>Granted, i'm not entirely familiar with php and noticed there are quite a 
>>few variations of what i can install.
>>When it came down to selecting what I wanted to build PHP with, I left the 
>>defaults selected, but made sure GD and MySQL were selected.
>>
>>After it crunched for awhile, I got the following error:
>>
>>configure: error: libjpeg.(a|so) not found.
>>===>  Script "configure" failed unexpectedly.
>>Please report the problem to ale@FreeBSD.org [maintainer] and attach the
>>"/usr/ports/lang/php4/work/php-4.3.6/config.log" including the output of the
>>failure of your make command. Also, it might be a good idea to provide an
>>overview of all packages installed on your system (e.g. an `ls /var/db/pkg`).
>>*** Error code 1
>>
>>Stop in /usr/ports/lang/php4.
>>*** Error code 1
>>
>>Stop in /usr/ports/lang/php4.
>>
>>    
>>
>
>You should not install ports directly from the /usr/ports/lang directory.
>The content here seems to be ports that other ports use in a combination. Not stand alone ports.
>  
>

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:

less /usr/ports/www/mod_php4/Makefile
# New ports collection makefile for:    mod_php4
# Date created:         Sun May 28 11:31:54 CEST 2000
# Whom:                 Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD: ports/www/mod_php4/Makefile,v 1.191 2003/06/06 17:43:59 nork 
Exp $
#
# Instructions on how to enable preferred extensions can be found in the
# Makefile of the master port (lang/php4).
#

PORTEPOCH=      1
CATEGORIES=     www

MAINTAINER=     sysadmin@alexdupre.com

PKGMESSAGE=     ${.CURDIR}/pkg-message
MASTERDIR=      ${.CURDIR}/../../lang/php4

WITHOUT_CLI=    yes

.include "${MASTERDIR}/Makefile"


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 but the fix would be to install graphics/jpeg 
and try again.

PWR.




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