Hi,
First of all, apologies if this is a daft question and I have missed the obvious; I'm new to FreeBSD.
I have been trying to set up a development web server with the usual Apache, MySQL, PHP and phpMyAdmin. I've manage to install from the ports collection OpenSSL, Apache, MySQL and PHP (in that order), but I am having a little difficulty with phpMyAdmin.
Half way through compiling phpMyAdmin I ran into an error, saying some function in mysqli wasn't present. These are the last few lines of the compile:
I attempted to make mysqli (/usr/ports/databases/php5-mysqli) and met with the error:
I deselected mysqli from the phpMyAdmin configuration, and found I am able to make phpMyAdmin and install it.
So it seem as though the problem lies with the mysqli port. Any help with how to make this so as to allow it to be included when making phpMyAdmin would be very much appreciated.
Kind regards,
Chris
Background information follows in my next post
First of all, apologies if this is a daft question and I have missed the obvious; I'm new to FreeBSD.
I have been trying to set up a development web server with the usual Apache, MySQL, PHP and phpMyAdmin. I've manage to install from the ports collection OpenSSL, Apache, MySQL and PHP (in that order), but I am having a little difficulty with phpMyAdmin.
Half way through compiling phpMyAdmin I ran into an error, saying some function in mysqli wasn't present. These are the last few lines of the compile:
Code:
cc -I. -I/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysqli/work/php-5.2.12
/ext/mysqli/include -I/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/main -I/usr/ports/databases/php5-mysqli/work/php-5.2.12
/ext/mysqli -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local
/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/mysql -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports
/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c -fPIC -DPIC -o .libs/mysqli.o
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c: In function 'zm_startup_mysqli':
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:637: error: 'MYSQL_RPL_MASTER' undeclared (first use in this function)
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:637: error: (Each undeclared identifier is reported only once
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:637: error: for each function it appears in.)
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:638: error: 'MYSQL_RPL_SLAVE' undeclared (first use in this function)
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:639: error: 'MYSQL_RPL_ADMIN' undeclared (first use in this function)
*** Error code 1
1 error
*** Error code 1
Stop in /usr/ports/databases/php5-mysqli.
*** Error code 1
Stop in /usr/ports/databases/phpmyadmin.
*** Error code 1
I attempted to make mysqli (/usr/ports/databases/php5-mysqli) and met with the error:
Code:
===> Building for php5-mysqli-5.2.12
/bin/sh /usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/libtool --mode=compile cc -I. -I/usr/ports/databases/php5-mysqli/work/php-
5.2.12/ext/mysqli -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/include -I/usr/ports/databases/php5-mysqli
/work/php-5.2.12/ext/mysqli/main -I/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli -I/usr/local/include/php -I/usr/local/include
/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr
/local/include/mysql -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli
/mysqli.c -o mysqli.lo
mkdir .libs
cc -I. -I/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysqli/work/php-5.2.12
/ext/mysqli/include -I/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/main -I/usr/ports/databases/php5-mysqli/work/php-5.2.12
/ext/mysqli -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local
/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/mysql -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports
/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c -fPIC -DPIC -o .libs/mysqli.o
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c: In function 'zm_startup_mysqli':
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:637: error: 'MYSQL_RPL_MASTER' undeclared (first use in this function)
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:637: error: (Each undeclared identifier is reported only once
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:637: error: for each function it appears in.)
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:638: error: 'MYSQL_RPL_SLAVE' undeclared (first use in this function)
/usr/ports/databases/php5-mysqli/work/php-5.2.12/ext/mysqli/mysqli.c:639: error: 'MYSQL_RPL_ADMIN' undeclared (first use in this function)
*** Error code 1
1 error
*** Error code 1
Stop in /usr/ports/databases/php5-mysqli.
I deselected mysqli from the phpMyAdmin configuration, and found I am able to make phpMyAdmin and install it.
So it seem as though the problem lies with the mysqli port. Any help with how to make this so as to allow it to be included when making phpMyAdmin would be very much appreciated.
Kind regards,
Chris
Background information follows in my next post