Installing OpenFoam 2.1.1 on OS X 10.8.2 (Mountain Lion)
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 |
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 |
Hi Bruno,
thanks for the welcome and the fast reply. Unfortunately it's the same error message when I try without sudo. Cheers Thomas |
Hi Thomas,
Try running: Code:
. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc Code:
ls -l $HOME/OpenFOAM Best regards, Bruno |
Hi Bruno,
Code:
. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc Code:
ls -l $HOME/OpenFOAM Best regards, Thomas |
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) |
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 |
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 And I'm getting another error: Code:
. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc Did somebody else had the same problem and what did you do to solve the issue? Cheers Thomas |
Hi Thomas and Bernhard,
I can only guess on this one... but a quick search lead to the following solutions:
Bruno |
Quote:
|
Files not updated after re-compilation
(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 |
Quick reply:
|
All times are GMT -4. The time now is 08:07. |