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] error in installation OpenFOAM 2.4.0 in Ubuntu 14.04 (https://www.cfd-online.com/Forums/openfoam-installation/205037-error-installation-openfoam-2-4-0-ubuntu-14-04-a.html)

alimea August 8, 2018 04:28

error in installation OpenFOAM 2.4.0 in Ubuntu 14.04
 
Hi foamers


I want to install OF2.4.0 on HOME directory of ubuntu 14.04 according to this address:

https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04

but it gave this error:

http://uupload.ir/files/ae9_photo_20...8_12-53-28.jpg

when I write this command:

Code:

source $HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc WM_NCOMPPROCS=4
I don't know what the problem is!

Thanks

fertinaz August 8, 2018 12:24

Hello

In fact you can see the problem in the err msg. You're sourcing:
Code:

$HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc
However OpenFOAM complains:
Code:

/opt/OpenFOAM-2.4.0/......
Your OF directory is in your $HOME folder but when you source bashrc, environment seeks /opt and naturally cannot find any files.

Either modify OF/etc/bashrc to set the correct path or move OF directory to /opt. I'd do the former.

alimea August 9, 2018 07:12

Quote:

Originally Posted by fertinaz (Post 701972)
Hello

In fact you can see the problem in the err msg. You're sourcing:
Code:

$HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc
However OpenFOAM complains:
Code:

/opt/OpenFOAM-2.4.0/......
Your OF directory is in your $HOME folder but when you source bashrc, environment seeks /opt and naturally cannot find any files.

Either modify OF/etc/bashrc to set the correct path or move OF directory to /opt. I'd do the former.


Dear Fatih

I solved the problem with deleting this line in my .bashrc file (in HOME directory):
Quote:

“source /opt/.bashrc"
The recent version was "sourced" in .bashrc file. I deleted it and compile it correctly.

Thank you my friend


All times are GMT -4. The time now is 13:01.