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

[OpenFOAM.org] Problems installing OF2.2.2 along side OF2.3.1 (Ubunut 12.04)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vasava

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2016, 04:23
Default Problems installing OF2.2.2 along side OF2.3.1 (Ubunut 12.04)
  #1
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Last week I cleaned my computer and installed a clean copy of openFoam 2.3.1 using these instruction.

Next I tried to compile swak4Foam but did not succeed. Since it earlier worked nicely with OF2.2, I decided to install OF2.2.2 side-by-side with OF2.3.1 following these instructions.

I have made more than a dozen attempts but simply can non install OF2.2.2. Here is the list of problems I encounter:
  1. When I use the following commands the files simply dont unzip. Instead of an unzipped folder, I see folders with question mark sign '?' as size.
    Code:
    tar -xzf OpenFOAM-2.2.2.tgz 
    tar -xzf ThirdParty-2.2.2.tgz
    After few attempts and restarting computer I got over this.
  2. When I use command
    Code:
    source $HOME/OpenFOAM/OpenFOAM-2.2.2/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI
    I get this error:
    Code:
    gcc: error: unrecognized option ‘--showme:link’

I am now stuck here. Any help or comment is welcome.

Edit: OpenFoam 2.3.1 is working fine.

Last edited by vasava; April 27, 2016 at 04:23. Reason: More info
vasava is offline   Reply With Quote

Old   April 27, 2016, 04:49
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
With a colleague's help and followign instructions on this page I could overcome the problem.

I will update if there is something else.
wyldckat likes this.
vasava is offline   Reply With Quote

Old   May 1, 2016, 19:02
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Many thanks for reporting the solution that you've found!

The reason why it worked with OpenFOAM 2.3.1 but not 2.2.2 is because the optional step #5 was missing from the wiki page for 2.2.2, namely this step:
Quote:
5. Optional: Let's make a few symbolic links that should ensure that the correct global MPI installation is used by this OpenFOAM installation:
Code:
ln -s /usr/bin/mpicc.openmpi OpenFOAM-2.3.1/bin/mpicc
ln -s /usr/bin/mpirun.openmpi OpenFOAM-2.3.1/bin/mpirun
I've updated the step for 2.2.2 on the wiki.
__________________
wyldckat is offline   Reply With Quote

Old   May 2, 2016, 04:15
Default still struggling to install swak4Foam
  #4
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
I am glad that this helps the openFoam community. Now both OF2.2.2 and 2.3.1 are working fine.

But, I am still struggling to install swak4Foam. Here are the error messages:
Code:
~/MySolvers/swak4Foam$ ./Allwmake
Previously compiled for OpenFOAM 

/home/paritosh/MySolvers/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
swakConfiguration: line 13: [: : integer expression expected
Checking swak4Foam-version and generating file
abort: no repository found in '/home/paritosh/MySolvers/swak4Foam' (.hg not found)!
Swak version is 0.3.2
./Allwmake: line 61: Allwmake: command not found

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
I am searching the forum for the answers but if you have some quick-fix(es) I will help a lot.
vasava is offline   Reply With Quote

Old   May 8, 2016, 15:22
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: From the looks of the error messages, my guess is that you did not unpack the source code from a legitimate origin. In other words, it looks like you unpacked the original package on Windows or Mac OS X and then copied the folder to Linux, which resulted in files having the incorrect settings.

All of this to say: if you still have this problem, then please state the complete steps you've taken for installing swak4Foam, to get to the error message that you've gotten.
wyldckat is offline   Reply With Quote

Old   May 10, 2016, 06:20
Default
  #6
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Thanks for the reply Bruno.

Here is what I did to install openFoam 2.2.2 (I followed instructions from this page.).
  • Followed steps 1-3 mentioned on this page (no problems/errors).
  • While on step-4.
    Code:
    #OpenFOAM downloading and installation
    cd ~
    mkdir OpenFOAM
    cd OpenFOAM
    wget "http://downloads.sourceforge.net/foam/OpenFOAM-2.2.2.tgz?use_mirror=mesh" -O OpenFOAM-2.2.2.tgz
    wget "http://downloads.sourceforge.net/foam/ThirdParty-2.2.2.tgz?use_mirror=mesh" -O ThirdParty-2.2.2.tgz
     
    tar -xzf OpenFOAM-2.2.2.tgz 
    tar -xzf ThirdParty-2.2.2.tgz
    I could download the .tgz files but for some reason could not unpack them. Every time I tried to unpack, it created a folder but the size/properties were marked with '??'.

    After several failed attempts, I decided to unpack the files somewhere else and them copy to openFOAM folder (I used copy-paste commands).

    The compilations worked fine and openFoam 2.2.2 is also working fine.
Right now I am logged in to windows. I will post the swak4Foam step/commands as soon as I login to Ubuntu.
vasava is offline   Reply With Quote

Old   May 18, 2016, 05:36
Default Steps to install swak4Foam
  #7
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
I followed following steps to install swak4foam:
  1. Download swak4Foam.
    Code:
    git clone https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder2.0-libraries-swak4Foam.git swak4Foam
  2. Install swak4Foam
    Code:
    cd swak4Foam
    ./Allwmake

But I get the following error:

Code:
~/MySolvers/swak4Foam$ ./Allwmake
This is a clean install
No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
abort: no repository found in '/home/paritosh/MySolvers/swak4Foam' (.hg not found)!
Swak version is 0.3.2
./Allwmake: line 61: wmake: command not found
I have bison (GNU Bison) 2.5., flex 2.5.35, m4 (GNU M4) 1.4.16, svn, version 1.6.17 (r1128011) and git version 1.7.9.5.

Could you please guide me through this?
vasava is offline   Reply With Quote

Old   May 20, 2016, 04:30
Default
  #8
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Following is set of solutions that I have tried (since I am still stuck with same errors, I assume none of them worked):
  1. Run the ./compileRequirements.sh file. As the name suggests this command tries to fulfill the requirement for the compilation.

    This did not help with the compilation and the errors persisted.
  2. Delete the swakConfiguration file. Deleting the file helps remove one of the error pertaining to swakConfiguration, however the compilation complains about the missing swakConfiguration file.

    This did not help with the compilation and the './Allwmake: line 61: wmake' error persisted.
  3. Removing alias from the bash file. I removed openFoam aliases from bash file. But this did not help.

    I did this while simulations were running. I am not sure if I should try again when simulations are not running.

Overall summary:
Whats I learned is that the 'line 61: wmake: command not found' error is common when openFoam shell is not installed properly.

In my case since I unpacked the installation folders somewhere else and then copies it back to openFoam installation directory, this is causing problems for me.
vasava is offline   Reply With Quote

Old   May 20, 2016, 06:45
Default At last some success!!
  #9
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Here is what I did:
  1. Since I have installed two openFoam versions, I activated one of them by command 'of231'.
  2. When I tried to compile, swak4Foam complained about the version of openFoam so I performed './Allwclean'.
  3. Next, I tried ./Allwmake and it worked!! (I was so overwhelmed, I forgot to record the log!! )

    However, there still seems to be some dependency issues as I saw too many lines with 'could not open file' error. Following is an example.

    Code:
    could not open file foamString.H for source file coalCloudEnthalpySourcePluginFunction.C due to No such file or directory
    
    could not open file CoalCloud.H for source file makeCoalCloudProxys.C due to No such file or directory

Next, I ran couple of example cases from my old simulations and they worked without any problems.

Next question is: Are these dependency warnings going to bother me in future?
vasava is offline   Reply With Quote

Old   September 11, 2016, 13:01
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by vasava View Post
Next question is: Are these dependency warnings going to bother me in future?
Quick answer: If swak4Foam was built without problems, then second time you ran "Allwmake" should have told you that everything is "up to date". Therefore, those warnings can be ignored.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
gcc, openfoam 2.2.2, openfoam 2.3.1, ubuntu 12.04


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors while installing openfoam on ubuntu 12.04 AND 11.10 fshak92 OpenFOAM Installation 27 May 1, 2021 13:10
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
Problems installing OpenFOAM 1.6-ext on Ubuntu 12.04 arashfluid OpenFOAM Installation 3 July 21, 2013 07:36
problems with installing OpenFOAM 1.6 su_junwei OpenFOAM Installation 8 September 10, 2009 13:54
Problems installing CFX on Sun Unix Platform Haley CFX 2 November 9, 2001 10:52


All times are GMT -4. The time now is 07:31.