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

[foam-extend.org] Error compiling OpenFOAM-1.6-ext

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2011, 12:51
Default
  #101
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Quote:
Originally Posted by jajcevic View Post
My first step was also installation of paraview via "Ubuntu Software Centar" . I suppose we are missing a package or there is a package conflict.
Great minds think alike!!!
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   June 2, 2011, 10:08
Default
  #102
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 16
Toorop is on a distinguished road
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:
Error: Current directory is not $WM_PROJECT_DIR
The environment variable are not consistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.
Strange, since if I execute pwd or echo $WM_PROJECT_DIR I get the same output - /opt/OpenFOAM-1.6-ext

Any guidance would be appreciated, thanks!
Toorop is offline   Reply With Quote

Old   June 2, 2011, 12:15
Default
  #103
cjz
New Member
 
Join Date: Feb 2010
Posts: 14
Rep Power: 16
cjz is on a distinguished road
Has anyone been successful at compiling OpenFOAM-1.6-ext on Ubuntu 11.04 (Natty)
cjz is offline   Reply With Quote

Old   June 6, 2011, 03:40
Default
  #104
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 16
Toorop is on a distinguished road
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.
Nevertheless, I can still run the 1.7.1 solvers.

I don't know much about these ThirdParty stuff.

I'm an Ubuntu 11.04 32 bit user.
Toorop is offline   Reply With Quote

Old   June 6, 2011, 08:45
Default
  #105
cjz
New Member
 
Join Date: Feb 2010
Posts: 14
Rep Power: 16
cjz is on a distinguished road
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
cjz is offline   Reply With Quote

Old   June 6, 2011, 08:52
Default
  #106
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 15
lindstroem is on a distinguished road
Quote:
Originally Posted by cjz View Post
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
I installed "lsb-rpm" on Ubuntu to get it to work with the git repository of rpm-packages.. Maybe it helps
lindstroem is offline   Reply With Quote

Old   June 7, 2011, 05:54
Default
  #107
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 16
Toorop is on a distinguished road
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
Would you be so kind as to detail the installation process of the "lsb-rpm" stuff. I also think that the Third Party installation is missing here. I only have Paraview.

Thank you!
Toorop is offline   Reply With Quote

Old   June 7, 2011, 06:06
Default
  #108
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 15
lindstroem is on a distinguished road
Hi Toorop,

i just installed the package lsb-rpm additionally which means

Code:
apt-get install lsb-rpm
Then, as usual, went to the ThirdParty directory and ran ./AllMake and afterwords I built the sources. You maybe need some additional packages which I don't know by hard, but you'll find them via google. If it doesn't work, post some error messages..

Good luck
lindstroem is offline   Reply With Quote

Old   June 12, 2011, 09:06
Default
  #109
cjz
New Member
 
Join Date: Feb 2010
Posts: 14
Rep Power: 16
cjz is on a distinguished road
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)
cjz is offline   Reply With Quote

Old   June 12, 2011, 09:19
Default
  #110
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
Can you try to compile pimpleDyMFoam again and see what the compiler says?
__________________
David A. Boger
boger is offline   Reply With Quote

Old   June 12, 2011, 11:01
Default
  #111
cjz
New Member
 
Join Date: Feb 2010
Posts: 14
Rep Power: 16
cjz is on a distinguished road
/usr/bin/ld: cannot find -ldynamicFvMesh
/usr/bin/ld: cannot find -ltopoChangerFvMesh
collect2: ld returned 1 exit status
cjz is offline   Reply With Quote

Old   June 12, 2011, 11:11
Default
  #112
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
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
boger is offline   Reply With Quote

Old   June 12, 2011, 11:56
Default
  #113
cjz
New Member
 
Join Date: Feb 2010
Posts: 14
Rep Power: 16
cjz is on a distinguished road
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.
cjz is offline   Reply With Quote

Old   June 15, 2011, 00:31
Default
  #114
nlc
Member
 
nlc's Avatar
 
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17
nlc is on a distinguished road
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 12:00.
nlc is offline   Reply With Quote

Old   June 15, 2011, 12:06
Default
  #115
nlc
Member
 
nlc's Avatar
 
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17
nlc is on a distinguished road
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'
nlc is offline   Reply With Quote

Old   June 15, 2011, 12:15
Default
  #116
Member
 
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 77
Rep Power: 17
mathieu is on a distinguished road
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
mathieu is offline   Reply With Quote

Old   June 17, 2011, 04:15
Default
  #117
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 16
Toorop is on a distinguished road
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.
Attached Files
File Type: gz makeThirdParty.tar.gz (4.1 KB, 5 views)
Toorop is offline   Reply With Quote

Old   June 17, 2011, 06:07
Default
  #118
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 15
lindstroem is on a distinguished road
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
greetings
lindstroem is offline   Reply With Quote

Old   June 19, 2011, 14:09
Default
  #119
nlc
Member
 
nlc's Avatar
 
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17
nlc is on a distinguished road
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 14:36.
nlc is offline   Reply With Quote

Old   June 22, 2011, 07:21
Default
  #120
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 16
Toorop is on a distinguished road
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!
Attached Files
File Type: gz make.tar.gz (89.2 KB, 5 views)
Toorop 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
OpenFOAM 1.6 package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 36 September 2, 2009 12:46
OpenFOAM Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 17:55


All times are GMT -4. The time now is 01:12.