CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam 1.7.1 on Fedora 12 Help... (http://www.cfd-online.com/Forums/openfoam-installation/82078-openfoam-1-7-1-fedora-12-help.html)

Alphax November 16, 2010 06:38

OpenFoam 1.7.1 on Fedora 12 Help...
 
Hello everybody,

I have trouble installing OpenFoam 1.7.1 on Fedora 12 (my computer doesnt allow installation of Ubuntu). I followed all the steps in the sources link (http://www.openfoam.com/download/source.php) and when it comes to do ./Allwmake in ThirdParty-1.7.1 or in OpenFoam-1.7.1 I got :
Error: Current directory in not $WM_PROJECT_DIR/applications
The environment variable are not consistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

My architecture is: ls Home/ Me/ OpenFoam/

ThirdParty-1.7.1 OpenFoam-1.7.1
It doesn't let me copy OpenFoam in Home/

wyldckat November 16, 2010 17:42

Greetings Alphax and welcome to the forum!

My guess is that you aren't respecting the case sensitivity of the folder names. For example, the base folder of OpenFOAM should be OpenFOAM, not OpenFoam. To be more exact, your base folder for OpenFOAM should be what is outputed by this command:
Code:

echo $HOME/OpenFOAM
Which should be exactly the same as what should be outputed by this command:
Code:

echo $WM_PROJECT_INST_DIR
Now, if you really want OpenFOAM in another directory, open the file
"OpenFOAM-1.7.1/etc/bashrc" and change the line 45 to your liking:
Code:

foamInstall=$HOME/$WM_PROJECT
For example, to:
Code:

foamInstall=$HOME/me/OpenFoam
Keep in mind that $HOME will expand into "/home/your_username".

Best regards,
Bruno

Alphax November 22, 2010 01:07

Hey,

I checked my spelling and I have OpenFOAM ( /home/me/OpenFOAM) as a base directory for OpenFOAM-1.7.1 and ThirdParty-1.7.1 . So as displyed below the second command does not output any path...
echo $HOME/OpenFOAM
/home/me/OpenFOAM
echo $WM_PROJECT_INST_DIR I donnot know what is going on. I change OpenFOAM-1.7.1/etc/bachrc line 45 to
foamInstall=$HOME/OpenFOAM
I tried ./Allwmake in OpenFOAM-1.7.1 and it outputs:

Error: Current directory is not $WM_PROJECT_DIR
The environment variable are not consistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

I have the same error when trying to build (./Allwmake) in ThirdParty-1.7.1 :
./Allwmake: line 34: wmakeCheckPwd: command not found
Error: Current directory is not $WM_THIRD_PARTY_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

And similarly, echo $WM_THIRD_PARTY_DIR output a blank path so I donnot know what is going on there. I did the system checks: g++ and flex, its installed.

I really look forward to managing to get OpenFOAM to run :confused:

Kind Regards,

balkrishna November 22, 2010 02:14

go to the terminal ..... and open the bashrc file .....
Code:

gedit .bashrc
At the end of the file just add
Code:

. /home/me/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
save the file . close the terminal . Now you should be ready to compile the source .

balkrishna November 22, 2010 02:17

Note the space in :
Code:

. /home/me/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc

DFP July 13, 2011 03:42

Hi Bruno and hi anyone else in this forum!

It seems that your are familiar with the installation of OpenFOAM. I have also a slight problem with the installation of OpenFOAM V1.7.1 on my MAC. Perhaps someone has an useful hint for me.
I have created a case sensitive disk image for the installation of OpenFOAM on my MAC, OpenFOAM is to find under
/Volumes/OpenFOAM/
I'm absolutely unsure what to put in line 45 in the etc/bashrc. I guess it is
foamInstall=/Volumes/OpenFOAM/$WM_PROJECT
but the terminal stops with the following line
"etc/bashrc" 335L, 9552C
Please, could somebody help me?

Frank

wyldckat July 13, 2011 15:50

Greetings Frank and welcome to the forum!

I'm sorry, but you'll have to ask the people that have MACs :( Try asking on this thread: http://www.cfd-online.com/Forums/ope...mac-1-7-x.html

Best regards,
Bruno

B2oka November 2, 2012 15:33

Hello everyone,
just wanted to say:
I had the exact same problem as Alphax i.e. blank when typping $WP_PROJECT_DIR.
The problem for me was that my $HOME variable was not set up. It was /root.
I changed it to my /home/myname in a classical way, redid the make process and it went fine.
I use Linux Mint 12 (Ubuntu)
cheers


All times are GMT -4. The time now is 10:31.