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 installation problem: (https://www.cfd-online.com/Forums/openfoam-installation/93609-openfoam-installation-problem.html)

Padma Pavani October 20, 2011 06:32

OpenFOAM installation problem:
 
Hi,

I m trying to install OpenFOAM2.0.X in Centos5.5_X86,
I have followed these steps:

1) yum install gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel

2) tar -xvf /opt/OpenFOAM/OpenFOAM-2.0.x.tar.gz

3)chmod -R 755 /opt/OpenFOAM

4) added this line in .bashrc file ( as non root user )
alias OF20=". /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc"

5). ~/.bashrc
(restarted the terminal)
6) if run this command OF20
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamEtcFile: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamCleanPath: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamCleanPath: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamCleanPath: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/etc/config/settings.sh: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/etc/config/aliases.sh: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamEtcFile: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamEtcFile: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamCleanPath: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamCleanPath: No such file or directory
bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamCleanPath: No such file or directory

7) which gcc-> /usr/bin/gcc

please help me in solving this issue.

linnemann October 20, 2011 08:41

Hi

Quote:

alias OF20=". /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc"
Quote:

bash: /opt/software/OpenFOAM/OpenFOAM-2.0.x/bin/foamEtcFile: No such file or directory
Look at the two paths. They are not the same.

you have to edit the OF /etc/bashrc file to point to the correct path.

Best

Padma Pavani October 21, 2011 01:52

OF
 
HI,

Can you please tell me where i have to give the correct path in /etc/bashrc file,
im confused and im doing this for the first time,

I will be very greatful if you can help me on this,


All times are GMT -4. The time now is 06:21.