-
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?
-
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?
-
^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
-
and its not.. GGGGRRRRR!!!! i need to find what has that file...
-
Ok, i found what package has it... just got to download it now
-
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.
-
:-/ i know its mysql-dev that has the file but i cant find a copy of it for mandrake...
-
I GOT IT!!! WOOOHOOO!!! now i can get back to coding my MUD! :D