|
[Sponsors] |
October 14, 2012, 18:11 |
|
#141 | |
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 29, 2012, 16:55 |
|
#142 |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Hello to all contributors,
I would like to thank the whole community for this post and your availability in helping people interested in OF. I'm currently approaching for the first time to OF but I'm stuck in the installation process. I'm trying to install it on MBP OSx Lion; I followed the instructions in the wiki page onebyone and I red the full post, even though I did not reach to make it work. I'm not expert in terminal but I really need to use OF asap. I have the feeling there is something wrong with Macport or perhaps with the bash. No idea but I get the following errors: 1st: Nico$ mpirun -v -bash: mpirun: command not found 2nd: Ni:/ Nico$ . Volumes/OpenFOAM-v2.1\ 1/OpenFOAM-2.1.0/etc/bashrc -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/etc/config/settings.sh: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/etc/config/aliases.sh: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory 3rd: Last login: Mon Oct 29 21:06:06 on ttys001 /Volumes/OpenFOAM-v2.1\ 1/OpenFOAM-2.1.0/Allwmake ; exit; ni:~ Nico$ /Volumes/OpenFOAM-v2.1\ 1/OpenFOAM-2.1.0/Allwmake ; exit; /Volumes/OpenFOAM-v2.1 1/OpenFOAM-2.1.0/Allwmake: line 2: cd: /Volumes/OpenFOAM-v2.1: No such file or directory logout [Process completed] 4th: Last login: Mon Oct 29 21:48:31 on ttys001 nicola:~ Nico$ /Volumes/OpenFOAM-v2.1\ 1/OpenFOAM-2.1.0/bin/foamInstallationTest ; exit; Executing /Volumes/OpenFOAM-v2.1 1/OpenFOAM-2.1.0/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- FATAL ERROR: OpenFOAM environment not configured. Please refer to the installation section of the README file: <OpenFOAM installation dir>/OpenFOAM-/README to source the OpenFOAM environment. logout [Process completed] Is there someone willing to help me and tell me where exactly I went wrong and how could I repair ?? Thanks a lot |
|
October 31, 2012, 15:16 |
|
#143 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi again Nicola,
OK, from what I know: Read: http://openfoamwiki.net/index.php/Ho...penMPI-version Quote:
Best regards, Bruno
__________________
|
||
October 31, 2012, 15:52 |
|
#144 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
thanks for your help and fast reply...I corrected the bashrc file to use openmpi and I corrected the error in the sourcing line but the result I get is always the same. Code:
nicola:/ Nico$ nano Volumes/OpenFOAM-v2.1/OpenFOAM-2.1.1/etc/bashrc nicola:/ Nico$ . Volumes/OpenFOAM-v2.1/OpenFOAM-2.1.1/etc/bashrc -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/etc/config/settings.sh: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/etc/config/aliases.sh: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/Nico/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory nicola:/ Nico$ thanks again regards |
||
October 31, 2012, 15:59 |
|
#145 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Check your steps on 2.4: http://openfoamwiki.net/index.php/Ho...efore_building
The ln command is necessary for creating a symbolic link to where you have the mounted volume. In case it is still pointing to the old location, run: Code:
cd unlink OpenFOAM ln -s /Volumes/OpenFOAM-v2.1 OpenFOAM
__________________
|
|
October 31, 2012, 17:02 |
|
#146 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
it seems I'm moving a step forward but now I get this: Code:
nicola:/ Nico$ . Volumes/OpenFOAM-v2.1/OpenFOAM-2.1.1/etc/bashrc Your "Darwin" operating system is not supported by this release of OpenFOAM. For further assistance, please contact www.OpenFOAM.org -bash: mpicc: command not found -bash: mpicc: command not found nicola:/ Nico$ thanks a lot Bruno |
||
October 31, 2012, 18:01 |
|
#147 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Nicola,
If you got that message, then clearly you forgot to apply the patches : http://openfoamwiki.net/index.php/Ho...hes_and_tweaks Best regards, Bruno
__________________
|
|
November 1, 2012, 06:37 |
|
#148 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
I've got the following problem with the script /Allwmake, please find the log file in the attachment. Code:
nicola:OpenFOAM-2.1.1 Nico$ ./Allwmake 2>&1 | tee make.log Error: Current directory is not /Users/Nico/OpenFOAM/OpenFOAM-2.1.1 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. nicola:OpenFOAM-2.1.1 Nico$ I hope you got what I mean. Thanks |
||
November 1, 2012, 09:57 |
|
#149 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Nicola,
OK, first step, take a deep breath and relax Now, the problem is possibly related to how your doing the mount and the symbolic link. So, let's look at the definitions made in the tutorial:
Bruno
__________________
|
|
November 1, 2012, 18:08 |
|
#150 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
I followed the logic you said and I found out the problem was in running the script Allwmake from the link in the Home directory and not from the /Volume. So, finally I run the script and all seemed to work but I got the errors in the attachment as output of Allwmake. What do you think ? Is there something wrong again?? Thanks |
||
November 1, 2012, 18:19 |
|
#151 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Nicola,
Looks like Open-MPI is still missing And Flex also seems to be an old version, since the files it generates aren't good enough for Gcc... Try once again installing Mac Ports' Open-MPI and Flex as well if possible: Code:
sudo port install openmpi sudo port install flex Best regards, Bruno
__________________
|
|
November 2, 2012, 17:52 |
|
#152 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
I followed your instruction and reinstalled Mac Ports this time from source, than also Open-MPI and flex. I made sure about the option SYSTEMOPENMPI in the bashrc script and I recompiled the Allwmake but nothing has changed, the errors are still there (see attachment). Then I tried using one by one all the other options such as (MPI, OPENMPI etc) and I noted the only difference is that when I use SYSTEMOPENMPI while sourcing the bashrc file, I receive the following output: Code:
:/ Nico$ source Volumes/OpenFOAM-v2.1/OpenFOAM-2.1.1/etc/bashrc -bash: mpicc: command not found -bash: mpicc: command not found Do you have any further suggestion? Thanks Regards |
||
November 3, 2012, 06:41 |
|
#153 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
I have been working out the problem trying to update the release of my openmpi and flex, consulting here after the updates I did not get the error while sourcing the bashrc script "mpicc command not found" and the output of Allwmake is way different but still I get some errors. Could please someone check whether are relevant or I can proceed with the postprocessing tool installation? Thanks a lot make.log.tar.gz |
||
November 3, 2012, 16:50 |
|
#154 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Nicola, sorry for the late reply!
I'm glad you finally managed to get Open-MPI working! As for the error on this latest log, it has occurred to other people as well and they were able to solve it: Quote:
Code:
wclean applications/utilities/postProcessing/turbulence/R wmake applications/utilities/postProcessing/turbulence/R Best regards, Bruno
__________________
|
||
November 4, 2012, 18:34 |
|
#155 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
I tried your solution but the wmake ends with the followign error: Code:
Undefined symbols for architecture x86_64: "Foam::incompressible::turbulenceModel::typeName", referenced from: Foam::calc(Foam::argList const&, Foam::Time const&, Foam::fvMesh const&) in R.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [/Users/Nico/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/R] Error 1 nicola:OpenFOAM-2.1.1 Nico$ thanks |
||
November 5, 2012, 04:58 |
|
#156 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
From the link on the other quote:
Quote:
Code:
-lincompressibleTurbulenceModel \
__________________
|
||
November 5, 2012, 06:46 |
|
#157 | |
New Member
Nicola Donato
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Quote:
I finally got it working...thank you for your extensive help. Many Regards |
||
November 8, 2012, 13:36 |
OpenFOAM in Mac OSX
|
#158 |
New Member
Aditya
Join Date: Jan 2011
Posts: 10
Rep Power: 15 |
Hello I was able to successfully install openfoam in mac osx . However as soon as I restart my computer, openfoam doesnt work and it shows that it is not installed. I followed the steps as per http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac . Please let me know what to do , Is it that using this method you need to install openfoam everytime you restart
|
|
November 9, 2012, 04:34 |
|
#159 |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Dear Aditya,
I think you didn't add to your .bashrc file this line: . OpenFOAM/OpenFOAM-2.1.0/etc/bashrc that set OpenFOAM environment when you start your terminal. You have also to mount the OpenFOAM dmg before opening the terminal. If you have different OpenFOAM versions installed on your system you can add this line to your .bashrc file (change the path according to your OpenFOAM dmg file path): alias of21='hdiutil attach "/PATH/TO/YOUR/DMG/OpenFOAM-2.1.x.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc' instead of the one I wrote above. In this case you have only to type "of21" to start using the OpenFOAM version that correspond to the specified dmg file. Note that this command will also mount the dmg file. Hope this will help you in some way Regards Norman |
|
November 9, 2012, 15:22 |
|
#160 | |
New Member
Aditya
Join Date: Jan 2011
Posts: 10
Rep Power: 15 |
Quote:
|
||
Tags |
compilation error |
|
|
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 12:01 |
OpenFOAM-1.6 on Mac OS X 10.6.1 | elvisjohndowson | OpenFOAM | 6 | October 21, 2009 16: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 14:43 |