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

OpenFOAM 2.2.2 failed in Mountain Lion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2014, 16:43
Default OpenFOAM 2.2.2 failed in Mountain Lion
  #1
New Member
 
Marion
Join Date: Apr 2013
Posts: 15
Rep Power: 13
cymbourne is on a distinguished road
Hi guys!

I've followed step by step this tutorial to install OpenFoam in mac (http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2) and I'm getting some errors when I try to compile it. These are the errors I get in my .log file:

Quote:
gcc-mp-4.6 -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -Drestrict=__restrict - DSCOTCH_VERSION=6 -DSCOTCH_RELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o dummysizes -lz -lm -lrt
ld: library not found for -lrt
collect2: ld returned 1 exit status
make[2]: *** [dummysizes] Error 1
make[1]: *** [scotch] Error 2
make: *** [scotch] Error 2
+ make realclean

Any help will be much appreciated!
Cheers,
cymbourne is offline   Reply With Quote

Old   January 13, 2014, 16:17
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 cymbourne,

A nearly identical problem occurred back in March 2013, as shown in posts #2 and #3 on this thread: http://www.cfd-online.com/Forums/ope...tml#post412672

The problem was fixed by using the correct patch files, which are on post #4.

Therefore, the big question is: which were the exact patch files you downloaded and applied?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 29, 2014, 21:29
Default different compile problems
  #3
New Member
 
Peter Johnston
Join Date: Mar 2009
Location: Brisbane, Queensland, Australia
Posts: 25
Rep Power: 17
prjohnston is on a distinguished road
Hello,

I am having problems buliding OpenFOAM-2.2.2 on my mac laptop running OS-X 10.8.4. I have followed the instructions on this web site, but I get many errors. The first error that occurs is:

make CFLAGS="-O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH" CC="openmpicc" \
ptscotch.h \
ptscotchf.h \
libptscotch.dylib \
libptscotcherr.dylib \
libptscotcherrexit.dylib
openmpicc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=6 -DSCOTCH_RELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o ptdummysizes -lz -lm
Cannot open configuration file /opt/local/share/openmpi-mp/openmpi/openmpicc-wrapper-data.txt
Error parsing data file openmpicc: Not found
make[2]: *** [ptdummysizes] Error 243
make[1]: *** [ptscotch] Error 2
make: *** [ptscotch] Error 2

I have applied all three patches and unfortunately, have no idea what is going on.

Any help would be much appreciated.

Thanks,

Peter.
prjohnston is offline   Reply With Quote

Old   February 3, 2014, 14:38
Default
  #4
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 12
rdbisme is on a distinguished road
Quote:
Originally Posted by prjohnston View Post
Hello,

I am having problems buliding OpenFOAM-2.2.2 on my mac laptop running OS-X 10.8.4. I have followed the instructions on this web site, but I get many errors. The first error that occurs is:

make CFLAGS="-O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH" CC="openmpicc" \
ptscotch.h \
ptscotchf.h \
libptscotch.dylib \
libptscotcherr.dylib \
libptscotcherrexit.dylib
openmpicc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=6 -DSCOTCH_RELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o ptdummysizes -lz -lm
Cannot open configuration file /opt/local/share/openmpi-mp/openmpi/openmpicc-wrapper-data.txt
Error parsing data file openmpicc: Not found
make[2]: *** [ptdummysizes] Error 243
make[1]: *** [ptscotch] Error 2
make: *** [ptscotch] Error 2

I have applied all three patches and unfortunately, have no idea what is going on.

Any help would be much appreciated.

Thanks,

Peter.
It's evidently a problem with openmpi. Did you install Openmpi throught Macports? What version do you have?
Did you change the SYSTEMOPENMPI inside the etc/bashrc?

Code:
export WM_MPLIB=SYSTEMOPENMPI
rdbisme is offline   Reply With Quote

Old   February 3, 2014, 18:42
Default
  #5
Member
 
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17
wersoe is on a distinguished road
Hi,

I got the very same problems.
I think it will be caused by openmpi from Macports:
"Error: openmpi has been made obsolete by the port openmpi-default. Please install openmpi-default instead."

Means, that openmpi was not installed at all...

I will try with the suggest version, however, right now it tries to install gcc48 as a dependency...

I guess it will be best to try it again from a scratch, will do this tomorrow.
wersoe is offline   Reply With Quote

Old   February 5, 2014, 08:14
Default
  #6
New Member
 
肖擎曜
Join Date: Jan 2014
Posts: 3
Rep Power: 12
kingu is on a distinguished road
Quote:
Originally Posted by wersoe View Post
Hi,

I got the very same problems.
I think it will be caused by openmpi from Macports:
"Error: openmpi has been made obsolete by the port openmpi-default. Please install openmpi-default instead."

Means, that openmpi was not installed at all...

I will try with the suggest version, however, right now it tries to install gcc48 as a dependency...

I guess it will be best to try it again from a scratch, will do this tomorrow.
Hi WERSOE!
I think I have the same problem with you.
Have you solved it? How to install openmpi?
Thank you.
kingu is offline   Reply With Quote

Old   February 5, 2014, 09:52
Default
  #7
Member
 
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17
wersoe is on a distinguished road
Not yet solved...
I am at work and wont find time before the weekend I guess.

The problem is the new openmpi...

So, the solution should be either install the openmpi-default and find the location of the binaries and adjust all the neccessary config files for the OF compilation,

or,

use the openmpi from ThirdParty, however, here you have to adjust the config files too...

Keep on going...
Would be great if Bernhard or Ruben from here could help, since they originally created the patches and the wiki...

http://www.cfd-online.com/Forums/ope...ac-os-x-5.html


Best, Sören
wersoe is offline   Reply With Quote

Old   February 6, 2014, 09:32
Default Fix
  #8
New Member
 
Lárus Þorvaldsson
Join Date: Nov 2010
Posts: 2
Rep Power: 0
larust is on a distinguished road
Hi.

I was able to fix this problem by editing the file OpenFOAM-2.2.2/wmake/rules/darwinIntel64Gcc46/mplibMACPORTOPENMPI and changing the following lines
Code:
PINC       = -I$(MPI_ARCH_PATH)/include/openmpi
PLIBS      = -L$(MPI_ARCH_PATH)/lib -lmpi
to
Code:
PINC       = -I$(MPI_ARCH_PATH)/../include/openmpi-mp
PLIBS      = -L$(MPI_ARCH_PATH)/openmpi-mp -lmpi
larust is offline   Reply With Quote

Old   February 7, 2014, 07:25
Default
  #9
New Member
 
肖擎曜
Join Date: Jan 2014
Posts: 3
Rep Power: 12
kingu is on a distinguished road
Quote:
Originally Posted by larust View Post
Hi.

I was able to fix this problem by editing the file OpenFOAM-2.2.2/wmake/rules/darwinIntel64Gcc46/mplibMACPORTOPENMPI and changing the following lines
Code:
PINC       = -I$(MPI_ARCH_PATH)/include/openmpi
PLIBS      = -L$(MPI_ARCH_PATH)/lib -lmpi
to
Code:
PINC       = -I$(MPI_ARCH_PATH)/../include/openmpi-mp
PLIBS      = -L$(MPI_ARCH_PATH)/openmpi-mp -lmpi
Thank you larust!
I've tried your method and a new problem occurred. Did you just follow the wiki and only changed the file?

Here's my first error.Do you know what's going on?
Code:
openmpicc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=6 -DSCOTCH_RELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o ptdummysizes -lz -lm 
make[2]: openmpicc: No such file or directory
make[2]: *** [ptdummysizes] Error 1
make[1]: *** [ptscotch] Error 2
make: *** [ptscotch] Error 2
kingu is offline   Reply With Quote

Old   February 7, 2014, 10:41
Default
  #10
New Member
 
Lárus Þorvaldsson
Join Date: Nov 2010
Posts: 2
Rep Power: 0
larust is on a distinguished road
Right. You might also need to add a couple of symlinks to the openmpi-default installation. I added two in /opt/local/bin
Code:
sudo ln -s mpicc-openmpi-mp openmpicc
sudo ln -s mpiexec mpirun
and then I added one in /opt/local/share/openmpi-mp/openmpi
Code:
sudo ln -s mpicc-wrapper-data.txt openmpicc-wrapper-data.txt
larust is offline   Reply With Quote

Old   February 8, 2014, 01:33
Default
  #11
New Member
 
肖擎曜
Join Date: Jan 2014
Posts: 3
Rep Power: 12
kingu is on a distinguished road
Quote:
Originally Posted by larust View Post
Right. You might also need to add a couple of symlinks to the openmpi-default installation. I added two in /opt/local/bin
Code:
sudo ln -s mpicc-openmpi-mp openmpicc
sudo ln -s mpiexec mpirun
and then I added one in /opt/local/share/openmpi-mp/openmpi
Code:
sudo ln -s mpicc-wrapper-data.txt openmpicc-wrapper-data.txt
There're still errors, but I don't think it's about openmpi.
Code:
Foam::volMesh> const&) in R.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [/Users/xqy/OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOpt/bin/R] Error 1
make[2]: *** [R] Error 2
Can anyone help me with this?
kingu is offline   Reply With Quote

Old   February 8, 2014, 21:47
Default
  #12
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 12
rdbisme is on a distinguished road
Quote:
Originally Posted by larust View Post
Right. You might also need to add a couple of symlinks to the openmpi-default installation. I added two in /opt/local/bin
Code:
sudo ln -s mpicc-openmpi-mp openmpicc
sudo ln -s mpiexec mpirun
and then I added one in /opt/local/share/openmpi-mp/openmpi
Code:
sudo ln -s mpicc-wrapper-data.txt openmpicc-wrapper-data.txt
Last time I checked all the symlinks were already created by macports (it was missing just the mpirun).

I think that the patches should be edited. I contact Bernhard...
rdbisme is offline   Reply With Quote

Old   September 15, 2023, 01:24
Default
  #13
New Member
 
No
Join Date: Aug 2023
Posts: 2
Rep Power: 0
Mumtaz1 is an unknown quantity at this point
OpenFOAM 2.2.2 encountered compatibility issues on Mountain Lion, an older macOS version. Mountain Lion, released in 2012, had limited support for modern software due to its age and 32-bit architecture. OpenFOAM, a powerful computational fluid dynamics tool, likely faced issues with the older libraries and system components on Mountain Lion. In comparison, its size and requirements exceeded what Mountain Lion could efficiently handle, causing installation or execution failures. Users faced challenges running OpenFOAM 2.2.2 smoothly on this platform. To address this, upgrading to a more recent macOS version or utilizing a more compatible Linux distribution would be advisable for better performance and compatibility.
Mumtaz1 is offline   Reply With Quote

Reply

Tags
installation, mac os x, openfoam 2.1.x


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
Transient boundary conditions Jarrod Sinclair (Sinclair) OpenFOAM Running, Solving & CFD 133 May 6, 2015 06:21
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 09:51.