Results 1 to 7 of 7

Thread: Cannot find MySQL header files under yes

  1. #1
    Join Date
    Oct 2007
    Beans
    7

    Cool Cannot find MySQL header files under yes

    Hi all,

    I'm trying to configure Ubuntu for the first time (and haven't touched *nix for 3 years now) and surprise, I'm running into problems

    I've install mysql using apt-get install mysql (which works)
    I've downloaded the source for apache2 and installed it (works)
    I've downloaded the source for php and installed. It worked except no mysql support. So I went back and now I'm trying to add mysql to it using --with-mysql= however, it return this error


    ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/

    configure: error: Cannot find MySQL header files under yes.
    Note that the MySQL client library is not bundled anymore!

    I've tried everything and still no go. This is what I have installed for mysql
    ii libdbd-mysql-per 4.004-2 A Perl5 database interface to the MySQL database
    un libmysqlclient15 <none> (no description available)
    ii libmysqlclient15 5.0.45-1ubuntu3 MySQL database client library
    un mysql-client <none> (no description available)
    ii mysql-client-5.0 5.0.45-1ubuntu3 MySQL database client binaries
    ii mysql-common 5.0.45-1ubuntu3 MySQL database common files
    un mysql-doc-5.0 <none> (no description available)
    ii mysql-server 5.0.45-1ubuntu3 MySQL database server (meta package depending on
    ii mysql-server-5.0 5.0.45-1ubuntu3 MySQL database server binaries
    un virtual-mysql-cl <none> (no description available)
    un virtual-mysql-se <none> (no description available)


    Any pointers here? what am I missing?

    BTW, some sites say search for 'find / -name mysql.h' and that file doesn't exist on my computer at all.

    Thx
    Maz

  2. #2
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Beans
    84

    Re: Cannot find MySQL header files under yes

    Code:
    sudo apt-get install libmysqlclient15-dev
    maybe?

  3. #3
    Join Date
    May 2008
    Beans
    1

    Re: Cannot find MySQL header files under yes

    That worked for me -

    Thanks

  4. #4
    Join Date
    Jul 2008
    Beans
    1

    Re: Cannot find MySQL header files under yes

    Quote Originally Posted by dholbach View Post
    Code:
    sudo apt-get install libmysqlclient15-dev
    maybe?
    i think
    Code:
    sudo apt-get install libmysqlclient-dev
    is better, because it allows automatic library updates

  5. #5
    Join Date
    Aug 2008
    Beans
    10

    Re: Cannot find MySQL header files under yes

    it works well,thank you very much!

  6. #6
    Join Date
    Jul 2005
    Beans
    8

    Re: Cannot find MySQL header files under yes

    Quote Originally Posted by f3ath View Post
    i think
    Code:
    sudo apt-get install libmysqlclient-dev
    is better, because it allows automatic library updates
    This worked for me. Thanks

    In ssx/genv2.cpp you might need to add #include <string.h> to fix an compile error of strcmp
    Last edited by rajeshgautam; August 5th, 2011 at 12:28 PM.

  7. #7
    Join Date
    Dec 2007
    Location
    Rajapalayam, Tamil Nadu
    Beans
    28
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cannot find MySQL header files under yes

    Quote Originally Posted by f3ath View Post
    i think
    Code:
    sudo apt-get install libmysqlclient-dev
    is better, because it allows automatic library updates
    This worked for me. Thanks for the solution!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •