|
[Sponsors] |
December 21, 2010, 12:53 |
|
#41 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
That part's actually pretty simple. The openSUSE guys have packaged gcc beautifully, such that several versions can co-exist. Find a repo that contains gcc-4.4 (if it's not installed already), and modify the sym-link in /usr/bin to point to the appropriate version:
/usr/bin/gcc -> /usr/bin/gcc-4.4 /usr/bin/cpp -> /usr/bin/cpp-4.4 /usr/bin/g++ -> /usr/bin/g++-4.4 |
|
December 21, 2010, 14:13 |
|
#42 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 |
Sorry, to bother u again. I don t know how to do it in Linux
How can I switch between those compiler. is it a softlink? How do I change it? |
|
December 21, 2010, 14:40 |
|
#43 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
As root, delete the /usr/bin/(gcc/cpp/g++) links, and create a symbolic link using:
ln -s [target] [linkname] As an example: ln -s /usr/bin/gcc-4.4 /usr/bin/gcc |
|
December 22, 2010, 08:07 |
|
#44 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 |
Thx. I will give it a try.
|
|
December 22, 2010, 17:40 |
|
#45 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 |
Indeed. The error message after closing paraview is gone. Nevertheless, still not able to see the cavity tutorial case. Can anyone check my log file?
|
|
December 22, 2010, 18:22 |
|
#46 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Hi Peter!
I had a similar problem with paraview. Have you tried setting LC_ALL=C option? I think this is an issue related with the system language. You can search the forum for an appropriate explanation. To set the value just type in the terminal Code:
export LC_ALL=C Regards Pablo |
|
December 23, 2010, 08:43 |
|
#47 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 |
This it it !!! Thank you very much you solved the problem! Now I can visualize the tutorial
|
|
December 23, 2010, 09:10 |
|
#48 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Great! Now you can show the cavity case in Christmas Evening!
I am happy I could help you! Merry Christmas and a Happy New Year to everybody!!!! Pablo |
|
December 23, 2010, 14:50 |
|
#49 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 |
Merry christmas and a happy new year to you, too and for all of you!
|
|
January 4, 2011, 04:58 |
error during stage4
|
#50 | |
New Member
yanjing
Join Date: Dec 2010
Posts: 5
Rep Power: 15 |
Quote:
i also met error during stage4 as following: "CMake Error at Applications/Paraview/cmake_install.cmake:70(FILE); fiel INSTALL can't make directory "/home/micheal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/Paraview-3.8.1-lunuxGccDP0pt.i386/home/micheal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linuxGccDP0pt/lib/paraview-3.8/paraview/testing“ Not a directory Call stack (most recent call first) Application/cmake_install.cmake:37(INCLUDE) cmake_install.cmake.101(INCLUDE) make:***{install Error 1 error:bad exit from /home/michael/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.ZEbaY5(%install) RPM build error: bad exit status from /home/michael/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.ZEbaY5(%install) Installing package paraview-3.8.1 error pen of /home/michael/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/Paraview-3.8.1-linuxGccDP0pt.i386.rpm :no such file or directory how could i work this out? |
||
January 4, 2011, 08:36 |
|
#51 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Hello Yanjing,
This is a strange issue. It seems there is a problem when the script tries to create a directory. What is your linux distro? Do you have write permission in that directory? Regards Pablo |
|
January 4, 2011, 21:41 |
|
#52 |
New Member
yanjing
Join Date: Dec 2010
Posts: 5
Rep Power: 15 |
yes,i think so,i can creat and write files in the openfoam installing folder.
i check my system and found Qt(version 3.6.2) and paraview (version 3.6) has already been installed ,is it enough for openfoam-1.6-ext,do i still need to run stage4 if i can't solve the error happened during stage 4 process? and as i said,i did ignore stage 4 and compile openfoam,but i got no information to show me whether openfoam compiling is finished or not and it just went back to command line ,see below: " ......... -ldecompositionMethods-lmeshTools -lmeshTools -lfiniteVolume -lifinite Area -llagrangian -lfaceDecompFiniteElement -lfaceDecompositionMotionSolver -lOpenFOAM -ldl -lm -o /home/yanjing/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linuxGccDP0pt/decompsePar yanijng@yanjing:~/OpenFOAM/OpenFOAM-1.6-ext/ " and i checked installation by command "foamInstallationTest",it shows me a critical error: " WARNING:gcc version doesn't match gcc supplied with this release of OPenFOAM : supplied version:4.3.3 User version:4.4.3 MInimu required :4.3.1 gcc 4.4.3 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 1.6-ext ..openfoam-1.6-ext/application/bi n/linuxGccDP0pt/icofoam summary base configuration ok the foam installation contains 1 ciritical error(s ). review the output for warning message and consult the installation guide for trouble shooting. done. " can anyone give me any hint?thank you! |
|
January 4, 2011, 22:55 |
|
#53 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
This problem has been reported before. I think the "critical error" reported by foamInstallationTest is only due to the fact that the environment variable WM_COMPILER_DIR was never set. See line 514 or so of foamInstallationTest where reportExecutable is called for gcc and note that in etc/settings.* that WM_COMPILER_DIR is only set if the choice for compilerInstall is OpenFOAM, not System. So I would try setting WM_COMPILER_DIR to /usr and then try your test again.
__________________
David A. Boger |
|
January 6, 2011, 22:22 |
|
#54 |
New Member
yanjing
Join Date: Dec 2010
Posts: 5
Rep Power: 15 |
thanks. i have ignored stage 4 and compiled openfoam.and i run buoyantBussinesqFoam,it did run ,but just haven't get a right results( i think maybe i didn't set th e right boundary ).and i also test my paraview(ver sion 3.6),it also works. but later my linux system (ubuntu 10.04) came up an problem: "starting commo n unix printing system:cupsd",i can't get in linux anymore! do anyone have similar problem bef ore?
|
|
January 7, 2011, 13:37 |
|
#55 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 |
HI!
Can someone of you test the aachen bomb tutorial (dieselFoam) provided by OF 1.6-ext.I am not sure if I have OF-16-ext succesfully compiled. I crashes after a while with the error janaf tmperature out of range. I mean the tut is supposed to run. I would really appreciate if someone of you could tell me if you are able to run this tut to the end. i am struggling with thisproblem for while now. Thannk you. Peter |
|
January 7, 2011, 13:50 |
|
#56 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
I get the same result in 1.6-ext.
__________________
David A. Boger |
|
January 7, 2011, 14:13 |
|
#57 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 |
do you think it is a bug or the boundary conditions and solver settings havent been adapted to that tutorial of the new version (OF 1.6-ext)?
|
|
May 24, 2011, 19:19 |
|
#58 |
Member
Sarah
Join Date: Apr 2011
Location: Eastern US
Posts: 31
Rep Power: 15 |
So it was pointed out to me that I'd accidentally threadjacked another thread
with the problems I was encountering during installation of OpenFOAM-1.6-ext. Brief summary: I've used git to download it without error, but running AllMake from OpenFOAM-1.6-ext/ThirdParty, but there seem to be some missing files. Focusing on the lines just before and at the first few error messages: Code:
<*SNIP*> Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.7) libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GLIBC_2.0) libm.so.6 libncurses.so.5 libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.14) libstdc++.so.6(GLIBCXX_3.4.5) Checking for unpackaged file(s): /usr/lib/rpm/check-files /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/cmake-2.8.3-linuxGccDPOpt.i386 Wrote: /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i586/cmake-2.8.3-linuxGccDPOpt.i586.rpm Executing(%clean): /bin/sh -e /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.C13m4K + umask 022 + cd /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD + cd cmake-2.8.3 + rm -rf /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/cmake-2.8.3-linuxGccDPOpt.i386 + rm -rf filelists error: failed to stat /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/cmake-2.8.3: No such file or directory <*SNIP*> checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking vtf3.h usability... no checking vtf3.h presence... no checking for vtf3.h... no configure: error: no vtf3.h found; check path for VTF3 package first... <*SNIP*> checking for platform... linux configure: selected timer: TIMER_CYCLE_COUNTER checking for BSD- or MS-compatible name lister (nm)... (cached) /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... (cached) BSD nm checking for compiler instrumentation... gnu checking if /usr/bin/nm -B demangle option --demangle works... yes checking if /usr/bin/nm -B line numbers option --line-numbers works... yes checking BPatch.h usability... no checking BPatch.h presence... no checking for BPatch.h... no configure: error: no BPatch.h found; check path for Dyninst package first... <*SNIP*> Following deepsterblue's recommendation, the tail of my .bashrc looks like this: Code:
#Use the following line when compiling / recompiling OpenFOAM 1.7.1 #source /opt/openfoam171/etc/bashrc #Use the following line when compiling / recompiling OpenFOAM 1.6-ext source /opt/openfoam16x/OpenFOAM-1.6-ext/etc/bashrc I tried running foamInstallationTest and got the following: Code:
Executing /opt/openfoam16x/OpenFOAM-1.6-ext/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: johnny5 OS: Linux version 2.6.34.8-0.2-desktop ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /opt/openfoam16x yes yes $WM_PROJECT_USER_DIR /home/sarah/OpenFOAM/sarah-1.6-ext yes no $WM_THIRD_PARTY_DIR ...nfoam16x/OpenFOAM-1.6-ext/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /opt/openfoam16x/OpenFOAM-1.6-ext yes yes yes $FOAM_APPBIN ...6-ext/applications/bin/linuxGccDPOpt no yes $FOAM_SITE_APPBIN ...am16x/site/1.6-ext/bin/linuxGccDPOpt yes yes no $FOAM_USER_APPBIN ...6-ext/applications/bin/linuxGccDPOpt yes yes no $WM_DIR /opt/openfoam16x/OpenFOAM-1.6-ext/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 ...x/OpenFOAM-1.6-ext/lib/linuxGccDPOpt no yes $FOAM_SITE_LIBBIN ...am16x/site/1.6-ext/lib/linuxGccDPOpt yes yes no $FOAM_USER_LIBBIN ...FOAM/sarah-1.6-ext/lib/linuxGccDPOpt yes yes no $MPI_ARCH_PATH --------- env variable not set --------- 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.5.0 Minimum required: 4.3.1 gcc 4.5.0 WARNING: Conflicting installations: OpenFOAM settings : /bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.13 /usr/bin/gzip tar 1.23 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /opt/openfoam16x/OpenFOAM-1.6-ext/applications/bin/linuxGccDPOpt/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. I tried running /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/AllMake again, and got the following: Code:
This system rpm command: rpm ======================================== Starting ThirdParty Allwmake ======================================== This system rpm command: rpm ======================================== Starting ThirdParty AllMake: Stage1 ======================================== Updating the ThirdParty environment variables before building package cmake-2.8.3 Package cmake-2.8.3 is already installed Done installing package cmake-2.8.3 ======================================== Done ThirdParty AllMake: Stage1 ======================================== This system rpm command: rpm ======================================== Starting ThirdParty AllMake: Stage2 ======================================== Updating the ThirdParty environment variables before building package openmpi-1.4.3 Package openmpi-1.4.3 is already installed Done installing package openmpi-1.4.3 ======================================== Done ThirdParty AllMake: Stage2 ======================================== This system rpm command: rpm ======================================== Starting ThirdParty AllMake: Stage3 ======================================== Updating the ThirdParty environment variables before building package metis-5.0pre2 Package metis-5.0pre2 is already installed Done installing package metis-5.0pre2 Updating the ThirdParty environment variables before building package ParMGridGen-1.0 Package ParMGridGen-1.0 is already installed Done installing package ParMGridGen-1.0 Updating the ThirdParty environment variables before building package libccmio-2.6.1 Package libccmio-2.6.1 is already installed Done installing package libccmio-2.6.1 Updating the ThirdParty environment variables before building package mesquite-2.1.2 Package mesquite-2.1.2 is already installed Done installing package mesquite-2.1.2 Updating the ThirdParty environment variables before building package scotch-5.1.10b Package scotch-5.1.10b is already installed Done installing package scotch-5.1.10b Updating the ThirdParty environment variables before building package ParMetis-3.1.1 Package ParMetis-3.1.1 is already installed Done installing package ParMetis-3.1.1 ======================================== Done ThirdParty AllMake: Stage3 ======================================== This system rpm command: rpm ======================================== Starting ThirdParty AllMake: Stage4 ======================================== Using system installed QT WARNING: WARNING: Skipping the installation of ParaView-3.8.1. WARNING: Please make sure the QT_BIN_DIR environment variable properly WARNING: initialized in the file prefs.sh or prefs.csh WARNING: The command $QT_BIN_DIR/qmake needs to be valid WARNING: ======================================== Done ThirdParty AllMake: Stage4 ======================================== ======================================== Done ThirdParty Allwmake ======================================== Anyone got any hints? links to relevant threads? Thanks. |
|
May 24, 2011, 19:33 |
|
#59 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
Sarah,
It looks like your base-configuration is okay.. What's the problem? Looks like all you need to do is an ./Allwmake in the OpenFOAM-1.6-ext directory. |
|
May 26, 2011, 11:19 |
|
#60 |
Member
Sarah
Join Date: Apr 2011
Location: Eastern US
Posts: 31
Rep Power: 15 |
erm.... hmmm... that's odd.
I didn't realize there were two separate makefiles to run. Thanks for pointing that out. (Yes, it's mentioned in one of the README's, but what with the trouble I'd had before and the error messages cited about, I'd overlooked it.) Anywho, running Allwmake as you suggest works fine... and afterwards I can run icoDyMFoam, which had been one of my tests, given our previous conversation. There aren't any errors from Allwmake, although foamInstallationTest does give one "critical error": Code:
Executing /opt/openfoam16x/OpenFOAM-1.6-ext/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: johnny5 OS: Linux version 2.6.34.8-0.2-desktop ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /opt/openfoam16x yes yes $WM_PROJECT_USER_DIR /home/sarah/OpenFOAM/sarah-1.6-ext yes no $WM_THIRD_PARTY_DIR ...nfoam16x/OpenFOAM-1.6-ext/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /opt/openfoam16x/OpenFOAM-1.6-ext yes yes yes $FOAM_APPBIN ...6-ext/applications/bin/linuxGccDPOpt yes yes yes $FOAM_SITE_APPBIN ...am16x/site/1.6-ext/bin/linuxGccDPOpt yes yes no $FOAM_USER_APPBIN ...6-ext/applications/bin/linuxGccDPOpt yes yes no $WM_DIR /opt/openfoam16x/OpenFOAM-1.6-ext/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 ...x/OpenFOAM-1.6-ext/lib/linuxGccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...am16x/site/1.6-ext/lib/linuxGccDPOpt yes yes no $FOAM_USER_LIBBIN ...FOAM/sarah-1.6-ext/lib/linuxGccDPOpt yes yes no $MPI_ARCH_PATH ...penmpi-1.4.3/platforms/linuxGccDPOpt 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.5.0 Minimum required: 4.3.1 gcc 4.5.0 WARNING: Conflicting installations: OpenFOAM settings : /bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.13 /usr/bin/gzip tar 1.23 /bin/tar icoFoam 1.6-ext ...penFOAM-1.6-ext/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. Thanks for the help. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
kOmegaSST in openfoam 1.6 | Gearb0x | OpenFOAM | 2 | March 3, 2010 07:02 |
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 7 | January 19, 2010 16:39 |
OpenFOAM 1.6 package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 36 | September 2, 2009 13:46 |
OpenFOAM Version 1.6 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 27, 2009 18:55 |