|
[Sponsors] |
[foam-extend.org] Error compiling OpenFOAM-1.6-ext |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 2, 2011, 11:08 |
|
#102 | |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Hi,
I'm having a hard time compiling the OpenFOAM-1.6-ext. The files are located in the "/opt/OpenFOAM-1.6-ext" folder. I modified the bashrc file accordingly ---> foamInstall=/opt Executing the command "sudo ./Allwmake" in the folder "/opt/OpenFOAM-1.6-ext " I receive an error message: Quote:
Any guidance would be appreciated, thanks! |
||
June 2, 2011, 13:15 |
|
#103 |
New Member
Join Date: Feb 2010
Posts: 14
Rep Power: 16 |
Has anyone been successful at compiling OpenFOAM-1.6-ext on Ubuntu 11.04 (Natty)
|
|
June 6, 2011, 04:40 |
|
#104 |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Some strange additional information:
I've installed OpenFOAM 1.7.1 and Paraview 3.8.1 as the Ubuntu/Debian Pack Installation guide said on the official site. It works just fine, but If I recompile, the same error message will be thrown as with the 1.6-ext version. So neither of my OpenFOAM versions can be recompiled. The foamInstallationTest script is wrecked as well in the "$WM_PROJECT_DIR/bin" folder (1.7.1). Code:
Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- FATAL ERROR: OpenFOAM environment not configured. Please refer to the installation section of the README file: <OpenFOAM installation dir>/OpenFOAM-1.7.x/README to source the OpenFOAM environment. I don't know much about these ThirdParty stuff. I'm an Ubuntu 11.04 32 bit user. |
|
June 6, 2011, 09:45 |
|
#105 |
New Member
Join Date: Feb 2010
Posts: 14
Rep Power: 16 |
Thanks Toorop. I too have had 1.7.1 running on Ubuntu 11.04 32 bit but need to get 1.6-ext running. I'm only able to find the rpm package for 1.6-ext
|
|
June 6, 2011, 09:52 |
|
#106 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
||
June 7, 2011, 06:54 |
|
#107 |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Hi lindstroem,
I got the 1.6-ext through git: Code:
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext Thank you! |
|
June 7, 2011, 07:06 |
|
#108 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Toorop,
i just installed the package lsb-rpm additionally which means Code:
apt-get install lsb-rpm Good luck |
|
June 12, 2011, 10:06 |
|
#109 |
New Member
Join Date: Feb 2010
Posts: 14
Rep Power: 16 |
I've been partially successful installing 1.6-ext on Ubuntu 11.04 (Natty) but some solvers that I need don't exist such as pimpleDyMFoam. Any ideas why some things compiled (simpleFoam, icoFoam etc.) and others (pimpleDyMFoam) did not?
FYI: other packages I needed to install lib-rpm zlib1g-dev flex qt4-designer (via Applications -> Ubuntu Software Center) |
|
June 12, 2011, 10:19 |
|
#110 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
Can you try to compile pimpleDyMFoam again and see what the compiler says?
__________________
David A. Boger |
|
June 12, 2011, 12:01 |
|
#111 |
New Member
Join Date: Feb 2010
Posts: 14
Rep Power: 16 |
/usr/bin/ld: cannot find -ldynamicFvMesh
/usr/bin/ld: cannot find -ltopoChangerFvMesh collect2: ld returned 1 exit status |
|
June 12, 2011, 12:11 |
|
#112 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
So in other words, some of the component libraries have not successfully compiled. When you did the "Allwmake" from the top of OpenFOAM, you should have seen errors to this effect. Probably best thing to do is to repeat that, capture the output (e.g. Allwmake >& log) and look for the first error.
Alternatively, cd $FOAM_SRC/dynamicMesh/dynamicFvMesh, compile there with wmake libso, and see what the compiler says about that, etc., until you get to the root of the problem.
__________________
David A. Boger |
|
June 12, 2011, 12:56 |
|
#113 |
New Member
Join Date: Feb 2010
Posts: 14
Rep Power: 16 |
Thanks very much for you help.
I installed python-dev (via Applications -> Ubuntu Software Center) then recompiled Thirdparty and 1.6-ext and now at least pimpleDyMFoam runs. |
|
June 15, 2011, 01:31 |
|
#114 |
Member
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17 |
Tank you Martin for this good installation and compilation script.
I just want to comment on the fact that I installing of the package rpm as I thought it was necessary on debian stable. OpenFOAM-1.6-ext$ ThirdParty/./AllMake Sadly I Stage3 as problem downloading: Updating the ThirdParty environment variables before building package metis-5.0pre2 Download metis-5.0pre2.tar.gz from : http://glaros.dtc.umn.edu/gkhome/fet...5.0pre2.tar.gz --2011-06-15 10:33:05-- http://glaros.dtc.umn.edu/gkhome/fet...5.0pre2.tar.gz Résolution de glaros.dtc.umn.edu... 160.94.77.162 Connexion vers glaros.dtc.umn.edu|160.94.77.162|:80...connecté. requête HTTP transmise, en attente de la réponse...404 Not Found 2011-06-15 10:33:05 ERREUR 404: Not Found. I ad to download it from an other source: ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/metis-5.0pre2.tar.gz Maybe it is a good thing to put in the top of the README.ThirdParty, fast instruction, the line procedure for compiling as it is relay streat foword as new way to compile every thing $ cd OpenFOAM-1.6-ext $ . etc/bashrc $ ThirdParty/./AllMake $ ./Allwmake I will return a feed back if I run in any error with this script compiling this way it will also ave been tested on debian 6.0 Regards Last edited by nlc; June 15, 2011 at 13:00. |
|
June 15, 2011, 13:06 |
|
#115 |
Member
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17 |
I get a problem with AllMake.stage3 link to gmake. If you can help it will be appreciated.
+ cd ParMGridGen-1.0 + echo Patch #1 (ParMGridGen-1.0.patch): Patch #1 (ParMGridGen-1.0.patch): + /bin/cat /home/niko/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch + /usr/bin/patch -s -p1 --fuzz=0 + exit 0 Executing(%build): /bin/sh -e /home/niko/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.23yMqM + umask 022 + cd /home/niko/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD + cd ParMGridGen-1.0 + [ -z 2 ] + make -j 2 (cd MGridGen ; make) make[1]: Entering directory `/home/niko/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. (cd IMlib ; gmake ) /bin/sh: gmake: not found make[1]: *** [default] Error 127 make[1]: Leaving directory `/home/niko/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen' |
|
June 15, 2011, 13:15 |
|
#116 |
Member
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 77
Rep Power: 17 |
Hi Nicolas,
I had the same problem (I use ubuntu 10.04). I created a symbolic link to make and it did the trick: cd /usr/bin sudo ln -s make gmake |
|
June 17, 2011, 05:15 |
|
#117 |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Hi,
I have successfully got OF1.7.1 up and running via Source Pack Installation guide + some packages and forum tweaks, but I can't crack OF1.6ext. I think ThirdParty installation misses some stuff. I have added the metic pack as Nicolas suggested, but don't know how to resolve other errors. Any help would be appreciated! PS: foamInstallationTest reports gcc conflicting installations. The soft link works fine with OF1.7.1, but this time it won't reconcile the script. Anyway, it won't to any bad to OF1.6ext as some stated here on the forums. |
|
June 17, 2011, 07:07 |
|
#118 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
hi toorop,
as you said you have some problem with gmake. cant help you with that, sorry, but if not yet tried, look what matthieu said. the last problem with building paraview should vanish with Code:
export QT_BIN_DIR=/usr/bin |
|
June 19, 2011, 15:09 |
|
#119 |
Member
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17 |
the error of gmake vanish with the symbolic link:
cd /usr/bin sudo ln -s make gmake Thanks mathieu But the tutorial test tutorials/incompressible/icoDyMFoam/turboPassageRotating dos not seam to work properly did any bothy had this problem ?? (I modify it to run on 2 processor change decomposePar and Allrun -> runParallel icoDyMFoam 2) Maybe, there is something I did rung in decomposing in t processor ??!! the other work correctly : mixer2D movingBlockRBF movingConeTopo mixerGgi Regards Last edited by nlc; June 19, 2011 at 15:36. |
|
June 22, 2011, 08:21 |
|
#120 |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Some progress, finally!
With the instructions you suggested - QT_BIN_DIR and the soft linking between make and gmake - I was able to compile the ThirdParty package except for paraview. I have the same error now as post #96. I have update the scripts as well cuz some urls in the AllMake scripts of the ThirdParty are out of date, maybe it helped as well, I'm not sure. If I compile the 1.6ext with the current state, I get some solvers, which is great. I also receive some errors and the compilation stops at some point. Thank you all for the great help! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
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 |