From owner-freebsd-apache@FreeBSD.ORG Sun Sep 17 14:52:33 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E404E16A403 for ; Sun, 17 Sep 2006 14:52:33 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from slimak.dkm.cz (slimak.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 03E4D43D5C for ; Sun, 17 Sep 2006 14:52:32 +0000 (GMT) (envelope-from 000.fbsd@quip.cz) Received: (qmail 64705 invoked by uid 0); 17 Sep 2006 14:52:30 -0000 Received: from grimm.quip.cz (HELO ?192.168.1.2?) (213.220.192.218) by slimak.dkm.cz with SMTP; 17 Sep 2006 14:52:30 -0000 Message-ID: <450D612D.6000404@quip.cz> Date: Sun, 17 Sep 2006 16:52:29 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cs, cz, en, en-us MIME-Version: 1.0 To: freebsd-apache@freebsd.org References: <6a56d69c0609170054u4d4dd2c0h5f4a8ce152007aa2@mail.gmail.com> In-Reply-To: <6a56d69c0609170054u4d4dd2c0h5f4a8ce152007aa2@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Jonathan Herriott Subject: Re: installing php-mysql X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2006 14:52:34 -0000 Jonathan Herriott wrote: > Hi all, > > Sorry if I posted in the wrong spot. If you could point me to the > right boards, I'll repost. > > Anways, Here is my install so far for my webserver: > > apache-1.3.34_4 > mysql-server-5.1.6_2 > mysql-client-5.1.6_1 > php5-5.1.2_1 > > After trying to do a mysql_connect, I found that I needed to download > the php5-mysql port. It has problems when installing the port because > it says it requires a previous version of mysql-client. Is there a > way I can get around this? > > I tried the following: > >> sudo pkg_add -fr php5-mysql > > Fetching > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/php5-mysql.tbz... > > Done. > Fetching > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/All/mysql-client-4.1.18_1.tbz... > > Done. > pkg_add: package 'mysql-client-4.1.18_1' conflicts with > mysql-client-5.1.6_1 > pkg_add: please use pkg_delete first to remove conflicting package(s) > or -f to force installation > pkg_add: pkg_add of dependency 'mysql-client-4.1.18_1' failed > (proceeding anyway) > pkg_add: can't open dependency file > '/var/db/pkg/mysql-client-4.1.18_1/+REQUIRED_BY'! > > > Is there a way I can get around this and still use the port? Is there > something I should add to my php.ini file? > > Thanks for help in advance. 1] You have outdated version os Apache and php5 2] Did you tried php5-extensions and compilation of php5-mysql from ports? I think precompiled packages are not build for "alpha version" of MySQL (5.1.x) Miroslav Lachman