|
[Sponsors] |
October 19, 2009, 03:42 |
|
#61 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
It's odd, it should work on a non-altered Ubuntu. If you are updating stuff (libs) in the middle of a compile-error-recompile loop, you might get into trouble. Maybe you want to remove OpenFOAM-1.6.x completely and redo the git-part and then the ./Allwmake once more to be sure that linking is done correctly ? This might also be a complete waste of time :-/ but if you do not have anything else to try, it might be worth it.
/Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
October 19, 2009, 04:19 |
|
#62 |
Member
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 17 |
kate .bashrc &
|
|
October 19, 2009, 04:47 |
|
#63 | |||
Member
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17 |
Hey guys, i tried mads script and all works fine. I thought everything worked, but if I look into the make.log I see an error-msg in the end. I tried it twice, each try with the same results.
Quote:
Quote:
Code:
sudo apt-get install openssh-server Code:
Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: ubuntu OS: Linux version 2.6.28-15-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/fx/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/fx/OpenFOAM/fx-1.6.x yes no $WM_THIRD_PARTY_DIR /home/fx/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/fx/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 yes yes no $WM_DIR /home/fx/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 ...penFOAM/fx-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 ------------------------------------------------------------------------------- gcc 4.3.3 ...M/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc gzip 1.3.12 /bin/gzip tar 1.20 /bin/tar icoFoam 1.6.x ...penFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. done. so i startet the cavity case with blockMesh and icoFoam, all worked without any problems, but after starting paraView i got the same massage like sarajags and the programm crashed after choosing OpenFoam-Files. Quote:
Sorry for my english, perhaps someone can help me edit: I forgot announcing that i tried, without any changes: cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader Code:
./Allwclean ./Allwmake edit3: by starting paraView i get these massages in the terminal: Code:
fx@ubuntu:~/OpenFOAM/OpenFOAM-1.6.x/tutorials/incompressible/icoFoam$ paraFoam -case cavity created temporary 'cavity.OpenFOAM' unknown chip id 0x9442, can't guess. Read float past end of buffer Read float past end of buffer Read float past end of buffer Read float past end of buffer Code:
Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. terminate called after throwing an instance of 'std::length_error' what(): basic_string::_S_create Aborted fx@ubuntu:~/OpenFOAM/OpenFOAM-1.6.x/tutorials/incompressible/icoFoam$ Last edited by suitup; October 19, 2009 at 05:11. |
||||
October 19, 2009, 05:36 |
|
#64 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Suitup. heavy post you made there, but are you saying that after installing openssh, you got rid of the "make: The target "application" was not updated due to errors." -error??
/Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
October 19, 2009, 07:30 |
|
#65 |
Member
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17 |
hi mad sry yes big post of me
i expressed me bad, i was not able to start foamInstallcheck, so i looked into some forumthreads and red that its able to start after installing openssh-server. so openssh just solved the problem starting foarminstallcheck not more so i ve just the issue that paraview has a bug. I just postet the make.log, hoping that u can compare it to your log if you have the same last commands and to solve the issue, maybe there is a compiling probleme i dont know, i jsut started your script. But foaminstallcheck seems to say that everything is ok. so i wrote as summery that there appear no errors |
|
October 19, 2009, 10:12 |
|
#66 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
This just in :-) I've heard that running
apt-get install cmake may help the "make: The target "application" was not updated due to errors." go away on 64-bit systems. This makes no sense to me as cmake is already distributed with OpenFOAM. My source says that it helped him, but that OpenFOAM remains using the cmake-version delivered together with OpenFOAM-thirdparty, so it should pose no harm to do this. /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
October 19, 2009, 11:56 |
|
#67 |
Member
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17 |
HA!
It worked, Mads! After installing cmake, startet allwmake in the applicationsfolder, it compiled the rest without problems, now i can read the openfoam-cases. 1000 thanks, I still dont believe it |
|
October 19, 2009, 12:15 |
|
#68 |
Member
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17 |
Ok, don't halloo till you're out of the wood!
ParaView can now load the files without any crashes, but is not able to display the case and cannot read the timu-files, it stucks at time 0s. Like written before with foamToVTK and loading the vtk-filecase into ParaView, ParaView is able to load the case and the timing-files and can display everything. I ve no clue. OpenFoam-File VTK-File Should I switch to Ubuntu 32bit and OpenFoam 32bit? Wont there be any issues? Last edited by suitup; October 19, 2009 at 15:18. |
|
October 19, 2009, 13:46 |
|
#69 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Quote:
|
||
October 19, 2009, 17:41 |
OpenFOAM-1.6 on Mac OS X 10.6.1
|
#70 |
Member
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 17 |
Hi,
I just downloaded OpenFOAM-1.6 and ThirdParty-1.6 sources, and applied the v2 patches. I am trying to compile OpenFOAM on Mac OS X 1.6.1, using the default gcc compiler. What I did was modify the OpenFOAM patch and change all the entries for gcc-mp-4.3 to gcc, g++-mp-4.3 to g++ and cpp-mp-4.3 to cpp, since those compiler versions are not part of the standard distribution for 10.6.1. When I try to run ./Allwmake, I get the following errors: Making dependency list for source file hoard-371/src/libhoard.cpp SOURCE=hoard-371/src/libhoard.cpp ; g++ -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DNDEBUG -D_REENTRANT=1 -IlnInclude -I. -I/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64DPOpt/libhoard.o In file included from /usr/include/c++/4.2.1/bits/char_traits.h:45, from /usr/include/c++/4.2.1/string:47, from /Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:52, from lnInclude/ansiwrapper.h:7, from hoard-371/src/libhoard.cpp:92: /usr/include/c++/4.2.1/cstring:80: error: ‘::memcpy’ has not been declared /usr/include/c++/4.2.1/cstring:81: error: ‘::memmove’ has not been declared /usr/include/c++/4.2.1/cstring:82: error: ‘::strcpy’ has not been declared /usr/include/c++/4.2.1/cstring:83: error: ‘::strncpy’ has not been declared Best regards, Elvis |
|
October 19, 2009, 17:46 |
|
#71 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Elvis, I don't see how your post is related to the cookbook. You might be better off reading threads / the wiki for hints on a MacOS installation or creating a new thread.
|
|
October 20, 2009, 03:40 |
|
#72 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
@Akidess:
Quite possible indeed, nice. So maybe I should put an echo "export PATH=$PATH:~/OpenFOAM/ThirdParty-1.6.x/cmake-2.6.4/platforms/linux/bin/ " >> ~/.bashrc into the script? /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
October 20, 2009, 03:42 |
need help
|
#73 |
New Member
dandiwijaya
Join Date: Apr 2009
Posts: 1
Rep Power: 0 |
Hi all
I was just installing openFoam and try installing using the your script .The installation successful, but when I try blockmesh at cases cavity at tutorials there is perform the following message appears: --> FOAM FATAL ERROR: Failed writing polyMesh. From function blockMesh in file blockMeshApp.C at line 346. one more thing, when I try to check the installation after trying the case had the following message appears: Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.3.3 WARNING: Conflicting installations: OpenFOAM settings : /home/dandiwijaya/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux/bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.12 /bin/gzip tar 1.20 /bin/tar Aborted icoFoam 1.6.x .../OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). Review the output for warning messages and consult the installation guide for trouble shooting. done. please help me guys, I'm still newbie in using openFoam thanks |
|
October 20, 2009, 15:15 |
|
#74 |
Member
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17 |
Ok to update you.
I tried installing OF 64bit with openSuse and i works. Best regards. Now I just have to get salome working. |
|
October 20, 2009, 15:50 |
|
#75 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Quote:
I don't think adding the path permanently to bashrc is the best solution. I think it would be better to either add cmake to apt-get (cmake probably doesn't change so much a different version will break it), or just export the path to the OpenFOAM cmake temporarily for the script, as it should be there once the OpenFOAM .bashrc is sourced: "export PATH=$PATH:~/OpenFOAM/ThirdParty-1.6.x/cmake-2.6.4/platforms/linux/bin/ " Also, did you remember to include "set -e" into the script? |
||
October 20, 2009, 15:51 |
|
#76 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Okay...64 bit Ubuntu should also work with the script, according to above posts. I think that Ubuntu is way easier to use (having used Linux since mid '90) but that's probably a matter of taste more than anything else.
Main thing: you got OF running :-) happy foaming! /Mads
__________________
Online free airfoil-mesher for OpenFOAM here Last edited by MadsR; October 21, 2009 at 09:54. |
|
October 21, 2009, 09:54 |
|
#77 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Anton!
Actually I already did add cmake to the apt-get as an easy solution, so I'll just stick to that, as you suggest. Yes, set -e has been included :-) Cheers! Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
October 21, 2009, 23:17 |
|
#78 | |
Member
|
Hi Mads and Akidess. Thanks a lot for the help. Yes, I did update the libs during the compile-error-recompile process. It can be reason. And the error I got when I compile the applications has been settled by apt-get install cmake.
Jin Quote:
|
||
October 25, 2009, 21:06 |
wiki vs. cookbook
|
#79 |
New Member
Kurt Pudniks
Join Date: Sep 2009
Location: Australia
Posts: 6
Rep Power: 17 |
thanks for the cookbook
i have a few questions mostly related to linux knowledge (lack thereof) the wiki has a different git address, this one worked for me, the cookbook one didn't (something about socket error). note the path with 'r' Code:
git clone http://repo.or.cz/r/OpenFOAM-1.6.x.git/ also the wiki has a compiler change from OpenFOAM to System - is this still needed? i did this just in case. finally the wiki says to compile the 3rd party stuff, but i note the OF makefile does this already anyway, i'm now at the end of the cookbook and have run the wmake and it seems to be ok so far using tail make.log, i know it takes hours. thanks again, i wouldn't have built from source without this cookbook. |
|
October 26, 2009, 04:13 |
|
#80 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Kurt.
I am glad the script worked out. I do not understand your git issue and why the r-directory should be added to the url :-) ? With regards to the wiki I can't help, I guess everything should work when the script runs to the end without errors, no? /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
|
|
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 |