CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

git installation of 1.6

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 12, 2009, 05:58
Default git installation of 1.6
  #1
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
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?
romant is offline   Reply With Quote

Old   August 12, 2009, 14:51
Default
  #2
Member
 
Ulrich Heck
Join Date: Mar 2009
Location: Krefeld, Germany
Posts: 37
Rep Power: 8
ulli is on a distinguished road
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
ulli is offline   Reply With Quote

Old   August 13, 2009, 02:23
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
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,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   August 13, 2009, 03:16
Default not working anymore
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
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?
romant is offline   Reply With Quote

Old   August 13, 2009, 03:24
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
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.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   August 13, 2009, 03:38
Default did that
  #6
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
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?
romant is offline   Reply With Quote

Old   August 13, 2009, 03:46
Default
  #7
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
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,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   August 13, 2009, 03:50
Default
  #8
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
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.
__________________
~roman
romant is offline   Reply With Quote

Old   August 13, 2009, 03:56
Default
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ulli View Post
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)
gschaider is offline   Reply With Quote

Old   August 13, 2009, 04:25
Default softlink
  #10
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
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
__________________
~roman
romant is offline   Reply With Quote

Old   August 13, 2009, 05:59
Default Error message at the beginning of the compile
  #11
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
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,
__________________
~roman
romant is offline   Reply With Quote

Old   August 13, 2009, 06:41
Default
  #12
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 213
Rep Power: 9
santos is on a distinguished road
Send a message via Skype™ to santos
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
santos is offline   Reply With Quote

Old   August 13, 2009, 07:31
Default thank you
  #13
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
Thanks to all of you, it worked and I finally got everything working here.
__________________
~roman
romant is offline   Reply With Quote

Old   September 7, 2009, 05:52
Default
  #14
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
openfoam_user is on a distinguished road
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.
openfoam_user is offline   Reply With Quote

Old   September 17, 2009, 22:32
Default
  #15
New Member
 
zeni
Join Date: Sep 2009
Posts: 2
Rep Power: 0
bian222 is on a distinguished road
Quote:
Originally Posted by openfoam_user View Post
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.
bian222 is offline   Reply With Quote

Old   September 18, 2009, 00:51
Default
  #16
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
Quote:
Originally Posted by openfoam_user View Post
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.
__________________
~roman
romant is offline   Reply With Quote

Old   September 18, 2009, 05:44
Default
  #17
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
openfoam_user is on a distinguished road
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
openfoam_user is offline   Reply With Quote

Old   October 28, 2009, 10:53
Default
  #18
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 175
Rep Power: 9
MadsR is on a distinguished road
Everything is happily resolved then? Otherwise use the script in my signature. It has been tested on quite a few systems now.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 1, 2009, 12:31
Thumbs up
  #19
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
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.
__________________
~roman
romant is offline   Reply With Quote

Reply

Tags
git, installation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Installation Problem with GIT sega OpenFOAM Installation 2 May 8, 2009 08:46
Installation problems indy OpenFOAM Installation 7 April 3, 2009 09:40
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Installation problems shellbell1999 OpenFOAM Installation 9 April 6, 2006 13:29


All times are GMT -4. The time now is 16:30.