0

I use redhat enterprise 5 and I want to install mysql++, which used to connect to mysql from c++.

I get the following error message when install

checking for MySQL include directory... configure: error: Didn't find the MySQL include dir in '/usr/local/mysql/include /usr/local/mysql/include/include /usr/local/mysql/include/include/mysql'

2
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by p_conk
0

You probably need to install the MySQL-Devel RPM package.

Sorry, Where do I get that? And can you explain what happened because I have installed mysql from the beginning i install linux but why i still get this error, Im newbie in environment so probably Ive missed something when install linux.

0

Search on Google for it, and make sure you get the right version. The regular MySQL package doesn't include header files.

Or wait, Red Hat Enterprise 5 includes yum, doesn't it? Try yum install mysql-devel (the package name here is a guess) as a superuser. Or use pirut. I think they're installed, but I'm relying on Wikipedia.

0

Finally, I can run the program.

I download mysql-devel from mysql site, but I think
it is included in cd linux installer after I search it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.