php5-mysql +mysql5 error

Puneet Kishor punk.kish at gmail.com
Wed Oct 26 14:53:45 PDT 2011


On Oct 26, 2011, at 4:40 PM, Puneet Kishor wrote:

> 
> On Oct 26, 2011, at 2:49 PM, Phil Dobbin wrote:
> 
>> On 26/10/11 at 20:21, punk.kish at gmail.com (Puneet Kishor) wrote:
>> 
>> [...]
>> 
>>> :info:build /opt/local/include/mysql5/mysql/m_string.h:253:10: fatal error: 'mysql/plugin.h' file not found
>>> :info:build #include <mysql/plugin.h>
>> 
>> [...]
>> 
>> Being new to macports but having compiled MySQL 5.1.19 from source into /usr/local I too saw similar errors. I fixed them by passings flags to  ./configure implicitly giving absolute paths to the mysql <header files>. This can also be set in your bash profile if the flags option is unavailable.
>> 
> 
> 
> I don't follow. First, I installed both php5 or mysql5-server-devel via macports... no custom installation. So, everything I have is where macports puts it by default. So, I am not sure what I should pass to which configure script?
> 
> The only thing I can think of is that I have mysql5-server-devel installed instead of regular mysql5-server.
> 


So, the line giving problem is in '/opt/local/include/mysql5/mysql/m_string.h'

	/*
	  LEX_STRING -- a pair of a C-string and its length.
	  (it's part of the plugin API as a MYSQL_LEX_STRING)
	*/

	#include <mysql/plugin.h>

The plugin.h file is at

	punkish at mumbai /opt/local/include/mysql5/mysql$ll plugin.h 
	-rw-r--r--  1 root  admin  27777 Sep 13 14:06 plugin.h

How do I ensure macports knows where is what?

--
Puneet Kishor


More information about the macports-users mailing list