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] Problem in installing OpenFOAM 2.3.0 !!! (https://www.cfd-online.com/Forums/openfoam-installation/175312-problem-installing-openfoam-2-3-0-a.html)

omid20110 July 27, 2016 16:00

Problem in installing OpenFOAM 2.3.0 !!!
 
Hello everybody,
I'm trying to install openfoam 2.3.0 but I get this error:
" sudo apt-get install openfoam230
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openfoam230 "

I should mention that I already have installed openfoam 3.0.1 and openfoam 2.4 but now whenever I try to install openfoam 2.3.0 (that is needed for installing flameletfoam...) I get this type of error!
Please help me to solve this problem.

hk318i July 29, 2016 10:10

Probably, you have a recent Ubuntu version which does not support OpenFOAM-2.3 binary package. Check [LINK1][LINK2]

You can compile the source files on your system directly.

omid20110 July 29, 2016 13:59

Yes you're right I have ubuntu 14.04 LTS..
Thanks but I don't know how to install openfoam 2.3 using these links!
Could you please explain it?

hk318i July 30, 2016 06:28

You install OpenFOAM-2.3.1 on Ubuntu 14.04 LTS.

Code:

sudo apt-get install openfoam231
To install from source, you can follow these instructions [LINK]. Also, you can follow OFWiki detailed guide.

omid20110 July 30, 2016 18:35

Thanks for your help.
I have followed the instructions in this link
http://openfoam.org/download/2-3-0-source/
I have unpacked the sources in opt directory and I have set environment variables in .bashrc like this:
alias of30='. /opt/openfoam30/etc/bashrc'
alias of240='. /opt/openfoam240/etc/bashrc'
alias of230='. /opt/OpenFOAM-2.3.0/etc/bashrc'

now when I run ./Allwmake I get this error:

linux@linux-K550ZE:~$ sudo su -
[sudo] password for linux:
root@linux-K550ZE:~# cd /opt/OpenFOAM-2.3.0
root@linux-K550ZE:/opt/OpenFOAM-2.3.0# ./Allwmake
./Allwmake: 4: ./Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

hk318i July 31, 2016 05:20

You need to change the location of OpenFOAM installation in ``OpenFOAM-2.3.0/etc/bashrc`` or simple install it in ``$HOME/OpenFOAM/OpenFOAM-2.3.0``

omid20110 August 1, 2016 11:20

Thanks it solved my problem :)


All times are GMT -4. The time now is 02:40.