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 |
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? |
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 |
Thx. I will give it a try.
|
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?
|
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 |
:) :) :) This it it !!! Thank you very much you solved the problem! Now I can visualize the tutorial :)
|
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 |
Merry christmas and a happy new year to you, too and for all of you!
|
error during stage4
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 :open 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? |
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 |
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! |
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.
|
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?
|
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 |
I get the same result in 1.6-ext.
|
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)?
|
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*> Following deepsterblue's recommendation, the tail of my .bashrc looks like this: Code:
#Use the following line when compiling / recompiling OpenFOAM 1.7.1 I tried running foamInstallationTest and got the following: Code:
Executing /opt/openfoam16x/OpenFOAM-1.6-ext/bin/foamInstallationTest: I tried running /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/AllMake again, and got the following: Code:
This system rpm command: rpm Anyone got any hints? links to relevant threads? Thanks. |
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. |
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: Thanks for the help. |
All times are GMT -4. The time now is 00:04. |