CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

OF 1.9 (aka OF 2.1) on Mac OS X

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

Like Tree25Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   April 30, 2012, 12:46
Default ulimit issue
  #61
New Member
 
Join Date: Apr 2012
Posts: 1
Rep Power: 0
dsh5400 is on a distinguished road
Hi,

I believe the ulimit issue is due to copying and pasting from the code from the wikipage (which is not plain text). If you do this, you won't be able to save the bashrc the file in the "Western (Mac OS Roman)" format and it will force you to save as "Unicode (UTF-6)", or something like that. You need to just type in the two line of code manually and then you'll be good.
wyldckat likes this.
dsh5400 is offline   Reply With Quote

Old   April 30, 2012, 17:45
Default
  #62
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi dsh5400 and welcome to the forum!

Thanks for the input! I've updated the wiki page to reflect your feedback: http://openfoamwiki.net/index.php/Ho...hes_and_tweaks

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 10, 2012, 07:58
Default
  #63
New Member
 
Heba
Join Date: Apr 2012
Posts: 9
Rep Power: 5
heba is on a distinguished road
After building openfoam, I got this message " Target `application' not remade because of errors.".
building took more than 24 hrs....

make.log.tar.gz
heba is offline   Reply With Quote

Old   May 10, 2012, 08:15
Default
  #64
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Heba and welcome to the forum!

Did you read and follow to the letter what is written here: http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac

Because the errors that I could see in your log file indicate two or more problems:
  • Incorrect gcc version - the instructions show that you should have 4.6.
  • The file system being used isn't case sensitive. It's pointless to move an unpacked OpenFOAM folder from a case insensitive to a case sensitive file system.
  • ThirdParty folder not found.
Good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   May 10, 2012, 08:46
Default
  #65
New Member
 
Heba
Join Date: Apr 2012
Posts: 9
Rep Power: 5
heba is on a distinguished road
Yes I followed all instructions....
but when I type 'gcc -v' it indicates the version is 4.2.1 and when I type 'gcc-mp-4.6 -v' it indicates the version is 4.6
sorry if it seem to be stupid
Thanks
heba is offline   Reply With Quote

Old   May 10, 2012, 09:02
Default
  #66
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Heba,

Sorry about that, I don't have a Mac to proof-test the instructions and only after your log file did I make the connection. The instructions were missing an important step - http://openfoamwiki.net/index.php/Ho...hes_and_tweaks :
Quote:
Open the file "OpenFOAM-2.1.0/etc/bashrc" with a text editor, e. g. Text Wrangler, pico or nano and:
  1. Find this line:
    Code:
    export WM_COMPILER=Gcc
    And change to this:
    Code:
    export WM_COMPILER=Gcc46
Best regards,
Bruno

Last edited by wyldckat; May 10, 2012 at 09:03. Reason: didn't preview...
wyldckat is offline   Reply With Quote

Old   May 10, 2012, 14:14
Default
  #67
New Member
 
Heba
Join Date: Apr 2012
Posts: 9
Rep Power: 5
heba is on a distinguished road
Thank you for replaying...I will rebuild it again..but not now because while building I cannot interact with my laptop and it takes more than 24 hrs...is that normal ?
heba is offline   Reply With Quote

Old   May 10, 2012, 14:27
Default
  #68
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by heba View Post
Thank you for replaying...I will rebuild it again..but not now because while building I cannot interact with my laptop and it takes more than 24 hrs...is that normal ?
If you don't have much memory (<2Gig) and an old Laptop this is possible (some of the templated code takes a lot of memory to compile especially if you're using -O3 - check with a top in another terminal).

Also make sure that WM_NCOMPPROCS is not set. If 2 or more compilers run in parallel on a Single-core then the problem gets worse ("the swap of death")

Starting the compilation with

nice ./Allwmake

should also make it ... nicer

Last edited by gschaider; May 10, 2012 at 14:28. Reason: not multi
gschaider is offline   Reply With Quote

Old   May 10, 2012, 14:38
Default
  #69
New Member
 
Heba
Join Date: Apr 2012
Posts: 9
Rep Power: 5
heba is on a distinguished road
well, how can I test that WM_NCOMPPROCS is not set ?
heba is offline   Reply With Quote

Old   May 10, 2012, 14:52
Default
  #70
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by heba View Post
well, how can I test that WM_NCOMPPROCS is not set ?
  1. Check how many cores your machine has:
    Code:
    sysctl -n hw.ncpu
    If it says 4, then you can either use 2 or 3 and still have enough CPU power for some other activities. Like Bernhard said, you should also take into account the amount of RAM your machine has free. The task manager or system monitor or whatever it's called on a MAC can tell you how much RAM is available.
    My rule of thumb (on Linux) is that around 1.7 GB is enough for using 4 cores; 1.3GB is the bare minimum for single-core, at least a few years ago.
  2. Edit the file "OpenFOAM-2.1.0/etc/bashrc" once again and go to the end of the file and edit the line with "export WM_NCOMPPROCS=..." and place a suitable value at "...". For example:
    Code:
    export WM_NCOMPPROCS=2
  3. Start a new terminal window, just to make 100% certain that you're starting with a clean shell environment. Then do this step: Source bashrc
  4. To check what value is set for "WM_NCOMPPROCS" run:
    Code:
    echo $WM_NCOMPPROCS
  5. To turn it off:
    Code:
    unset WM_NCOMPPROCS
Good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   May 10, 2012, 15:14
Default
  #71
New Member
 
Heba
Join Date: Apr 2012
Posts: 9
Rep Power: 5
heba is on a distinguished road
Thanks a lot for replaying..
heba is offline   Reply With Quote

Old   May 11, 2012, 05:35
Default
  #72
New Member
 
Heba
Join Date: Apr 2012
Posts: 9
Rep Power: 5
heba is on a distinguished road
Hi,
I have that error when applying the patch of ThirdParty

Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej
heba is offline   Reply With Quote

Old   May 11, 2012, 06:16
Default
  #73
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by heba View Post
Hi,
I have that error when applying the patch of ThirdParty

Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej
Whats in that file? Because that says "I can't apply THESE changes because the original file is different from what I'm expecting"
gschaider is offline   Reply With Quote

Old   May 11, 2012, 06:24
Default
  #74
New Member
 
Heba
Join Date: Apr 2012
Posts: 9
Rep Power: 5
heba is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Whats in that file? Because that says "I can't apply THESE changes because the original file is different from what I'm expecting"

***************
*** 1 ****
- ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64--- 1 ----
+ ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM
heba is offline   Reply With Quote

Old   May 11, 2012, 07:33
Default
  #75
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by heba View Post
***************
*** 1 ****
- ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64--- 1 ----
+ ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM
Seems like the line
Code:
../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64
Is no longer in the file. Look for a similar line and replace it with
Code:
./../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM
gschaider is offline   Reply With Quote

Old   May 11, 2012, 08:30
Default
  #76
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
That's just a symbolic link reference. It will be automatically re-generated by Allwmake, so I think that error can be ignored
wyldckat is offline   Reply With Quote

Old   May 29, 2012, 06:35
Default
  #77
New Member
 
Theo
Join Date: May 2012
Posts: 2
Rep Power: 0
theoenderest is on a distinguished road
Thanks guys!

I've a problem, I have installed openmpi via port but when I source etc/bashrc I can run openmpi anymore. Is this a problem?

My compilation has crashed after 3 hours.

Last edited by theoenderest; May 29, 2012 at 11:52.
theoenderest is offline   Reply With Quote

Old   May 29, 2012, 15:41
Default
  #78
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Theo and welcome to the forum!

There is a subsection on what to do when things go wrong See here: 2.6.1 Diagnosing problems

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 29, 2012, 17:37
Default
  #79
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by theoenderest View Post
Thanks guys!

I've a problem, I have installed openmpi via port but when I source etc/bashrc I can run openmpi anymore. Is this a problem?
If you want to do parallel runs: yes

I used to have similar problems with 10.6 because the preinstalled openmpi clashed with the MacPorts-version. Which OS-version do you have

Quote:
Originally Posted by theoenderest View Post
My compilation has crashed after 3 hours.
What do you mean with crash? Or do you mean it reports some errors in the end? (depends on the errors whether this is a problem)
gschaider is offline   Reply With Quote

Old   May 29, 2012, 17:43
Smile
  #80
New Member
 
Theo
Join Date: May 2012
Posts: 2
Rep Power: 0
theoenderest is on a distinguished road
I have Lion 10.7. I got allot of error 2 messages. I threw the whole partition away out of anger. Also the first instance when running the patch-Mac-gcc46 it gave errors.

I'm trying to install it on a memory stick not on a partition on the hard drive do you think this could be the problem? (it is partitioned journaled case sensitive.)

I'm going to get some rest first tonight and maybe try tomorrow again. :P I've done all the step 3 times now without success. :P I'll post my logs tomorrow, I'm sorry I didn't post it, but this is very new for me, I'm just learning.
theoenderest is offline   Reply With Quote

Reply

Tags
compilation error

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
Extend Project 1.6-ext Binary Release for Mac OS X hjasak OpenFOAM Announcements from Other Sources 26 November 5, 2013 17:50
Openfoam mac: Compiling custom libraries atareen64 OpenFOAM 3 April 14, 2011 11:01
OpenFOAM-1.6 on Mac OS X 10.6.1 elvisjohndowson OpenFOAM 6 October 21, 2009 15:45
Mac Simple Install Request or Processing Assistance Help sjohnson OpenFOAM Installation 4 December 12, 2008 08:46
MAC + SOLA for free surface T Main CFD Forum 1 April 11, 2001 13:43


All times are GMT -4. The time now is 14:23.