Building OpenFOAM 2.2.x in usr/local, where changes necessary? (ubuntu
Hi
I'm working on a virtual server (ubuntu 12.04 LTS) and I would like to build OpenFOAM 2.2.x under /usr/local/ so that it's accessible for all users. I work with different versions next to each other, so I used aliases. I added in /etc/bash.bashrc alias OF22x='. /usr/local/OpenFOAM/OpenFOAM-2.2.x/etc/bashrc' and changed in usr/local/OpenFOAM/OpenFOAM-2.2.x/etc/bashrc the foam install to /usr/local/$WM_PROJECT_DIR Is there some additional change needed? Because when I then start building (in new terminal, after typing OF22x and foam, which all works fine) I get an error that the environmental variables are inconstent with the installation wmakeCheckPwd: not found Error: Current directory is not $WM_PROJECT_DIR Thanx for helping me out! |
Hi aevub,
Took me a while to see the problem here... but this should be it: Quote:
You'll see that the original value is: Code:
foamInstall=$HOME/$WM_PROJECT Code:
foamInstall=/usr/local/$WM_PROJECT Code:
foamInstall=/usr/local/$WM_PROJECT_DIR Best regards, Bruno |
Hi Bruno
Apparently, I made a mistake when asking my question, because I didn't put Code:
foamInstall=/usr/local/$WM_PROJECT_DIR Code:
foamInstall=/usr/local/$WM_PROJECT Amazing that you found that typo.. but unfortunately it's not the reason for the error. Any other ideas? regards Maaike |
I was also trying to install under the "/usr/local/" folder, and had the same issue.
As explained in the building from source instructions, one should change the installation directory accordingly: Code:
export FOAM_INST_DIR=/usr/local/OpenFOAM Before this solution, I tried replacing "$HOME" with "/usr/local/" in the bashrc file, but that doesn't work. Right now, I'm trying to solve some issues with ".\Allwmake" ... |
Actually, I tried to build the 2.2.x under my home folder on my pc, and when following the guidelines provided at
http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html but I had the same problem. Only when I build it with Quote:
|
Were you able to solve it then?
I also did an installation under home folder and it worked smoothly as told in these instructions. Now OpenFOAM and ParaView are operational. I don't know what the trouble was with the "/usr/local" installation. Some solutions I've read mentioned checking the wmake files with "which " command. That and "echo "ing folder name variables as "$FOAM_INST_DIR" looked correct. I may not be handling permissions correctly, so that might be an issue, as well. |
Well, I built OpenFOAM 2.2.x with the" source ..." in the bashrc file, and after compiling, I changed this into an alias to run different versions next to each other, and that works.
The usr/local or opt/ still doesn't work. |
Greetings to all!
@aevub: As implied by vints - to diagnose, try these steps:
Bruno |
To check what happens with my failed /usr/local installation, I changed my alias again. After this,
Quote:
Quote:
Quote:
Quote:
Still, when running ./Allwmake, I get the error that the current directory is not $WM_PROJECT_DIR, although it is.. |
Hi aevub,
Mmm... that kind of issue should only occur if something is out of place. Try the following steps:
Best regards, Bruno |
All times are GMT -4. The time now is 23:55. |