Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2010 12:29:52 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        jaymax <jaymax36@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problem w/ mysql extension installation
Message-ID:  <4B51B140.6030900@infracaninophile.co.uk>
In-Reply-To: <27184350.post@talk.nabble.com>
References:  <27184350.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9057CBE755381FA73EF127F6
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

jaymax wrote:
> phpmyadmin requires the mysql extension which is apparently not include=
d in
> the mysql54 ports

Well, PHP modules aren't provided at all by the mysqlNN-{client,server,sc=
ripts}
ports.  You want databases/php5-mysql or databases/php5-mysqli

I have certainly been able to install phpmyadmin with mysql-5.4.x from th=
e=20
ports -- it works perfectly well.

> Installing it from=20
> /usr/ports/databases/php5-mysql =3D=3D>
>=20
>=20
> ---
> ---
> ---
> In file included from /usr/local/include/php/main/../main/php_config.h:=
2839,
>                  from /usr/local/include/php/Zend/zend_config.h:1,
>                  from /usr/local/include/php/Zend/zend.h:53,
>                  from /usr/local/include/php/main/php.h:34,
>                  from
> /usr/ports/databases/php5-mysql/work/php-5.2.12/ext/mysql/php_mysql.c:3=
2:
> /usr/local/include/php/ext/php_config.h:1:30: error: ext/mysql/config.h=
: No
> such file or directory
> *** Error code 1
> 1 error
> *** Error code 1
>=20
> Stop in /usr/ports/databases/php5-mysql.
>=20
>=20
> Indeed /usr/local/include/php/ext/mysql/config.h is not present!
>=20
> Should this have been installed with the mysql installation or from a
> dependency?
>=20
> How can I correct this ?

Not sure what went wrong here, but .../ext/mysql/config.h is part of the
php5-mysql module you're trying to install:

% pkg_which /usr/local/include/php/ext/mysql/config.h
php5-mysql-5.2.12

That file shouldn't be referenced from that location when building the=20
php5-mysql module -- rather it should use a version of it included with
the PHP sources.

I see from your later message that this problem has gone away for you,
however, for the benefit of the archives, the best thing to do in this
circumstance is generally to 'make clean' in the port concerned and start=

again from the beginning.  If the problem goes away, then it was probably=

a transient local problem.  On the other hand, if it persists, then its=20
likely to be a configuration problem on your system, or a bad interaction=

between that port and something else you've got installed.  It might be
a bug in the port, but considering how popular the combination of php and=

MySQL is, chances are hundreds or thousands of other people would have=20
experienced the same thing, and the problem would have been fixed in shor=
t
order.

	Cheers,

	Matthew

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


--------------enig9057CBE755381FA73EF127F6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAktRsUUACgkQ8Mjk52CukIx4xQCgi4hh1w0Kb6wcRbT2sY0vKc0G
/MAAnjGSgycz2ISn51qOdyRS3mbHlDJs
=0Uyj
-----END PGP SIGNATURE-----

--------------enig9057CBE755381FA73EF127F6--



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