1.7.x Environment Variables on Linux 10.04
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! |
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 |
Bruno,
I grabbed the files again and no more problem. Thanks a lot! |
I guess "Linux 10.04" is Ubuntu, not exactly the only Linux-based operating system. ;-)
|
Similar problem
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. |
Greetings Timothy and welcome to the forum!
Interesting... Quote:
Bruno |
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?) |
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 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 :D Best regards and good luck! Bruno |
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. |
Now my problem is solved. The foamInstall directory was not set correctly.
foamInstall=$HOME/$WM_PROJECT Stephane. |
All times are GMT -4. The time now is 10:22. |