|
[Sponsors] |
November 30, 2009, 07:35 |
|
#141 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Alessandro,
yes, you are one of the few that needs to add the '/r/' to the git. I still do not know why this is. I am not sure about your question, but the OpenFOAM-1.6.x folder must reside inside the ~/OpenFOAM folder, if that's what you ask. /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
November 30, 2009, 08:41 |
|
#142 | |||
Member
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17 |
Quote:
Quote:
Quote:
__________________
|
||||
November 30, 2009, 09:27 |
|
#143 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Well you need a cd OpenFOAM, and you get it, in the script :-) just after the apt-get section it does this:
cd ~ mkdir OpenFOAM cd OpenFOAM /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
November 30, 2009, 09:45 |
|
#144 | |
Member
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17 |
Yeeees
Quote:
__________________
|
||
November 30, 2009, 17:37 |
same problem on clean install
|
#145 | |
New Member
Join Date: Nov 2009
Posts: 4
Rep Power: 17 |
Hi,
I have the exact same problem as wenc2 on a clean install on rhel 5.4 x64. I would appreciate any help. at the end of the Allwmake, running foamInstallationTest script produces the same error. Can anyone help with this? Thanks Quote:
|
||
November 30, 2009, 20:19 |
solved
|
#146 |
New Member
Join Date: Nov 2009
Posts: 4
Rep Power: 17 |
Solved the problem. Turns out OpenFOAM compilation requires flex installed, which on RHEL is not the default.
|
|
December 1, 2009, 04:20 |
|
#147 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Alessandro,
>Now what I have to digit in the terminal to start OpenFOAM? I just don't get that :-) Do you mean "what do I have to type in the terminal to start OpenFOAM"? If so, you should start by having a look at the tutorial guide: http://www.opencfd.co.uk/openfoam/do....html#x4-30002 /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
December 1, 2009, 04:42 |
|
#148 | |
Member
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17 |
Quote:
__________________
|
||
December 1, 2009, 16:51 |
|
#149 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Quote:
|
||
December 1, 2009, 17:04 |
|
#150 | |
Member
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17 |
Quote:
__________________
Last edited by 83_Ale_83; December 1, 2009 at 18:43. |
||
December 1, 2009, 17:58 |
|
#151 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
hi,
I adopted this script to compile the 1.6.x, but there is one error that seems to keep repeating itself: /home/kjetil/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `std::ctype<char>::_M_widen_init() const'and then collect2: ld returned 1 exit statusThis is on an almost fresh Ubuntu 9.10 64bit install. Any ideas to what might be wrong? The script runs fine until the point "Compiling OpenFOAM", which is where this error occurs ... |
|
December 1, 2009, 18:33 |
|
#152 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Kjetil, please post "gcc -dumpversion". This looks like it's a regression bug in gcc 4.4. Might be caused by the mixing of libs (libs from 4.4, executables from 4.3.3) that's happening in the 9.10 script. If you know your way around linux, try editing the OpenFOAM .bash_rc and settings.sh to use the system compiler.
|
|
December 1, 2009, 18:43 |
|
#153 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Gcc version is 4.4.1.
Isn't the settings.sh the only file I have to edit to make the Allwmake use system Gcc instead - I mean, you mentioned .bashrc too? This points to the appropriate bashrc in the OpenFOAM 1.6.x directory. But, why do I get this error - wouldn't any Ubuntu 9.10 get this error - the new Gcc is default on all of these, and build-essentials is installed as a part of this script. This confuses me. |
|
December 2, 2009, 05:16 |
|
#154 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Okay, now I get to the point of sourcing the dynamichMesh, before it fails. I have tried with both OpenFOAM and system compiler.
+ wmake libso dynamicMeshThis is then probably the reason for the later error message, that the applications dir can not be updated. Suggestions to how to fix this? |
|
December 3, 2009, 18:57 |
|
#155 |
New Member
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
Hi Mads, I've followed the on-line tutorials to install OpenFOAM 1.6.x on Ubuntu 9.10 Karmic, 64 bit version.
After waiting a couple of hours to complete the Allwmake within the OpenFOAM folder, I tested the installation by executing foamInstallationTest, but I receive 2 critical errors. I have both linked the bashrc and I've created the symbolic link of the ThirdParty1.6 folder. And I've also edited the etc/settings.sh file, by tipying comiplerInstall = System. The 2 critical errors are: Code:
Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: mike-laptop OS: Linux version 2.6.31-15-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/mike/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/mike/OpenFOAM/mike-1.6.x yes no $WM_THIRD_PARTY_DIR /home/mike/OpenFOAM/ThirdParty-1.6.x yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/mike/OpenFOAM/OpenFOAM-1.6.x yes yes yes $FOAM_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes yes $FOAM_SITE_APPBIN ...nFOAM/site/1.6.x/bin/linux64GccDPOpt no no $FOAM_USER_APPBIN ...6.x/applications/bin/linux64GccDPOpt no no $WM_DIR /home/mike/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...nFOAM/site/1.6.x/lib/linux64GccDPOpt no no $FOAM_USER_LIBBIN ...nFOAM/mike-1.6.x/lib/linux64GccDPOpt no no $MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- WARNING: gcc version does not match gcc supplied with this release of OpenFOAM Supplied version: 4.3.3 User version : 4.4.1 Minimum required: 4.3.1 gcc 4.4.1 WARNING: Conflicting installations: OpenFOAM settings : /bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.12 /bin/gzip tar 1.22 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/mike/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 2 critical error(s). Review the output for warning messages and consult the installation guide for trouble shooting. done. Then I tried to run the first example case of incompressible laminar flow in a cavity, prior to installing paraView, since installing it comes later into the readme installation file. When I try to do the execute blockMesh and icoFoam I receive for both the message "command not found". How can I move on from here? Thanks in advance! |
|
December 4, 2009, 03:49 |
|
#156 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Future Science.
Are you sure that Allwmake compiles without errors? It's really wierd. As I recall, what I did was to 1) get a new computer, 2) install Ubuntu 9.10 64-bit version and then 3) install OpenFOAM with my script. As it didn't work out entirely, I applied the links that Bruno pointed out above - and now it's working. I know this helps you like a spoon when you need a fork (meaning it's not helpful to you :-/ ). The more statements of "this is working" we get though, should prove that the script is working. We have a lot of such validation of the first-gen scripts (for 8.04) but not so much for 9.10. So it might be my installation that's broke (and hence works). Maybe other foamers could confirm installation (or give errors) with the script on 9.10-64? Apparently installation of OpenFOAM under Linux is quite a fragile process, and small changes can have catastrophic consequences. In your case, we still have to find out what's wrong (and change the script accordingly). I am not aware of that "comiplerInstall = System." you are talking about? Are you trying to use the system compiler instead of the one bundled with Ubuntu - if so, why? /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
December 4, 2009, 04:51 |
|
#157 |
Member
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17 |
I have had the same problem of you Future Science.
To try to resolve it I have install again ubuntu 9.10 x64 and then unistall gcc from the packet manager, finally I have use MadsR's script to install OpenFOAM. Now all works fine, the only problem i have is that parafoam doesn't open file with .openFOAM extension, to solve this issue, I use the command foamToVTK and then use paraview to see my simulation. Hope could be usefull Alessandro
__________________
|
|
December 4, 2009, 04:57 |
|
#158 |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
Hello Mads
I am trying to modify your script so it could be used on OpenSUSE. I hope you could explain to me this line ./Allwmake >make.log 2>&1 the first argument is clear, you redirect the output of Allwmake to the make.log but what the second argument (2>&1) is for? In fact when I copied this line as it is, it resulted in some kind of a disaster to my OpenSUSE , so please explain thanks and good luck to all ------------------------------ Open Source for ever --------------------------- |
|
December 4, 2009, 06:47 |
|
#159 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Ahmed.
Nice - please post the modifications needed. If ./Allwmake >make.log 2>&1 results in a disaster on an OpenSuse system it makes good reason for changing to Ubuntu :-) it's a completely valid Linux statement so I am a bit puzzled about any problems. What it does is to redirect the "standard output" and "standard error"-streams to the make.log file. Google is your friend here. @Alessandro is it really needed to uninstall gcc? Seems drastic. /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
December 4, 2009, 07:13 |
|
#160 | |
Member
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17 |
Quote:
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
install OpenFoam 1.6 by building source: how? | niudie | OpenFOAM Installation | 13 | April 26, 2011 01:48 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
install openfoam 1.6 on opensuse 11.0 | andresbh | OpenFOAM Installation | 8 | September 30, 2009 01:48 |
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found | fossy | OpenFOAM Installation | 1 | August 28, 2009 05:06 |
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial | potac | OpenFOAM Installation | 3 | August 27, 2009 10:04 |