|
[Sponsors] |
July 1, 2010, 12:52 |
1.7.x Environment Variables on Linux 10.04
|
#1 |
New Member
Daniel Hertenstein
Join Date: Jun 2010
Posts: 2
Rep Power: 0 |
I grabbed OpenFOAM-1.7.x and the ThirdParty sources and have them in the $HOME/OpenFOAM directory. I am on the step of setting the environment variables. I have followed the directions on the OpenFOAM site exactly and added
. $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc to the bottom of the .bashrc file. However, when running . $HOME/.bashrc I get the following set of errors: bash: /opt/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory bash: /opt/OpenFOAM-1.7.x/etc/aliases.sh: No such file or directory bash: /opt/OpenFOAM-1.7.x/etc/apps/paraview3/bashrc: No such file or directory bash: /opt/OpenFOAM-1.7.x/etc/apps/ensight/bashrc: No such file or directory bash: /opt/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory which makes me think that .bashrc thinks that OpenFOAM is in the opt directory. But simply typing in $HOME/OpenFOAM/OpenFOAM-1.7.x/etc takes me to the correct path. Any ideas on why this would be occurring? Thanks in advance! |
|
July 1, 2010, 14:28 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Daniel and welcome to the forum!
You apparently were lucky enough to get the git repository right in the middle of some updates The developers now are supporting two types of releases, and one of them (the Ubuntu/Debian releases) use the /opt folder, so you got them right when they were updating that version :P So, right now, you've two options:
Bruno
__________________
|
|
July 1, 2010, 14:53 |
|
#3 |
New Member
Daniel Hertenstein
Join Date: Jun 2010
Posts: 2
Rep Power: 0 |
Bruno,
I grabbed the files again and no more problem. Thanks a lot! |
|
July 2, 2010, 03:20 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
I guess "Linux 10.04" is Ubuntu, not exactly the only Linux-based operating system. ;-)
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
July 2, 2010, 18:52 |
Similar problem
|
#5 |
New Member
Timothy Vandenbussche
Join Date: Jul 2010
Posts: 2
Rep Power: 0 |
Hello all,
I have a virtual machine with Ubuntu 10.4. I installed Openfoam170 with apt-get. I changed my bashrc according to the instructions. Files arrived in /opt I now seem to have the following problem: foamInstallationTest returns FATAL ERROR: OpenFOAM environment not configured. I notice the following environment variables: echo $FOAM_RUN /home/timothy/OpenFOAM/timothy-1.7.0/run echo $FOAM_INST_DIR /opt So I'm not able to do the examples of the tutorial. I guess something is wrong in the environment. Or should I make another directory in my home-directory? Thanks for helping. |
|
July 2, 2010, 19:44 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Timothy and welcome to the forum!
Interesting... Quote:
Bruno
__________________
|
||
July 2, 2010, 20:06 |
|
#7 |
New Member
Timothy Vandenbussche
Join Date: Jul 2010
Posts: 2
Rep Power: 0 |
ok, point 1 I don'tmind. If the rest would work...
2. ubuntu-10.04-desktop-i386.iso on a virtual machine 3. I just used apt-get for installation, like is said on http://www.openfoam.com/download/ubuntu.php so i just typed apt-get install openfoam170 4. Yes all the files seem to be present in /opt/openfoam170 But I notice at least two problems: $FOAM_RUN points to the wrong directory And if I start with the tutorial: if I call then Blockmesh in /opt/openfoam170/tutorials/incrompressible/icoFoam/cavity/ it gives FATAL ERROR Failed writing polymesh. (can this be related to the environment settings?) |
|
July 2, 2010, 20:28 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Because $FOAM_RUN doesn't point to the wrong folder, it points to a folder which should be located in your personal user folder! And in the user guide it starts off with: Code:
mkdir -p $FOAM_RUN cp -r $FOAM_TUTORIALS $FOAM_RUN This quick and easy installation of OpenFOAM in Ubuntu is designed to be a system wide installation and to be a plug-and-play like application. The folder /opt/openfoam170 is a system/protected folder which is meant to be accessed only as source of the things you can use! It's not meant to be used directly inside it! You can use the applications and libraries in it, and copy stuff from it, but you aren't meant to change it! Except maybe when updating the OpenFOAM installation, which should be available every month. When that time comes, they should post some more info about it, but probably Ubuntu will automatically warn you that there is a new version available to install Best regards and good luck! Bruno
__________________
Last edited by wyldckat; July 2, 2010 at 20:32. Reason: Added address to the local user guide |
||
July 29, 2010, 15:38 |
|
#9 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
Hi Bruno,
today I have updated my OpenFOAM-1.7.x version. Since then I get the following error message when I run a case in parallel. To run a case in parallel I use the following command: /shared/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/openmpi-1.4.1/bin/mpirun -np 12 -hostfile machines /shared/OpenFOAM/OpenFOAM-1.7.x/bin/foamExec simpleFoam -parallel | tee log.simpleFoam/shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 90: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamEtcFile: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 241: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 244: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 247: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/bin/foamCleanPath: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory /shared/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: line 83: /home/sanchi/OpenFOAM/OpenFOAM-1.7.x/etc/settings.sh: No such file or directory In serial it runs well. Do you have any idea ? Regards, Stephane. |
|
July 30, 2010, 05:43 |
|
#10 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
Now my problem is solved. The foamInstall directory was not set correctly.
foamInstall=$HOME/$WM_PROJECT Stephane. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
'Set Environment Variables' for Fluent 12 | DarrenC | Fluent UDF and Scheme Programming | 2 | May 25, 2011 16:51 |
Gentoo Environment Variables | scottneh | OpenFOAM Installation | 1 | September 20, 2009 13:21 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
How to set environment variables | kanishka | OpenFOAM Installation | 1 | September 4, 2005 11:15 |
environment variables version 3.2 | F.K. | Siemens | 15 | June 28, 2004 13:41 |