CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] 4.1: Bashrc file problem (https://www.cfd-online.com/Forums/openfoam-installation/178732-4-1-bashrc-file-problem.html)

FlyBob91 October 14, 2016 14:39

4.1: Bashrc file problem
 
Hello to everyone,
i'm trying to install the new OpenFOAM version 4.1 on Ubuntu 16.04 LTS by following the guide but i think there is a passage not explained.
I'm not installing it in /opt/ but in $home/my_name/OpenFOAM/
In the folrder OpenFOAM there are OpenFOAM-4.1 and ThirdParty-4.1

Now i'm at the point i have to add the line to the home bashrc file and i added this line always following the guide

HTML Code:

source $HOME/OpenFOAM/OpenFOAM-4.1/etc/bashrc
and this is the result on terminal

Code:

bash: /home/roby/OpenFOAM/OpenFOAM-4.x/etc/config.sh/functions: File o directory non esistente
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamEtcFile: File o directory non esistente
_foamSource: comando non trovato
_foamEval: comando non trovato
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamCleanPath: File o directory non esistente
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamCleanPath: File o directory non esistente
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamCleanPath: File o directory non esistente
_foamSource: comando non trovato
_foamSource: comando non trovato
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamEtcFile: File o directory non esistente
_foamSource: comando non trovato
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamEtcFile: File o directory non esistente
_foamSource: comando non trovato
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamEtcFile: File o directory non esistente
_foamSource: comando non trovato
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamEtcFile: File o directory non esistente
_foamSource: comando non trovato
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamEtcFile: File o directory non esistente
_foamSource: comando non trovato
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamCleanPath: File o directory non esistente
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamCleanPath: File o directory non esistente
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/bin/foamCleanPath: File o directory non esistente
bash: /home/roby/OpenFOAM/OpenFOAM-4.x/etc/config.sh/functions: File o directory non esistente

i think i should change something in the bashrc file in the $HOME/OpenFOAM/OpenFOAM-4.1/etc/ because maybe is set up for the /opt/ installation.
Could someone explain me what to change?

Thanks a lot

FlyBob91 October 14, 2016 20:07

OK i solved the problem :D

As i mentioned the error was in

HTML Code:

HOME/OpenFOAM/OpenFOAM-4.1/etc/bashrc
Opened the bashrc file it's simply necessary to change

HTML Code:

export WM_PROJECT_VERSION=4.x
in

HTML Code:

export WM_PROJECT_VERSION=4.1
for the 4.1 OpenFOAM version.

i hope this could help someone :)

wyldckat October 16, 2016 09:44

Greetings Roberto,

Many thanks for spotting this! I've reported it here: http://bugs.openfoam.org/view.php?id=2293

It should be fixed as soon as possible.

For others with the same problem, if you want to use a single command that does this fix, run the following from within the folder "OpenFOAM-4.1":
Code:

sed -i -e 's=4\.x=4.1=' etc/bashrc etc/cshrc
Best regards,
Bruno

FlyBob91 October 17, 2016 07:32

Quote:

Originally Posted by wyldckat (Post 621669)
I've reported it here: http://bugs.openfoam.org/view.php?id=2293

It should be fixed as soon as possible.

Thanks to you and your work Bruno.

Best regards,
Roberto


All times are GMT -4. The time now is 00:28.