CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Compiling Problem on Debian

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2008, 10:47
Default Hi, well, i just got the Op
  #1
New Member
 
Bernd Stöver
Join Date: Mar 2009
Posts: 16
Rep Power: 17
besto is on a distinguished road
Hi,

well, i just got the OpenFOAM 1.5 and tried to compile. To do so, i got also the ThirdPartylinuxGcc.gtgz packet (so the binaries). Anyway, i did get the .bashrc modified and ran ./Allmake.

Now after some time i found out, it didn't find the flex++. Since i didn't feel like editing the make script, i simply installed it from the debian distribution (i use debian testing = lenny:
uname -a
Linux client4 2.6.24-1-686 #1 SMP Thu May 8 02:16:39 UTC 2008 i686 GNU/Linux)
Anyway compiling does produce a lot of lines so it was hard to get the first error messages. So i did
./Allmake>output.txt
This way only the error messages went to the screen. And here is what i got:

./Allwmake >output.txt
+ cd .
+ cd wmake/src
+ make
+ cd /home/bs/OpenFOAM/ThirdParty
+ ./Allwmake
./Allwmake: line 10: ./Allwmake: Datei oder Verzeichnis nicht gefunden (this is file not found in German)
+ cd src
+ ./Allwmake
+ cd OpenFOAM
+ wmakeLnInclude .
+ cd Pstream
+ ./Allwmake
+ wmake libso dummy
+ case "$WM_MPLIB" in
+ export WM_OPTIONS=linuxGccDPOptOPENMPI
+ WM_OPTIONS=linuxGccDPOptOPENMPI
+ set +x
+ wmake libso mpi
+ wmake libo OSspecific/Unix
+ wmake libso OpenFOAM
+ wmake libso lagrangian/basic
+ wmake libso triSurface
+ wmake libso edgeMesh
+ wmake libso meshTools
+ wmake libso finiteVolume
+ cd decompositionAgglomeration
+ ./Allwmake
+ wmake libso decompositionMethods
metisDecomp/metisDecomp.C:37:22: error: metis.h: Datei oder Verzeichnis nicht gefunden (which means file not found in German)
metisDecomp/metisDecomp.C: In member function 'Foam::label Foam::metisDecomp::decompose(const Foam::List<int>&, const Foam::List<int>&, Foam::List<int>&)':
metisDecomp/metisDecomp.C:268: error: 'METIS_WPartGraphRecursive' was not declared in this scope
metisDecomp/metisDecomp.C:285: error: 'METIS_PartGraphRecursive' was not declared in this scope
metisDecomp/metisDecomp.C:306: error: 'METIS_WPartGraphKway' was not declared in this scope
metisDecomp/metisDecomp.C:323: error: 'METIS_PartGraphKway' was not declared in this scope
make: *** [Make/linuxGccDPOpt/metisDecomp.o] Fehler 1
+ '[' -d /home/bs/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/openmpi-1.2.6 ']'
+ wmake libso parMetisDecomp
parMetisDecomp.C:41:25: error: parmetis.h: Datei oder Verzeichnis nicht gefunden

and so on.
Anybody has an idea of what's missing?
besto is offline   Reply With Quote

Old   July 17, 2008, 11:03
Default Since you have the machine in
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Since you have the machine in front of you, you're probably in a better position to see why it can't find the file, but maybe it's a permissions problem, since the chdir to "/home/bs/OpenFOAM/ThirdParty" was successful and the Allwmake script certainly exists in the tarball:
$ tar -tzf ThirdParty.General.gtgz | grep Allwmake

Did you unpack it in the correct directory?
Maybe you have ThirdParty/ThirdParty or something.
Or did you just unpack the binaries?
olesen is offline   Reply With Quote

Old   July 17, 2008, 17:49
Default O.k. this doesn't work since i
  #3
New Member
 
Bernd Stöver
Join Date: Mar 2009
Posts: 16
Rep Power: 17
besto is on a distinguished road
O.k. this doesn't work since i used the binary package ThirdPartylinuxGcc.gtgz and there is no Allwmake inside as it is already compiled. Now this should not be a problen should it?
besto is offline   Reply With Quote

Old   July 18, 2008, 03:44
Default Yes it will definitely be a pr
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Yes it will definitely be a problem. As your post showed, the other libraries have no information about what can be found in these pre-compiled ThirdParty libraries.

It's really no different that trying to compile any C/C++ program without having /usr/include header files!
olesen is offline   Reply With Quote

Old   July 21, 2008, 10:46
Default O.k. strange, but it is this w
  #5
New Member
 
Bernd Stöver
Join Date: Mar 2009
Posts: 16
Rep Power: 17
besto is on a distinguished road
O.k. strange, but it is this way. After installing some additional libraries it all worked fine. Thanx!
besto is offline   Reply With Quote

Old   July 26, 2008, 11:18
Default Bernhard, I'm running Debian E
  #6
New Member
 
Gene
Join Date: Mar 2009
Location: USA
Posts: 4
Rep Power: 17
gbrother is on a distinguished road
Bernhard, I'm running Debian Etch and compiled the 32-bit OpenFOAM 1.5

Is there a log that is written for ./Allwmake because I, too, am having a problem installing.

I had to compile from source the qt4.3.5 libs; which failed and I had to install the x11-dev libs which allowed qt to finish. But my ./Allwmake seems to keep failing "due to errors" however I don't know where to look to see what "errors" are occurring.

Also, which additional libraries did you install to allow your version to complete without error?

Does ParaView run for you? ParaView says it cannot find my qt shared objects; which I added to my path directly and verified they do exist.

Thanks for your time!

-Gene Brotherton
USA
gbrother is offline   Reply With Quote

Old   July 31, 2008, 10:35
Default Hi Gene, what i did, was si
  #7
New Member
 
Bernd Stöver
Join Date: Mar 2009
Posts: 16
Rep Power: 17
besto is on a distinguished road
Hi Gene,

what i did, was simply to write the standard output in a file:
./Allwmake > file.txt
The rest of the output are the error-messages, they can be still quite a lot. Usually the important ones are nevertheless at the top.
Now, all the libraries needed i installed from the debian package. Therefore i didn't compile qt, but i installed the qt-dev package (also for quite a lot of the other packages). This somehow worked.
For Paraview i cannot say much yet. I didn't get around to use it yet.

Bernhard
besto is offline   Reply With Quote

Old   August 4, 2008, 01:16
Default Thanks Bernhard! I did what y
  #8
New Member
 
Gene
Join Date: Mar 2009
Location: USA
Posts: 4
Rep Power: 17
gbrother is on a distinguished road
Thanks Bernhard! I did what you suggested by piping the output to a txt file so I could see the errors better. There were a lot more packages I had to install, (flex being one of them; I have never heard of flex before this). And finally I realized I had to copy the Qt libs from the default trolltech install directory to my /usr/libs directory. It appears OF did everything it was supposed to do expect the paraview build. I had to rebuild that by following the instructions on the OF web page, then paraview compiled and functioned normally.

I am still very new to the CFD world, but i think this software will help once I get the hang of things.

Thanks again!

-Gene
gbrother is offline   Reply With Quote

Old   August 13, 2008, 16:29
Default For the record, I would like t
  #9
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
For the record, I would like to say that I was able to build the 1.5 version without any issues on Debian (testing) :-)
msrinath80 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems compiling OpenFOAM15 on Debian Etch geoffjay OpenFOAM Installation 1 February 5, 2009 17:29
COMPILING PROBLEM ammi FLUENT 1 December 7, 2006 05:07
problem in compiling UDF ammi reddy FLUENT 1 December 1, 2006 07:45
Trouble compiling on Debian Etch jkr OpenFOAM Installation 2 April 14, 2006 15:56
PROBLEM COMPILING!!! PLEASE HELP! Toni Cominceanu FLUENT 3 May 17, 2005 03:12


All times are GMT -4. The time now is 16:09.