Ad Widget

Collapse

[ERROR] unable to find mysql.h

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • streamservice
    Junior Member
    • Apr 2006
    • 3

    #1

    [ERROR] unable to find mysql.h

    Hello,

    When I did try to install ZABBIX 1.0 (the stable release) I did got the error shown below:
    checking for MySQL support... no
    configure: error: Invalid MySQL directory - unable to find mysql.h
    server2:/home/quicki/public_html/zabbix-1.0#
    OS: Debian 3.1 (net install)
    Control panel: DirectAdmin
    Other sites work fine with MySQL

    Could anybody tell me how I can solve this problem?

    Note:
    Reinstalling PHP or MySQL is not an option.
  • elkor
    Senior Member
    • Jul 2005
    • 299

    #2
    you need the mysql development files installed.

    if they are, and it still cant find it, run ./configure --help and look for how to point it at the right directory.

    Comment

    • streamservice
      Junior Member
      • Apr 2006
      • 3

      #3
      Originally posted by elkor
      you need the mysql development files installed.

      if they are, and it still cant find it, run ./configure --help and look for how to point it at the right directory.
      Where can I find if I have the development files installed?

      Comment

      • elkor
        Senior Member
        • Jul 2005
        • 299

        #4
        I'm not really a debian guy but I believe you can use the "apt" utility to query your packages

        Comment

        • streamservice
          Junior Member
          • Apr 2006
          • 3

          #5
          Originally posted by elkor
          I'm not really a debian guy but I believe you can use the "apt" utility to query your packages
          Like I did say before:
          Note:
          Reinstalling PHP or MySQL is not an option.
          The reason is that the server is also used for webhosting.

          Comment

          • elkor
            Senior Member
            • Jul 2005
            • 299

            #6
            nobody said to reinstall php or mysql.

            I said you need the dev libraries

            you asked how to look for them, I told you to use apt. what's the issue?

            Comment

            • goudkamp
              Junior Member
              • May 2006
              • 1

              #7
              Indeed, just type:

              Code:
              apt-get install mysql-devel
              and you'll get the required files.

              Comment

              Working...