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

Basic Error when installing swak4foam with foam extend 3.0

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

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By mnobrega

Reply
 
LinkBack Thread Tools Display Modes
Old   March 30, 2014, 08:58
Default Basic Error when installing swak4foam with foam extend 3.0
  #1
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 7
Rep Power: 4
mnobrega is on a distinguished road
Hi,

I'm using Ubuntu 13.10 and I've installed foam extend 3.0, using the deb binary packages available in http://wikki.gridcore.se/foam-extend/download.

Then I've tried to download and install swak4foam using the instructions provided in Installation/swak4Foam/Installing On/Ubuntu.

I'm getting a very strange basic error, related to some missing files:
####################
....
In file included from helpers/printSwakVersion.C:43:0:
helpers/printSwakVersion.H:46:21: fatal error: Pstream.H: No such file or directory
#include "Pstream.H"
^
compilation terminated.
In file included from helpers/switchableNotImplemented.C:43:0:
helpers/switchableNotImplemented.H:47:19: fatal error: error.H: No such file or directory
#include "error.H"
^
compilation terminated.
In file included from helpers/DebugOStream.C:37:0:
helpers/DebugOStream.H:55:21: fatal error: Pstream.H: No such file or directory
#include "Pstream.H"
....
########################

I've read the all the posts I found about swak4foam installation, and in the Installation/swak4Foam/Understanding Error Messages indicates that OpenFOAM seems to be improperly installed.

I followed the recommendation of reading Installation/Working with the Shell, and made all the recommend tests, and all environment variables seem to be OK. Notice that I'm getting the same error in two different computers. One has several OpenFOAM versions and another has just Foam extend 3.0.

Additionally, using the find command I found the missing file (or at least one with the same name) in folder: /opt/foam/foam-extend-3.0/src/foam/db/IOstreams/Pstreams. But the compiler cannot figure out this location.

Sorry to bother you with this issue, because I believe I'm making a basic mistake. But I cannot figure out which is....

Can you please help me?

Cheers,

Miguel
mnobrega is offline   Reply With Quote

Old   March 30, 2014, 12:32
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Miguel,

Sorry for taking a while to reply to you, but I knew this would take some time to download and install the deb package and to check the solution myself.

This issue apparently was reported back in January: https://sourceforge.net/apps/mantisb...iew.php?id=200 - and it hasn't been fixed yet

To solve the problem, run the following commands:
  1. Switch to root mode, with the shell environment ready for using FOAM-Extend 3.0:
    Code:
    sudo su -c "source /opt/foam/foam-extend-3.0/etc/bashrc; bash"
  2. Go into the "src" folder and force all "lnInclude" folders to be generated:
    Code:
    cd $FOAM_SRC
    wmakeLnIncludeAll
  3. Exit root mode:
    Code:
    exit
Now you should be able to build swak4Foam.

...and I'm going to have to add this issue to the "known issues" list

Best regards,
Bruno
mnobrega likes this.
wyldckat is offline   Reply With Quote

Old   March 30, 2014, 19:13
Default
  #3
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 7
Rep Power: 4
mnobrega is on a distinguished road
Hi Bruno,

You don't have to be sorry. I'm very grateful for your help and support.

Thanks for your clues they solved most of the problems. However there are a few errors that subsist, that are similar to these one:

linux64GccDPOpt/replayTransientBC
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
make[1]: *** [/home/mnobrega/foam/mnobrega-3.0/applications/bin/linux64GccDPOpt/funkySetBoundaryField] Error 1
make: *** [funkySetBoundaryField] Error 2


I'm sending in attachment the full make.log file, in case this info is not enough.

Are you able to figure out the solution for this problem?

Cheers,

Miguel
Attached Files
File Type: gz make.log.tar.gz (1.8 KB, 3 views)
mnobrega is offline   Reply With Quote

Old   March 30, 2014, 23:49
Default
  #4
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 7
Rep Power: 4
mnobrega is on a distinguished road
Hi Bruno,

Just an additional info. I tested the procedure you suggested in the computer I have a few versions of OpenFOAM installed and I managed to compile swak4foam.

The difficulty I reported previously occurred in the computer I have just foam extend 3.0. That computer is a very clean installation. Apart from a few system tools, that I've installed after Ubuntu 13.10 installation, it has only foam extend 3.0.

I hope this info helps to identify the issue.

Cheers,

Miguel
mnobrega is offline   Reply With Quote

Old   March 31, 2014, 15:04
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Miguel,

If my memory doesn't fail me, the issue of the missing "-liberty" is just a matter of running:
Code:
sudo apt-get install binutils-dev
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 31, 2014, 19:26
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by mnobrega View Post
Hi Bruno,

Just an additional info. I tested the procedure you suggested in the computer I have a few versions of OpenFOAM installed and I managed to compile swak4foam.

The difficulty I reported previously occurred in the computer I have just foam extend 3.0. That computer is a very clean installation. Apart from a few system tools, that I've installed after Ubuntu 13.10 installation, it has only foam extend 3.0.

I hope this info helps to identify the issue.

Cheers,

Miguel
You mentioned in your initial post that you use the precompiled packages. The "missing" headers are probably due to this bug https://sourceforge.net/apps/mantisb...iew.php?id=200
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   April 1, 2014, 01:47
Default
  #7
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 7
Rep Power: 4
mnobrega is on a distinguished road
Hi Bruno,

Thanks for your patience and time...I'm really grateful...

swak4foam is working in both computers....

All the best,

Miguel
wyldckat likes this.
mnobrega is offline   Reply With Quote

Reply

Tags
erro, foam extend 3.0, missing files, swak4foam

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
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


All times are GMT -4. The time now is 20:35.