CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

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

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   August 21, 2013, 12:34
Default OpenFOAM-2.2.x: mysql++ error when compiling repository
  #1
Member
 
Join Date: Jul 2011
Posts: 34
Rep Power: 6
A_Pete is on a distinguished road
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.
A_Pete is offline   Reply With Quote

Old   August 21, 2013, 13:15
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings A_Pete and welcome to the forum!

If you use the packages.ubuntu.com website, you can find the package that has got that file:
http://packages.ubuntu.com/search?se...aring&arch=any

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,
Bruno
A_Pete likes this.
wyldckat is offline   Reply With Quote

Old   August 21, 2013, 15:18
Default
  #3
Member
 
Join Date: Jul 2011
Posts: 34
Rep Power: 6
A_Pete is on a distinguished road
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!
A_Pete is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem running OpenFOAM 2.2.x in parallel in Centos 5 lvalvare OpenFOAM Running, Solving & CFD 25 April 21, 2015 07:56
OpenFOAM Patched Version 1.5 via git Repository OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 August 26, 2008 05:06
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54
Compiling openfoam zaferleylek OpenFOAM Installation 0 November 7, 2005 08:01


All times are GMT -4. The time now is 01:56.