|
[Sponsors] |
July 29, 2008, 06:48 |
Hello,
I am installing Open
|
#1 |
Senior Member
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17 |
Hello,
I am installing OpenFOAM 1.5 on an Ubuntu machine (8.04). foamInstallationTest gave me the following message, where everything seems ok: http://www.pastebin.org/58125 However, when I try to recompile icoFoam as a test, I get the following error: Making dependency list for source file icoFoam.C SOURCE=icoFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/OF/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OF/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/opt/OF/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/icoFoam.o /opt/OF/ThirdParty/gcc-4.3.1/platforms/linux/bin/../libexec/gcc/i686-pc-linux-gn u/4.3.1/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory make: *** [Make/linuxGccDPOpt/icoFoam.o] Error 1 It happens that, regardless of the context, any time I launch /opt/OF/ThirdParty/gcc-4.3.1/platforms/linux/bin/../libexec/gcc/i686-pc-linux-gn u/4.3.1/cc1plus even without arguments, I get the same errors. So, if anybody as an idea on this, or has successfully installed Ubuntu on Ubuntu 8.04, I would be pleased to hear from you. |
|
July 29, 2008, 06:55 |
You need to install mpfr.
|
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
You need to install mpfr.
|
|
July 29, 2008, 09:26 |
Which I will do, thank you.
|
#3 |
Senior Member
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17 |
Which I will do, thank you.
I found it strange as I thought OpenFOAM was quite self-contained, and it is not written in the README to install it. |
|
July 29, 2008, 09:52 |
The problem is that linux is i
|
#4 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
The problem is that linux is inherently not self-contained.
The issue you are having is with gcc-4.3.1 not OpenFOAM-1.5. Unfortunately, if you use gcc-4.2.1 (which doesn't use mpfr) then the paraview/Qt stack has problems. I am trying to build an entirely self-contained stack. It is proving difficult. Components on my list so far: binutils mpfr gmp gcc-4.3.1 zlib flex++ qt-4.3.5 cmake ParaView-3.3 and a few other bits and bobs. As you can see, quite a list. If I succeed (i.e. I don't throw up my hands in despair along the way), I will post the build script and some instructions. If anyone else manages it earlier, please let me know. |
|
July 29, 2008, 14:45 |
hello
hope you're doing gr
|
#5 |
Member
victor
Join Date: Mar 2009
Location: mexico city, MX
Posts: 50
Rep Power: 17 |
hello
hope you're doing great. For if it could be of aid, I installed some of the packages above for 64 bits, on SLED 10 sp1 first gmp with these flags in the configure: CC="cc" CFLAGS="-m64 -O2 -fomit-frame-pointer -mtune=k8 -march=k8" ABI=64 and installed it. then mpfr, forcing the path of gmp-build directory, with the same flags in the configure as for gmp: -with-gmp-build=/home/foam15/OpenFOAM/extra/gmp-4.2.2 CC="cc" CFLAGS="-m64 -O2 -fomit-frame-pointer -mtune=k8 -march=k8" and installed it. then gcc-4.3.1, but this time without making a subdirectory for the obj, just a separate one in the same path, and build from it. In my case i have a directory "gnu-cc" in which i extract the .tar.gz. make a "gcc-build" directory and from it i execute the configure, which in in my case was: ../gcc-4.3.1/configure --prefix=$HOME/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64 --exec-prefix=$HOME/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64 --enable-languages=c,c++ --enable-shared --disable-multilib --with-gmp=/usr/local --with-mpfr=/usr/local and installed it. once installed qt-4.3.5 i put it in the PATH and LD_LIBRARY_PATH, in the .bashrc then ran buildParaview-cvs. best V |
|
August 13, 2008, 12:27 |
Dear FOAMers,
I am having d
|
#6 |
Member
Kevin Maki
Join Date: Mar 2009
Location: Ann Arbor, MI, USA
Posts: 43
Rep Power: 17 |
Dear FOAMers,
I am having difficulty compiling gcc 4.3.1 on my redhat linux machine. I have built and installed gmp and mpfr as per the instructions by Victor, but the gmake bootstrap fails with gcc. The configure command that I am using is: ../gcc-4.3.1/configure --prefix=/k/kjmaki/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64 --exec-prefix=/k/kjmaki/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64 --enable-languages=c,c++ --enable-shared --disable-multilib --with-gmp=/k/kjmaki/OpenFOAM/ThirdParty/gmp-4.2.3 --with-mpfr=/k/kjmaki/OpenFOAM/ThirdParty/mpfr-2.3.1 And the failure on the gmake bootstrap reads: checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Where a snippet of the config.log reads: conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me' configure:3636: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif Does anyone have any advice? THANKS!!! Kevin |
|
August 15, 2008, 04:34 |
Hi Kevin,
I had the same erro
|
#7 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Hi Kevin,
I had the same error on a Suse machine. I gave up and used OF 4.2.2 for compiling OpenFOAM 1.5 from sources, as I could not even use the precompiled version (neither gcc 4.31 nor OF). I only had to modify a couple of lines of code. You should easily come up with them when the compilation fails! Francesco |
|
August 15, 2008, 09:42 |
Hello Francesco,
Thanks for
|
#8 |
Member
Kevin Maki
Join Date: Mar 2009
Location: Ann Arbor, MI, USA
Posts: 43
Rep Power: 17 |
Hello Francesco,
Thanks for your reply. I was able to build gcc-4.3.1, by installing gmp and mpfr. It was necessary for me to update my LD_LIBRARY_PATH to find those libraries. With that done, I have build 1.5 from source and life is getting better :-), on to ParaView..... Kevin |
|
August 19, 2008, 06:52 |
Hi Kevin,
If this is of int
|
#9 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Hi Kevin,
If this is of interest, I've got paraview-2.4.4 working with OpenFOAM-1.5. Presumably, this fixes your post-processing problem on a Mac, right. Please let me know if you want details, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
August 28, 2008, 23:35 |
I am having problems installin
|
#10 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
I am having problems installing paraview 3.3 in OpenFOam 1.5. It looks for libmpfr.so.1. Also mpfr is required. However I dont see a mpfr for Suse 10.0 (32 bit machine)on line. Does anyone have suggestions or willing to share a build they may have created themselves for installing Paraview?
Alternately, can anyone tell me if upgrading to Suse 11 will make the uphill battle of finding missing files go away? Thanks Musa |
|
August 29, 2008, 03:31 |
Hello Mussaddeque,
on Suse
|
#11 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hello Mussaddeque,
on Suse 11 everything worked fine for me. Only paraFoam is a little unstable, but with foamToVTK no problem. With the reader of Takuya (http://www.cfd-online.com/OpenFOAM_D...0478#POST19470) et works nicely. So I had to rebuild only paraview taking Niklas' post into account. On SLES 10 SP2 it was a bit more complicated but following Victors suggestions from above it is running. I built GMP, MPFR, GCC, Qt-3.5, paraview. Thank's Victor! Regards Markus |
|
August 29, 2008, 09:35 |
what is foamToVTK?
|
#12 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
what is foamToVTK?
|
|
August 29, 2008, 12:17 |
Hello Markus, Musaddeque and a
|
#13 |
Member
victor
Join Date: Mar 2009
Location: mexico city, MX
Posts: 50
Rep Power: 17 |
Hello Markus, Musaddeque and all the OF community
@Musa: there's a thread in which Mark Olesen states the need to have MPFR and GMP, since they are required for the last version of the gnu-c compiler, gcc-4.3.1. check out the gnu-c website. So, in SUSE 10 I think they are not included. Since OpenSUSE 11 has QT 4.4, I think you have to install Qt-4.3.5 in order to have a working PAraview. @Markus: Nice to hear you have paraview working. You're welcome.. best and enjoy your weekend V |
|
August 29, 2008, 13:45 |
Does anyone know if Suse 11 ha
|
#14 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Does anyone know if Suse 11 has MPFR and GMP? I have Suse 10.0. I dont want to have to install Suse 11 unless I absoulutely have to.
|
|
August 29, 2008, 14:45 |
please note, only gcc 4.3.1 ne
|
#15 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
please note, only gcc 4.3.1 needs mpfr. However, OpenFOAM-1.5 compiles just fine using the gcc shipped with the previous version of OpenFOAM. (4.2.2 I think?)
|
|
August 29, 2008, 16:33 |
But the problem lies in trying
|
#16 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
But the problem lies in trying to install Paraview 3.3 on suse 10. It requries libmpfr which in turn requires mpfr and gmp. Please refer to post by victor:
http://www.cfd-online.com/cgi-bin/Op...6185#POST26185 Please correct me if I am wrong. Thanks Musa |
|
August 30, 2008, 13:20 |
Hi Victor,
just one thing I
|
#17 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hi Victor,
just one thing I contradict: I work with Suse 11 and the standard Qt-4.4 coming with it. As mentioned before I compiled it with Takuya's reader and applied the change mentioned by Niklas to make Qt-4.4 work. So OpenSuse 11 makes things a lot easier, I think. Regards Markus |
|
September 1, 2008, 16:21 |
Hello
@Markus: you're righ
|
#18 |
Member
victor
Join Date: Mar 2009
Location: mexico city, MX
Posts: 50
Rep Power: 17 |
Hello
@Markus: you're right. @Musa:I installed gcc-4.3.5, in order to compile Paraview under SLED 10. Didn't consider the hint of Eugene best V |
|
September 2, 2008, 23:22 |
Arright gentlemen, now I am ev
|
#19 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Arright gentlemen, now I am even more confused. gcc-4.3.5? I went to the GNU-C site and the latest download is 4.3.2. Does anyone have the link where I can download gcc-4.3.5 from?
Thanks. This is refernce to Victor's post at the following link: http://www.cfd-online.com/cgi-bin/Op...6291#POST26291 |
|
September 3, 2008, 19:28 |
Dear Musa
My sincere apolog
|
#20 |
Member
victor
Join Date: Mar 2009
Location: mexico city, MX
Posts: 50
Rep Power: 17 |
Dear Musa
My sincere apologies. I did want to mean gcc-4.3.1. I mixed QT version with that of gcc while writing the post. best V |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
injection not found in domain error | San | FLUENT | 3 | March 17, 2009 23:24 |
Error found in stress tutorial | mike_jaworski | OpenFOAM Running, Solving & CFD | 0 | September 23, 2007 03:34 |
Error: Finite angle gap could not be found | Richard | CFX | 0 | December 8, 2005 09:39 |
Boundaries not found error | Simone | Siemens | 2 | June 13, 2005 08:36 |
No warning or error messages found. | Atit Koonsrisuk | CFX | 5 | January 14, 2003 12:06 |