|
[Sponsors] |
Building OpenFOAM 2.2.x in usr/local, where changes necessary? (ubuntu |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2013, 05:47 |
Building OpenFOAM 2.2.x in usr/local, where changes necessary? (ubuntu
|
#1 |
New Member
ae-lab VUB
Join Date: Oct 2011
Posts: 17
Rep Power: 14 |
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! |
|
December 8, 2013, 13:23 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
||
December 9, 2013, 02:09 |
|
#3 |
New Member
ae-lab VUB
Join Date: Oct 2011
Posts: 17
Rep Power: 14 |
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 |
|
December 9, 2013, 14:20 |
|
#4 |
New Member
Erdem
Join Date: Dec 2013
Posts: 2
Rep Power: 0 |
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 foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.2.2/etc/bashrc [ -f $foamDotFile ] && . $foamDotFile 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" ... |
|
December 10, 2013, 02:28 |
|
#5 | |
New Member
ae-lab VUB
Join Date: Oct 2011
Posts: 17
Rep Power: 14 |
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:
|
||
December 10, 2013, 06:59 |
|
#6 |
New Member
Erdem
Join Date: Dec 2013
Posts: 2
Rep Power: 0 |
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. |
|
December 10, 2013, 07:49 |
|
#7 |
New Member
ae-lab VUB
Join Date: Oct 2011
Posts: 17
Rep Power: 14 |
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. |
|
December 10, 2013, 17:05 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@aevub: As implied by vints - to diagnose, try these steps:
Bruno
__________________
|
|
December 11, 2013, 04:50 |
|
#9 | ||||
New Member
ae-lab VUB
Join Date: Oct 2011
Posts: 17
Rep Power: 14 |
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.. |
|||||
December 11, 2013, 15:50 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi aevub,
Mmm... that kind of issue should only occur if something is out of place. Try the following steps:
Best regards, Bruno
__________________
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 1.6.x Installer for Ubuntu | Canesin | OpenFOAM Installation | 142 | March 30, 2015 04:58 |
OpenFOAM vs Ubuntu 10.10 64 bit | vkrastev | OpenFOAM Installation | 12 | April 23, 2011 10:14 |
Error in apt-get update for installation of OpenFoam 1.7.1 on Ubuntu 10.10 | StuntedChicken | OpenFOAM Installation | 1 | January 9, 2011 10:43 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 05:56 |
Building OpenFoAm on SGI Altix 64bits | anne | OpenFOAM Installation | 8 | June 15, 2006 09:27 |