Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2006 22:16:27 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Muhammad Omer Iqbal <omer@omeriqbal.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PHP5 and MySQL
Message-ID:  <44F20BAB.2070408@infracaninophile.co.uk>
In-Reply-To: <000a01c6c9f8$e3aa77b0$0202a8c0@rakaposhi>
References:  <000a01c6c9f8$e3aa77b0$0202a8c0@rakaposhi>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Muhammad Omer Iqbal wrote:
> And by the way, I already have MySQL 5.0 as a .tar in the mysql folder, so
> probably all I need to do is let php5-mysql extension know how to access
> that .tar file. 

A .tar of what? The sources? Better put them into /usr/ports/distfiles.

> It seems strange to have to install it again especially when I installed
> php5-extensions with mysql and mysqli extensions.

Hmmm... Well that should have installed the php5-mysql port for you,
certainly.  

> When I tried to make, it tries to fetches MySQL 4.1 whereas I have 5.0
> installed. How can I update the version?

Hmmm... Seems you have a version of the ports tree which is a few months
out of date.

> I have updated Makefile.ext in PHP5 directory with DEFAULT_MYSQL_VER=50, but
> to no avail.

As a basic rule you should never have to directly edit any file
within the port directory.

To make mysql-5.0.x the default version on your system, edit /etc/make.conf
and add:

    WITH_MYSQL_VER= 50

Then do a 'make clean' in the php-mysql port and try again.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE8gu08Mjk52CukIwRCHOcAKCPEcI6zyJocrlnLDByjzjSqOCG4gCaAyrf
yp9M3GRBJb0uUPLY+zKPHbA=
=PdcE
-----END PGP SIGNATURE-----

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