CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM-2.2.x: mysql++ error when compiling repository (

A_Pete August 21, 2013 12:34

OpenFOAM-2.2.x: mysql++ error when compiling repository
Hello everyone,

I have compiled OpenFOAM-2.2.x some times before, because I use it at work.

Now I want to install it at my own notebook, but am having problems with that. I started by configuring the environment variables and so on. Now I want to compile the official repository of the 2.2.x version and execute ./Allwmake. First it compiles regularly without any specific errors, but when it comes to the bodyForceDataBase/ directory it outputs something like this (my output is in german so I translated the following):
"bodyForceDataBase/openWaterDiagram.H:42:21: Fatal error: mysql++.h: Could not find file or directory. Compilation aborted."

This goes on for other header files in this directory and then there are just tons of errors which all seem to be caused by the originial one with mysql++.h.

I made sure that mysql-common and mysql-client is installed. But I couldn't get more information out of google regarding this problem.

Does anybody have an idea what this could mean? Is there possibly some path set wrong for mysql?

Thanks in advance.

wyldckat August 21, 2013 13:15

Greetings A_Pete and welcome to the forum!

If you use the website, you can find the package that has got that file:

It looks like the package missing is "libmysql++-dev".

I don't have my OpenFOAM 2.2.x installation with me, so I cannot verify this... but the standard OpenFOAM 2.2.x shouldn't need "mysql" at all!? I'm guessing that "bodyForceDataBase" is already part of your own or your company's code?

Best regards,

A_Pete August 21, 2013 15:18

Hey wyldckat!

Thank you very much for your fast answer!

You are right about both things I forgot to say that my colleagues added some things to the official OF-2.2.x. But the package you noted was exactly the missing piece in my puzzle. After I installed the package, I needed to wcleanAll again and so Allwmake made me compile successfully without errors

Thanks again!

All times are GMT -4. The time now is 12:59.