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.com] OpenFOAM-1.6.x on 64 bit machine (https://www.cfd-online.com/Forums/openfoam-installation/72543-openfoam-1-6-x-64-bit-machine.html)

Kr_kim February 9, 2010 16:42

OpenFOAM-1.6.x on 64 bit machine
 
Dear Formers

git version for OpenFOAM-1.6.x is compiled successfully in 32 bit version
However, It's not compiled on 64 bit machine. I just followed the procedure below
http://openfoamwiki.net/index.php/Howto_install_OpenFOAM-1.6.x_(git_repository_version)

But I got a error below at the last step, ./Allwmake in OpenFOAM-1.6.x


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

Do you have any idea for this problem?

Thanks in advance

Kyungrock

wyldckat February 11, 2010 07:28

Greetings Kyungrock,

Please run the following command:
Code:

echo $WM_PROJECT_DIR
It will either output nothing or it will output a path that is different than the one your running ./Allwmake from. Usually $WM_PROJECT_DIR is $HOME/OpenFOAM/OpenFOAM-1.6.x for OpenFOAM-1.6.x ...

So, in can it does output something and is different from your installed path, then you can either edit the OpenFOAM-1.6.x/etc/bashrc script and adapt to your installation settings, or vice-versa, i.e., move or symbolically link your current set-up to the folder hierarchy defined in the bashrc script.

If the echo outputs nothing, than something is very wrong... because if you managed to build properly the ThirdParty tools, then how is it not allowing the building of OpenFOAM?

Best regards,
Bruno Santos

suitup February 12, 2010 12:04

or just try the script from Mads, can be found here http://www.cfd-online.com/Forums/ope...-cookbook.html

should be the easiest way

good luck :)

Kr_kim February 12, 2010 14:55

Thanks for the reply.

my output is /storage/kkim/OpenFOAM/OpenFOAM-1.6.x

It looks strange.

Best wishes

Kyungrock

Kr_kim February 12, 2010 14:56

Hi

In redhat linux case, will that way be availabe?

Thanks

Kyungrock

jenna August 22, 2016 09:14

similar problem
 
Quote:

Originally Posted by wyldckat (Post 245702)
Greetings Kyungrock,

Please run the following command:
Code:

echo $WM_PROJECT_DIR
It will either output nothing or it will output a path that is different than the one your running ./Allwmake from. Usually $WM_PROJECT_DIR is $HOME/OpenFOAM/OpenFOAM-1.6.x for OpenFOAM-1.6.x ...

So, in can it does output something and is different from your installed path, then you can either edit the OpenFOAM-1.6.x/etc/bashrc script and adapt to your installation settings, or vice-versa, i.e., move or symbolically link your current set-up to the folder hierarchy defined in the bashrc script.

If the echo outputs nothing, than something is very wrong... because if you managed to build properly the ThirdParty tools, then how is it not allowing the building of OpenFOAM?

Best regards,
Bruno Santos

Hi,

I've got the same error message with OpenFOAM-2.2.2 on Mac Ox X El Capitan, when sourcing the bashrc file. I think I built the ThirdParty tools, but echo outputs nothing in my case...

Any idea?
Thanks,

Jenna

wyldckat August 24, 2016 21:52

Quote:

Originally Posted by jenna (Post 614977)
I've got the same error message with OpenFOAM-2.2.2 on Mac Ox X El Capitan, when sourcing the bashrc file. I think I built the ThirdParty tools, but echo outputs nothing in my case...

Quick questions:
  1. Which installation instructions are you following?
  2. What is the full path to where you have OpenFOAM's source code?
  3. What commands are you using for sourcing OpenFOAM's "etc/bashrc" file?

jenna August 25, 2016 03:40

1. Installation instructions: https://openfoamwiki.net/index.php/I...OpenFOAM_2.2.2
2. I had to create a sparse-image which is in my homefolder, and then created a symlink to this sparse-image, where I put the dowloaded source code.
3. Sourcing the bash/file was given to be following command:
. etc/bashrc


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