mysql.h?

This is a discussion on mysql.h? within the Linux Programming forums, part of the Platform Specific Boards category; Ok, i downloaded the MySQL packages through urpmi (im on mandrake 10.0) and downloaded the mysql++-1.7.40 tarbell from their website ...

  1. #1
    ------------
    Join Date
    Jun 2005
    Posts
    79

    mysql.h?

    Ok, i downloaded the MySQL packages through urpmi (im on mandrake 10.0) and downloaded the mysql++-1.7.40 tarbell from their website but when i try to compile it, i get this error:
    checking for MySQL library directory... configure: error: Didn't find the mysql library dir in ' '

    anyone know how to fix it?
    CAUTION: Newbie at programming!
    -------------------------------------------------
    Thanks everyone who helped me with all the questions, and utter lost-ness i happen to have... it is VERY VERY much appreciated

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Perhaps there's some kind of dev package of MySQL?

    Or you need to pass a --with-mysql=/path/to/mysql/api to the configure script?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    ------------
    Join Date
    Jun 2005
    Posts
    79
    ^yea, i thought about that after i posted, and it compiled (well... is compiling) now, and im hoping this is the file that has mysql.h... i really need that header file lol
    CAUTION: Newbie at programming!
    -------------------------------------------------
    Thanks everyone who helped me with all the questions, and utter lost-ness i happen to have... it is VERY VERY much appreciated

  4. #4
    ------------
    Join Date
    Jun 2005
    Posts
    79
    and its not.. GGGGRRRRR!!!! i need to find what has that file...
    CAUTION: Newbie at programming!
    -------------------------------------------------
    Thanks everyone who helped me with all the questions, and utter lost-ness i happen to have... it is VERY VERY much appreciated

  5. #5
    ------------
    Join Date
    Jun 2005
    Posts
    79
    Ok, i found what package has it... just got to download it now
    CAUTION: Newbie at programming!
    -------------------------------------------------
    Thanks everyone who helped me with all the questions, and utter lost-ness i happen to have... it is VERY VERY much appreciated

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    Well check round the mysql website to see what the dependencies are for that file.

    Did you check for other include directories?
    Mine's here - /usr/include/mysql/mysql.h

    Like you may have to say
    gcc -I/usr/include/mysql prog.c
    The "minus-aye" option telling the compiler additional directories where to look for header files.
    Then there's "minus-ell" to tell the linker where to find library files.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    ------------
    Join Date
    Jun 2005
    Posts
    79
    :-/ i know its mysql-dev that has the file but i cant find a copy of it for mandrake...
    CAUTION: Newbie at programming!
    -------------------------------------------------
    Thanks everyone who helped me with all the questions, and utter lost-ness i happen to have... it is VERY VERY much appreciated

  8. #8
    ------------
    Join Date
    Jun 2005
    Posts
    79
    I GOT IT!!! WOOOHOOO!!! now i can get back to coding my MUD!
    CAUTION: Newbie at programming!
    -------------------------------------------------
    Thanks everyone who helped me with all the questions, and utter lost-ness i happen to have... it is VERY VERY much appreciated

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SOCKET Error In mysql.h
    By stickman in forum C++ Programming
    Replies: 2
    Last Post: 09-04-2004, 11:44 PM
  2. Mysql.h?
    By lubby in forum C++ Programming
    Replies: 2
    Last Post: 08-15-2004, 12:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21