Hello.
I just started going through the Linux installation portion of the Sitepoint book, “Build Your Own Database Driven Web Site Using PHP & MYSQL” (page 42), and I came across an error when running ‘make’ for the php installation.
I installed MySQL 5.5.8 and Apache 2.2.17. I am now trying to install PHP 5.3.4.
I successfully ran ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/mysql/bin/mysql_config
Now when running ‘make’ I get the following at the end:
…
In file included from /usr/local/mysql/include/my_sys.h:47,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/php_mysqli_structs.h:77,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/my_pthread.h:829:36: error: mysql/psi/mysql_thread.h: No such file or directory
In file included from /usr/local/mysql/include/my_sys.h:47,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/php_mysqli_structs.h:77,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/my_pthread.h:836: error: expected specifier-qualifier-list before ‘mysql_cond_t’
In file included from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/php_mysqli_structs.h:77,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/my_sys.h:338: error: expected specifier-qualifier-list before ‘mysql_mutex_t’
/usr/local/mysql/include/my_sys.h:354: error: expected specifier-qualifier-list before ‘mysql_mutex_t’
/usr/local/mysql/include/my_sys.h:417: error: expected specifier-qualifier-list before ‘mysql_mutex_t’
In file included from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/php_mysqli_structs.h:77,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/my_sys.h:964:27: error: mysql/psi/psi.h: No such file or directory
In file included from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/php_mysqli_structs.h:81,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/m_string.h:206:26: error: mysql/plugin.h: No such file or directory
In file included from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/php_mysqli_structs.h:81,
from /home/ikerim/Downloads/php-5.3.4/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/m_string.h: In function ‘lex_string_set’:
/usr/local/mysql/include/m_string.h:291: error: dereferencing pointer to incomplete type
/usr/local/mysql/include/m_string.h:292: error: dereferencing pointer to incomplete type
make: *** [ext/mysqli/mysqli.lo] Error 1
Any suggestions on how I may resolve these?
Thanks,
Ismail_K