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

Error Compiling OpenFOAM-2.0.1 on Ubuntu 10.04

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2011, 16:52
Default Error Compiling OpenFOAM-2.0.1 on Ubuntu 10.04
  #1
New Member
 
Sebastian P
Join Date: Jun 2010
Posts: 15
Rep Power: 15
SePe is on a distinguished road
Hello everybody,

since I was not satisfied with the result of the automatic ubuntu installation of openfoam, I now tried to manually install it.
But the following Problem occurs: I copied the folders "OpenFOAM-2.0.1" and "ThirdParty-2.0.1" to "/home/sebastian/OpenFOAM/" and when i run Allmake in the OpenFOAM-folder without sudo, I get many many errors. But when i execute "sudo ./Allwmake", I get the message
"/Allwmake: 10: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them."

Does anybody know how to solve this problem?

Regards,
Sebastian
SePe is offline   Reply With Quote

Old   December 6, 2011, 07:24
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Greetings Sebastian,
  1. Do not use sudo to build OpenFOAM in your own home folder.
  2. Follow the official instructions to the letter: http://www.openfoam.com/download/source.php
  3. Before running Allwmake, run this:
    Code:
    export WM_NCOMPPROCS=4
    Where 4 is the number of cores in your machine. This way it'll be faster building OpenFOAM.
  4. When you run Allwmake, run it like this instead:
    Code:
    ./Allwmake > make.log 2>&1
    This way you'll keep a good log in "make.log" of every step taken by OpenFOAM's build process.
Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 6, 2011, 18:04
Default
  #3
New Member
 
Sebastian P
Join Date: Jun 2010
Posts: 15
Rep Power: 15
SePe is on a distinguished road
Hello Bruno,

thanks alot, I now managed to compile everything. My mistake was that I did not set chmod correctly for the extracted installation files, I found out when I couldn't create the logfile you proposed.

Also the 4 processor hint was very nice

Thanks alot again!

Best regards,
Sebastian
SePe is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working Leech OpenFOAM Installation 8 August 10, 2014 20:42
OpenFOAM 1.7 Ubuntu 10.04 stark22 OpenFOAM Installation 2 July 24, 2011 11:22
OpenFOAM Installation Errors on Ubuntu 10.04 ozzythewise OpenFOAM Installation 1 June 19, 2010 05:59
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 14:43
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 10:11.