Forum Moderators: bakedjake

Message Too Old, No Replies

mod_php5 install errors

/usr/sigh

         

Gibble

8:02 pm on Feb 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First up, the specs
O/S: FreeBSD 4.10

When running pkg_info
apache-1.3.29_3
mysql-client-4.1.1_1
and much much more (dependencies)

I had PHP installed, but without MySQL support.
So I used pkg_delete, and got rid of it. I went into the ports tree to /usr/ports/www/mod_php5
I did a make clean to make sure that everything was clean (obviously!) and then ran make

Up comes a screen to select configuration options, to the default, I add FTP, GD, and MySQL.

It carries on spewing pages of information, everything appears copacetic until ... CATASTROPHE!


/usr/local/include/mysql/mysql.h:128: my_alloc.h: No such file or directory
In file included from /usr/ports/www/mod_php5/work/php-5.0.0a6/ext/mysql/php_mysql.c:57:
/usr/local/include/mysql/mysql.h:134: syntax error before `MEM_ROOT'
/usr/local/include/mysql/mysql.h:221: syntax error before `MEM_ROOT'
/usr/local/include/mysql/mysql.h:269: syntax error before `MEM_ROOT'
/usr/local/include/mysql/mysql.h:538: syntax error before `MEM_ROOT'
*** Error code 1

Stop in /usr/ports/www/mod_php5/work/php-5.0.0a6.
*** Error code 1

Stop in /usr/ports/www/mod_php5.
*** Error code 1

Stop in /usr/ports/www/mod_php5.

What am I doing wrong?

Gibble

9:37 pm on Feb 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did notice that I don't have the file

/usr/local/include/mysql/my_alloc.h

Could that be the cause? And If so...why isn't it there?

jasonlambert

12:34 pm on Feb 2, 2005 (gmt 0)

10+ Year Member



You may need to install some mysql development packages first. In debian apt-get this is called "libmysqlclient12-dev" for example, which provides development header files and libraries. Im not sure what that package would be called in BSD though, but maybe worth investigating?

Gibble

8:33 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't find anything...

MattyMoose

7:07 pm on Feb 3, 2005 (gmt 0)

10+ Year Member



Did you pkg_delete the old php or mysql?

Try doing your cvsup again and installing mysql just by itself. See if it gives the same error.

If not, then continue on to php5, see what happens.