CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   git installation of 1.6 (http://www.cfd-online.com/Forums/openfoam-installation/67333-git-installation-1-6-a.html)

romant August 12, 2009 05:58

git installation of 1.6
 
Hej,

I have a problem installing the git version of 1.6.x. I used the command provided on the openfoam website and i now have a OpenFOAM-1.6.x folder in my ~/OpenFOAM folder. Then I wanted to use the Allmake command but the compilation failed, so I source the bin of the git version first and tried it again, now the compiler is looking for the ThirdParty-1.6.x version. How do I get rid of this error?

ulli August 12, 2009 14:51

Hi Roman,

I just copied the complete ThirdParty-1.6 to ThirdParty-1.6.x and and ran Allwmake in OpenFOAM-1.6.x.

Ulrich

alberto August 13, 2009 02:23

Rename the ThirdParty-1.6 directory to ThirdParty-1.6.x.

Then build paraview (see the readme file) and then OpenFOAM to have a smooth process.

Best,

romant August 13, 2009 03:16

not working anymore
 
Hej,

I did the part about the third party folder and compiled openfoam, but now my openfoam can't find the commands which belong to openfoam. I have not compiled paraFoam yet, but this shouldn't have anything to do with openfoam. Is there a special trick that i have to use, like moving the content of 1.6.x into the 1.6 folder and then set the variables in the bash to this folder again?

alberto August 13, 2009 03:24

The line in your ~/.bashrc has to be changed too:

. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc

But if this is the reason, you should have had problems also to compile, I would say.

romant August 13, 2009 03:38

did that
 
yeah i did that, but its still not working. to compile i only have to use the ./Allwmake command in the main directory 1.6.x right, or maybe some other make commands as well?

alberto August 13, 2009 03:46

Yes, that is correct. What distribution are you using? Did you check compilation actually succeeded (commands might be missing because the executable is not there)?

Best,

romant August 13, 2009 03:50

i am using ubuntu 9.04 64bit, i checked the compiling log this morning and it didn't show any errors, but i also double checked the folders for example decomposePar in applications/utilities is 44file and 2.7MB in the 1.6 folder but only 66kB and 19 files in the 1.6.x folder.

so yeah the compilation didn't throw any errors, but i still don't have the executables.

gschaider August 13, 2009 03:56

Quote:

Originally Posted by ulli (Post 226130)
I just copied the complete ThirdParty-1.6 to ThirdParty-1.6.x and and ran Allwmake in OpenFOAM-1.6.x.

If you don't need a separate copy of that stuff consider a symbolic link:

ln -s ThirdParty-1.6 ThirdParty-1.6.x

(it's not about diskspace, it's about needing to update things only once)

romant August 13, 2009 04:25

softlink
 
yeah i thought about the softlink as well, but i wanted to keep at least one of my installations working, so i copied. I noticed in the compile-output that it compiles the foamReader as well. And if i would have done that in my original folder, I might have no foamReader available now.

The thing is that I need the update, otherwise I would run with the old 1.6. But the update that I need has just been pushed in.

Maybe someone has an idea what could go wrong, or if I need to run something else after I compiled with ./Allwmake

romant August 13, 2009 05:59

Error message at the beginning of the compile
 
Hej,

I tried compiling it again. There is an error message, but it keeps on compiling. I don't really know if the message means something, but it seems that it is missing something.

Code:

gcc -m64  -Wall -O3  -fPIC dirToString.c -o /home/piotr/OpenFOAMOpenFOAM-1.6.x/wmake/bin/linux64Gcc/dirToString
flex wmkdep.l
make: flex: Command not found
make: *** [/home/piotr/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gccwmkdep] Error 127

For some reason it only uses one of the 4 available cores. When compiling paraFoam it used all 4 of them, and it should when its using gcc.

and this message is thrown very often as well

Code:

/bin/sh: /home/piotr/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found
best,

santos August 13, 2009 06:41

Hi,

You will need to install flex to overcome that problem.

To use 4 CPUs you will need the following before starting compilation:
export WM_NCOMPPROCS=4

Regards,
Jose Santos

romant August 13, 2009 07:31

thank you
 
Thanks to all of you, it worked and I finally got everything working here.

openfoam_user September 7, 2009 05:52

Hi Romant,

I have the same problem when compiling OpenFOAM with ./Allwmake.

I often get an error message with wmkdep like the following one :

OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found


How did you solved this problem ?

Thanks for helping me.

Regards,

Stephane.

bian222 September 17, 2009 22:32

Quote:

Originally Posted by openfoam_user (Post 228713)
Hi Romant,

I have the same problem when compiling OpenFOAM with ./Allwmake.

I often get an error message with wmkdep like the following one :

OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found


How did you solved this problem ?

Thanks for helping me.

Regards,

Stephane.

You can try to install flex.

romant September 18, 2009 00:51

Quote:

Originally Posted by openfoam_user (Post 228713)
Hi Romant,

I have the same problem when compiling OpenFOAM with ./Allwmake.

I often get an error message with wmkdep like the following one :

OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found


How did you solved this problem ?

Thanks for helping me.

Regards,

Stephane.

Or installing wmake. There were a couple of dependencies that are not obvious from the beginning. I will try to find out which of those it was and then I might just add it to the wiki at some point.

openfoam_user September 18, 2009 05:44

As suggested I have installed flex and I have been able to compile correctly paraview3.6 and openfoam-1.6.x.

Now OpenFOAM-1.6.x works !

Thanks for the previous posts.

Stephane

MadsR October 28, 2009 10:53

Everything is happily resolved then? Otherwise use the script in my signature. It has been tested on quite a few systems now.

/Mads

romant November 1, 2009 12:31

Hej,

I used part of the script for my normal installation routine now (just reinstalled it on Ubuntu 9.10 today). At least for the 1.6 non dev version.

Maybe you can write this into an article on the openfoam wiki (http://openfoamwiki.net/index.php/Main_Page) than it is not only applicable to the dev installation and basically people see easier what is done.


All times are GMT -4. The time now is 09:39.