|
[Sponsors] |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 20, 2013, 16:09 |
|
#61 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
After writing the last paragraph it just occurred to me: pointHit.H is one of these files with a major case "brother": PointHit.H. Are you sure you're on a case-sensitive filesystem and if yes: maybe you unpacked the sources on a case-insensitve filesystem before moving them to the case-sensitve one.
__________________
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 |
||
August 20, 2013, 19:43 |
|
#62 |
Member
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 14 |
||
August 20, 2013, 20:24 |
|
#63 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Which instructions did you use? If it is on the Wiki: could you add a warning about this problem to the part about unpacking? (I think misunderstandings are best cleared by those to whom it was unclear. "I wouldn't have had this problem if THIS had been there")
__________________
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 |
|
August 20, 2013, 20:57 |
|
#64 | |
Member
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 14 |
Quote:
In tr first attempt (that didn't work) I just extracted the tar files by double-clicking in the Downloads folder, and them dragged and dropped the folders inside the case-sensitive disk image. In the second attempt (this worked) I downloaded the tar files directly inside the disk image, and then unpacked them via terminal. Last edited by dav.dap83; August 21, 2013 at 07:12. |
||
September 27, 2013, 12:24 |
|
#65 |
New Member
Oscar Mayr
Join Date: Sep 2013
Posts: 1
Rep Power: 0 |
Hello Everybody,
I just manage to install OF-v2.2 and I was running the first tutorials... I came across this issue with snappy which make me struggle a lot in the tutorial "wigleyHull" Code:
Oscars-MacBook-Pro:wigleyHull JARVIS$ snappyHexMesh dyld: Library not loaded: libptscotch.dylib Referenced from: /Users/JARVIS/OpenFOAM/OpenFOAM-2.2.0/platforms/darwinIntel64GccDPOpt/lib/openmpi-macport/libptscotchDecomp.dylib Reason: image not found Trace/BPT trap: 5 /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/platforms/darwinIntel64GccDPOpt/lib/openmpi-macport/libptscotchDecomp.dylib seems to be correctly placed... sorry the ignorance I look forward to your reply on this issue. Oscar |
|
September 27, 2013, 16:20 |
|
#66 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
That is part of the ThirdParty-compilation. Maybe there was a problem there. "And the Oscar for the most polite question goes to .... ". Sorry. Could not resist. I guess you don't find that funny and of course you're right
__________________
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 |
||
October 3, 2013, 12:08 |
|
#67 | |
Member
|
Quote:
Excuse my ignorance but where does the attached patch of yours, posted in #54, have to be applied? Regards, César Last edited by cesarcg; October 3, 2013 at 16:54. |
||
October 3, 2013, 13:49 |
|
#68 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
If there is a newer version of the general patch and you used that: no
__________________
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 |
|
October 5, 2013, 05:49 |
|
#69 |
New Member
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13 |
Hi,
I am having problems compiling the third party libraries. It could not find the makefile and header file for scotch and ptsscotch. ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM WARNING: required include file 'scotch.h' not found! I went to the makefile folder and copied Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64 to the name it was looking for. This pushed the compilation a little further but i'm still getting complaint about -lrt and the header files. ld: library not found for -lrt WARNING: required include file 'ptscotch.h' not found! I'm using the most recent 2.2.1 downloads. Is there another version of the third party source code I should be using? Any help would be greatly appreciated! |
|
October 5, 2013, 06:56 |
|
#70 |
New Member
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13 |
So I was using the first patch, not the updated one. Now it is creating the osx makefile. It still isn't compiling though:
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: Command not found make[2]: *** [ptdummysizes] Error 127 make[1]: *** [ptscotch] Error 2 make: *** [ptscotch] Error 2 should the build have linked openmpi to /usr/local/bin or should I have installed openmpi through macports? |
|
October 6, 2013, 11:12 |
|
#71 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
October 7, 2013, 08:02 |
|
#72 |
New Member
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13 |
Thanks for getting back to me Bernhard, I really appreciate the help. I had macports openmpi installed but the macports check in /etc/config/settings.sh wasn't working for me. The -s flag in "which -s port >/dev/null" was returning 1 even though it was there. I removed it and it started using the macports version.
Everything in the thirdparty folder is building now but when something calls mpi, it blows up: ------------------------------------------------------------------------- A requested component was not found, or was unable to be opened. This means that this component is either not installed or is unable to be used on your system (e.g., sometimes this means that shared libraries that the component requires are unable to be found/loaded). Note that Open MPI stopped checking at the first component that it did not find. Host: jonserver Framework: ras Component: proxy -------------------------------------------------------------------------- [jonserver:03894] [[24804,0],0] ORTE_ERROR_LOG: Error in file /opt/local/var/macports/build/_opt_mports_dports_science_openmpi/openmpi/work/openmpi-1.7.2/orte/mca/ess/hnp/ess_hnp_module.c at line 360 This folder doesn't exist and I can't see it being specified in any of the environment variables. Should these files exist or are they created dynamically? In desperation I tried installing openmpi from source and using the systemmpi flag. It recompiled the third party libraries correctly but now I get this error: --> FOAM FATAL ERROR: Trying to use the dummy Pstream library. This dummy library cannot be used in parallel mode From function UPstream::init(int& argc, char**& argv) in file UPstream.C at line 37. FOAM exiting My apologies if these are trivial configuration errors but I have no experience using openmpi and i'm having a difficult time debugging them. |
|
October 7, 2013, 08:48 |
|
#73 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
October 7, 2013, 09:14 |
|
#74 |
New Member
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13 |
I grepped my environment and the mpi paths seem to be correct:
printenv | grep -i mpi MPI_ARCH_PATH=/opt/local LD_LIBRARY_PATH=/Users/jonathanbyrne/OpenFOAM/ThirdParty-2.2.1/platforms/darwinIntel64Gcc46/gperftools-svn/lib:/Users/jonathanbyrne/OpenFOAM/ThirdParty-2.2.1/platforms/darwinIntel64Gcc46/paraview-3.12.0/lib/paraview-3.12:/Users/jonathanbyrne/OpenFOAM/OpenFOAM-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport:/Users/jonathanbyrne/OpenFOAM/ThirdParty-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport:/opt/local/lib:/Users/jonathanbyrne/OpenFOAM/jonathan-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/site/2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/OpenFOAM-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/ThirdParty-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/OpenFOAM-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib/dummy MPI_BUFFER_SIZE=20000000 WM_MPLIB=MACPORTOPENMPI FOAM_MPI=openmpi-macport DYLD_LIBRARY_PATH=/Users/jonathanbyrne/OpenFOAM/OpenFOAM-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport:/Users/jonathanbyrne/OpenFOAM/ThirdParty-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport:/Users/jonathanbyrne/OpenFOAM/jonathan-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/site/2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/OpenFOAM-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/ThirdParty-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib:/Users/jonathanbyrne/OpenFOAM/OpenFOAM-2.2.1/platforms/darwinIntel64Gcc46DPOpt/lib/dummy: There are no references to OPAL in my environment. Is there anywhere else I should look? |
|
October 7, 2013, 15:54 |
|
#75 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Two more things to check: - that none of the old mpi-libs is in the LD_LIBRARY_PATH and/or DYLD_LIBRARY_PATH - if you run "openmpirun -h" without the etc/bashrc being sourced, does it give you the same error or the help messages? If it works OK then the problem is one of the variables the script sets
__________________
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 |
||
October 7, 2013, 17:11 |
|
#76 |
New Member
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13 |
I tried your advice and openmpirun worked before and after sourcing bashrc. It turns out $WM_PROJECT_DIR/bin/tools/RunFunctions is hardcoded to call mpirun instead of openmpirun, which was broken on my system. I changed it and now it is working. Thanks for your advice!
|
|
October 7, 2013, 18:54 |
|
#77 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
October 26, 2013, 04:10 |
|
#78 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Hi Bernhard, I'm back. I think i succeeded in building everything. The only error I get is this:
Code:
make[2]: `libptscotchparmetis.dylib' is up to date. cp parmetis.h ../../include cp libptscotchparmetis.dylib ../../lib + make prefix=/Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0 libdir=/Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport includedir=/Users/rube$ mkdir /Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0/include/openmpi-macport cp -f ../bin/[agm]* /Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0/bin cp: ../bin/[agm]*: No such file or directory make: [install] Error 1 (ignored) cp -f ../bin/d[agm]* /Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0/bin cp -f ../include/*scotch*.h /Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0/include/openmpi-macport cp -f ../lib/*scotch*.dylib /Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport cp -Rf ../man/* /Users/rubendibattista/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0/share/man + make realclean (cd libscotch ; make realclean) |
|
October 28, 2013, 18:40 |
|
#79 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
November 9, 2013, 13:29 |
|
#80 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 16 |
Hello ppl,
I followed http://www.optimulation.com/2013/03/...n-lion-10-8-3/ the video on the above link to install openFOAM on mac. - surfaceaFeatureExtract (is not working - it is very important for me) so any suggestion how to get this working - ParaView is not working ( probably think i have install new version ?) Kind Regards, Hasan K.J |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker | rt08 | OpenFOAM Installation | 1 | February 28, 2016 20:00 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |