Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am at a loss for what to do here. I have downloaded MySQL 4.0 binary and PHP 4.x source
and installed Mysql without any trouble but now I want to compile php to talk to MySQL with the following configure command (--with-mysql=<see path below>). However I constantly get the reference to a header file (I assume is mysql.h ) after the configure hicups... what am I doing wrong ? I have listed my inputs below...and my mysql.h paths below (the other one did not work either).
I installed mysql binary from /usr/local/mysql
and my php source compile from /usr/local/php with the following command....
./configure --with-xml --with-curl=/usr/bin --with-pspell=/usr/share/pspell --with-postgresql=shared --enable-shared-pdflib --enable-track-vars --enable-magic-quotes --with-gd=shared,/usr/lib --enable-safe-mode --with-exec-dir=/usr/bin --with-openssl --enable-ftp --with-mysql=/usr/local/php/php-4.3.3/ext/mysql/libmysql/mysql.h
after a long listing of output ....i get the following...
configure: error: Cannot find MySQL header files under /usr/local/php/php-4.3.3/ext/mysql/libmysql/mysql.h
I had a similar issue when trying to install PHP for Apache2 on Red Hat. I had installed MySQL using the rpms. When I tried to run the configure command for my setup - ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql - I got the same error as you: "... Can't find MySQL header files under yes ..."
My problem was that I had only installed the server and client rpms To get the PHP configure script to recognize MySQL properly, I had to also download the libraries and header files rpm ("MySQL-devel-*"). That solved all my problems.