|
[Sponsors] |
Installing OpenFoam 2.1.1 on OS X 10.8.2 (Mountain Lion) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 2, 2012, 13:36 |
Installing OpenFoam 2.1.1 on OS X 10.8.2 (Mountain Lion)
|
#1 |
New Member
Thomas Becker
Join Date: Dec 2012
Posts: 5
Rep Power: 14 |
Dear all,
I'm running into some problem installing OF in the operating system mentioned in the title. I followed the description at http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac, and until now it looked like the installation process will work. But... NO. When I call Code:
sudo ./Allwmake > make.log 2>&1 ./Allwmake: line 4: wmakeCheckPwd: command 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. I started completely from scratch... Installing macports, Xcode and all the other things. Don't know if there have to be some adjustments done to openmpi or not. which $WM_CC brings /opt/local/bin/gcc-mp-4.6 which $WM_CXX brings /opt/local/bin/g++-mp-4.6 I simply have no clue what to do with the error message and hope you can help. Thanks in advance, Thomas |
|
December 2, 2012, 14:16 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Thomas and welcome to the forum!
Well, you're not following the instructions to the letter In section 2.6 it does not tell you to run Allwmake with sudo! That's why it's not working. Best regards, Bruno
__________________
|
|
December 2, 2012, 17:16 |
|
#3 |
New Member
Thomas Becker
Join Date: Dec 2012
Posts: 5
Rep Power: 14 |
Hi Bruno,
thanks for the welcome and the fast reply. Unfortunately it's the same error message when I try without sudo. Cheers Thomas |
|
December 3, 2012, 16:53 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Thomas,
Try running: Code:
. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc ./Allwmake > make.log 2>&1 Code:
ls -l $HOME/OpenFOAM ls -l $HOME/OpenFOAM/OpenFOAM-2.1.1 Best regards, Bruno
__________________
|
|
December 4, 2012, 06:08 |
|
#5 |
New Member
Thomas Becker
Join Date: Dec 2012
Posts: 5
Rep Power: 14 |
Hi Bruno,
Code:
. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc runs without any error message or other response ./Allwmake > make.log 2>&1 ./Allwmake: line 4: wmakeCheckPwd: command 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. /Users/Tom/OpenFOAM/OpenFOAM-2.1.1/make.log (END) Code:
ls -l $HOME/OpenFOAM lrwxr-xr-x 1 Tom staff 24 Dec 2 17:02 /Users/Tom/OpenFOAM -> /Volumes/OpenFOAM-v2.1.1 ls -l $HOME/OpenFOAM/OpenFOAM-2.1.1 s -l $HOME/OpenFOAM/OpenFOAM-2.1.1 total 526704 -rwxr-xr-x@ 1 Tom staff 923 May 24 2012 Allwmake -rw-r--r--@ 1 Tom staff 35647 May 24 2012 COPYING -rw-rw-rw-@ 1 Tom staff 4174 Jan 1 2012 OpenFOAM-2.1.x-Mac-gcc46.patch -rw-rw-rw-@ 1 Tom staff 37974 Jan 1 2012 OpenFOAM-2.1.x-Mac.patch -rw-rw-rw-@ 1 Tom staff 16264 Jan 1 2012 OpenFOAM-2.1.x-gcc42.patch -rw-r--r--@ 1 Tom staff 6522 May 24 2012 README.html -rw-r--r--@ 1 Tom staff 1585 May 24 2012 README.org -rw-r--r--@ 1 Tom staff 269547520 Dec 2 14:38 ThirdParty-2.1.1.tar drwxr-xr-x@ 6 Tom staff 204 May 24 2012 applications drwxr-xr-x@ 63 Tom staff 2142 Dec 2 15:58 bin drwxr-xr-x@ 8 Tom staff 272 May 24 2012 doc drwxr-xr-x@ 9 Tom staff 306 Dec 2 15:58 etc -rw-r--r-- 1 Tom staff 237 Dec 2 22:13 make.log drwxr-xr-x@ 33 Tom staff 1122 May 24 2012 src drwxr-xr-x@ 19 Tom staff 646 May 24 2012 tutorials drwxr-xr-x@ 23 Tom staff 782 Dec 2 15:58 wmake Best regards, Thomas Last edited by TomGEO; December 4, 2012 at 06:53. |
|
December 4, 2012, 06:19 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway: about your problem: what does ls $HOME/OpenFOAM/ say (with the slash)? And what is the output of ls /Volumes/OpenFOAM-v2.1.1 (my guess is that the symbolic link points to Nirvana OR that the OF-folder on the drive is named differently)
__________________
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 |
||
December 4, 2012, 06:58 |
|
#7 | |
New Member
Thomas Becker
Join Date: Dec 2012
Posts: 5
Rep Power: 14 |
Quote:
The stuff is all there. I restarted the computer and forgot in the first place to mount the virtual drive the symbolic link is pointing to. Hence, Nirvana was the right address I suppose. Cheers Thomas |
||
December 4, 2012, 09:20 |
|
#8 |
New Member
Thomas Becker
Join Date: Dec 2012
Posts: 5
Rep Power: 14 |
Hi, I just went a bit further in the installation manual and edited etc/bashrc with respect to openmpi. Since I installed it from macports I edited the line export WM_MPLIB=OPENMPI to export WM_MPLIB=SYSTEMOPENMPI.
Thought give it a try again and ran Code:
. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc -bash: mpicc: command not found -bash: mpicc: command not found And I'm getting another error: Code:
. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc Cannot open configuration file /Users/Tom/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/openmpi-1.5.3/share/openmpi/mpicc-wrapper-data.txt Did somebody else had the same problem and what did you do to solve the issue? Cheers Thomas Last edited by TomGEO; December 4, 2012 at 10:36. Reason: solved one problem |
|
December 4, 2012, 17:25 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Thomas and Bernhard,
I can only guess on this one... but a quick search lead to the following solutions:
Bruno
__________________
|
||
December 4, 2012, 19:34 |
|
#10 | |
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 |
||
December 11, 2012, 07:38 |
Files not updated after re-compilation
|
#11 |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
(This might belong in another thread; but I experience it only on Mac OS X)
I have OF 2.1.x on Mountain Lion and it works fine. When I change/add something in src/lagrangian/intermediate/submodels/Kinematic/InjectionModels/ConeNozzleInjection/ConeNozzleInjection.C, and do a wmake libso . in src/lagrangian, it says everything is already up to date. I can force it by wclean all; wmake libso . in the same folder, and the library is compiled afresh. But when I run sprayFoam on a case with ConeNozzleInjection the changes I made to the code are not reflected. I can, for instance, see debug output that I added in ConeNozzleInjection, even after I remove it from the code and recompile lagrangian. I give up after repeated attempts and just do an ./Allwmake in OpenFOAM-2.1.x and it works (i.e. updates are reflected) -- not immediately, but after a few hours. Is something being cached somewhere? What is the correct way to update the lagrangian library without having to compile OpenFOAM afresh? Regards, Sushant P.S. Same behaviour on mlion + 2.1.x and lion + 2.0.x Last edited by sushant; December 11, 2012 at 07:47. Reason: platform info |
|
December 11, 2012, 12:08 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick reply:
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installing OpenFOAM 2.1.1 and ParaView 3.12.0 on Ubuntu 12.10 | wyldckat | OpenFOAM Installation | 14 | February 12, 2013 05:43 |
Is OpenFOAM 2.1.1 Heat Transfer applications working? | fontania | OpenFOAM Running, Solving & CFD | 0 | September 21, 2012 00:15 |
solver icoFsiFoam on OpenFOAM 2.1.1 | orman05 | OpenFOAM | 3 | August 5, 2012 11:31 |
probes function not working in Openfoam 2.1.1 | nandiganavishal | OpenFOAM | 7 | July 26, 2012 12:06 |
OpenFOAM 2.1.1 Installation Errors on RHEL 6.3 | tgvosk | OpenFOAM Installation | 15 | July 5, 2012 19:43 |