Ad Widget

Collapse

Debian testing (etch) and mysql-dev

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zaphod_Zabbix
    Junior Member
    • Jan 2007
    • 5

    #1

    Debian testing (etch) and mysql-dev

    Greetings all,

    I know similar stuff has been posted in the past but I didn't see anything that was debian specific.

    I ran this command ./configure --prefix=/usr --with-mysql --with-net-snmp \--enable-server --enable-agent &&

    and the error was this configure: error: Invalid MySQL directory - unable to find mysql.h

    I ran a minimal debian business card install image 2.6.18-3-686 i686
    and installed only necessary packages:

    mysql, gcc, libc-dev

    I have read various posts that say I need mysql-devel but I cannot find one .deb package (testing or stable). I am even open to using alien (already installed) and installing an .rpm package if thats what it takes.

    Thank you in advance to anyone that can lend a hand. Also if I need additional packages not mentioned above, that feedback would be welcome as well.
    Last edited by Zaphod_Zabbix; 26-01-2007, 23:30. Reason: change of focus for issue
  • Parsec
    Junior Member
    • Jan 2007
    • 3

    #2
    apt-get install libmysqlclient15-dev

    Mayne different if you are using a different libmysqlclient, but thats the current for use with MySQL 5 server.

    Comment

    • Zaphod_Zabbix
      Junior Member
      • Jan 2007
      • 5

      #3
      Thanks ParSec!

      So I installed the pkg and now I am faced with a new obstacle

      configure: error: Invalid NET-SNMP directory - unable to find net-snmp-includes.h

      I tried this apt-get install libnet-snmp-perl but it still didn't work

      Guess I need another package, but when I searched the repository all I came up with is the package from above http://packages.debian.org/cgi-bin/s...le&release=all
      Last edited by Zaphod_Zabbix; 26-01-2007, 03:10.

      Comment

      • Zaphod_Zabbix
        Junior Member
        • Jan 2007
        • 5

        #4
        This is getting frustrating, in hopes of resolving my issue (based on things I read through various searches) I tried apt-get install snmp, then apt-get install snmpd and neither worked,

        Still staring at configure: error: Invalid NET-SNMP directory - unable to find net-snmp-includes.h

        **update**

        I decided to run apt-cache search snmp and found the following which I ran: apt-get install libsnmp9 libsnmp9-dev
        Last edited by Zaphod_Zabbix; 26-01-2007, 18:29.

        Comment

        • Parsec
          Junior Member
          • Jan 2007
          • 3

          #5
          Whenever you get an error compiling something, generally it is looking for some kind of source include or similar from another package. This will always mean your missing some ???-dev package.

          Btw, did you know Zabbix is in the Debian repository? You can just download the packages - it's not as up to date as the source, but still quite useful. It's only in the testing distribution (soon to be released "etch"). If you are running Debian stable "sarge" you can download debian packages from www.backports.org You'll find the agent package has no dependencies (other then the usual) and can be installed on any Debian sarge box. Not sure about the server package - would have to read the info. I am just recently setting up Zabbix Server on an etch box and using the backport agent package for other Debian stable boxes.

          If you want to try the server on a Debian sarge box, I suggest going to www.backports.org and reading how to add their apt sources to your box. But then if you finally got the source compiled I guess theres no need :-)

          Comment

          Working...