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

OpenFOAM-1.7.0 for CentOS/RHEL/SL 5.x 64bit released

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2010, 10:17
Default
  #21
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
OK, but then I dont understand from where you managed to run
the configure script when you got the error in the first place.

N
niklas is offline   Reply With Quote

Old   July 5, 2010, 10:24
Default
  #22
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
I just checked your error message and saw that its located in

/home/user/build/gcc-4.4.4/build

which makes me wonder if your foam intallation is located under your home-catalog,
because if it isnt the configure script needs to be adjusted accordingly.

N
niklas is offline   Reply With Quote

Old   July 5, 2010, 10:43
Default
  #23
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Niklas,
Yes the gcc.4.4.4 is located as you saw also confirmed below. This became so after following the recipe from Niels. The OpenFOAM is located in:
[user@OpenFOAM OpenFOAM]$ ls
OpenFOAM-1.6 OpenFOAM-1.7.0.gtgz.1 ThirdParty-1.7.0 user-1.6
OpenFOAM-1.6.x OpenFOAM-1.7.x ThirdParty-1.7.0.gtgz
OpenFOAM-1.7.0 ThirdParty-1.6 ThirdParty-1.7.0.gtgz.1
OpenFOAM-1.7.0.gtgz ThirdParty-1.6.x ThirdParty-1.7.x
[user@OpenFOAM OpenFOAM]$ pwd
/home/user/OpenFOAM
Bjorn




___________________________________
checking for suffix of object files... configure: error: in `/home/user/build/gcc-4.4.4/build/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/user/build/gcc-4.4.4/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/user/build/gcc-4.4.4/build'
make: *** [all] Error 2
[user@OpenFOAM build]$ pwd
/home/user/build/gcc-4.4.4/build
[user@OpenFOAM build]$
bhh is offline   Reply With Quote

Old   July 6, 2010, 06:37
Default
  #24
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

adding these lines to your $HOME/.bashrc file should make it possible to compile gcc-4.4.4

Code:
export LD_LIBRARY_PATH=$HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/gmp-5.0.1/lib:$LD_LIBRARY_PATH

export  LD_LIBRARY_PATH=$HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/mpfr-2.4.2/lib:$LD_LIBRARY_PATH
Please make sure these paths exists by doing

Code:
ls -l $HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/gmp-5.0.1/lib
ls -l $HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/mpfr-2.4.2/lib
If these directories do exists go into the $HOME/build/gcc-4.4.4/build folder and issue

Code:
. $HOME/.bashrc
make -j2
This worked for me in 64bit getting the same error you posted.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 6, 2010, 08:11
Default
  #25
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Niels,
I tried your new scheme and it did not give any errors. I take that I should execute 'make install ' and follow your instructions from before.

When I came to OpenFOAM OpenFOAM-1.7.0] and execute ./Allwmake I got these errors:
+ wmake libso OpenFOAM
SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/1.7.0/' -e 's/BUILD_STRING/1.7.0-21131bcbd876/' $SOURCE > Make/linuxGccDPOpt/global.C; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/user/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/global.C -o Make/linuxGccDPOpt/global.o
SOURCE=global/argList/argList.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/user/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/argList.o
lnInclude/dictionaryTemplates.C: In member function ‘T Foam::dictionary::lookupOrDefault(const Foam::word&, const T&, bool, bool) const [with T = Foam::Switch]’:
global/argList/argList.C:396: instantiated from here
lnInclude/dictionaryTemplates.C:44: error: call of overloaded ‘Switch(Foam:Traits<Foam::Switch>)’ is ambiguous
lnInclude/Switch.H:140: note: candidates are: Foam::Switch::Switch(int)
lnInclude/Switch.H:134: note: Foam::Switch::Switch(bool)
lnInclude/Switch.H:62: note: Foam::Switch::Switch(const Foam::Switch&)
make: *** [Make/linuxGccDPOpt/argList.o] Error 1

Any guide for what went wrong?
rgds
Bjorn
bhh is offline   Reply With Quote

Old   July 6, 2010, 08:40
Default
  #26
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

Did you remember to run Allwmake in the Thirdparty folder first?

What is the output of

Code:
OF17
which gcc
This should list gcc as located in $HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/gcc-4.4.4/bin/gcc

If this is the case I have no idea what should be going on.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 6, 2010, 08:47
Default
  #27
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Niels,
Yes, I did the procedure as you mention.
When I issue the command
which gcc I get
/usr/bin/gcc

This is not what you would expect? Any clue what is wrong?
Bjorn
bhh is offline   Reply With Quote

Old   July 6, 2010, 08:54
Default
  #28
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi is there anything in the folder

$HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/gcc-4.4.4

if not then the make install step did not install gcc-4.4.4 the right place.

as a side note open the openFOAM/etc/settings and check that the compiler version is as below

Code:
# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | system
: ${compilerInstall:=OpenFOAM}
I'm guessing this is set to system and it will fail.

After changing run

Code:
OF17
which gcc
again and check the output
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 6, 2010, 09:09
Default
  #29
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Niels,

That seemed to do the trick!

I changed the settings.sh file to (in red):

# compilerInstall = OpenFOAM | system
: ${compilerInstall:=OpenFOAM}
case "${compilerInstall:-OpenFOAM}" in
OpenFOAM)
case "$WM_COMPILER" in
Gcc)
# gcc_version=gcc-4.4.3
gcc_version=gcc-4.4.4

Now it compiles and probably will generate OF1.7.0

Bjorn
bhh is offline   Reply With Quote

Old   July 6, 2010, 10:44
Default
  #30
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Niels,

It compiled and passed the cavity check! Thank you very much for your help!
My next task will be to tray to install paraFoam.

Bjorn

PS! There were some warnings during the compilation (unused variables). Is this something that you also found? Will it be a problem?
bhh is offline   Reply With Quote

Old   July 7, 2010, 10:00
Default
  #31
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Hi,

Following the successfull installation of OF1.7.0 on my 32 bit CentOS linux maschine I have now moved over to install paraFoam. The following error comes at the very end after the command ./makeParaView:
________________________________________
Linking CXX executable ../../../../bin/GraphicsCxxTests
../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QPainter::drawImage(QPointF const&, QImage const&)'
../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QTextDocument::setDocumentMargin(double)'
collect2: ld returned 1 exit status
make[2]: *** [bin/GraphicsCxxTests] Error 1
make[1]: *** [VTK/Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/all] Error 2
make: *** [all] Error 2
---
Installation complete for paraview-3.8.0
Set environment variables:

export ParaView_DIR=/home/user/OpenFOAM/ThirdParty-1.7.0/platforms/linuxGcc/paraview-3.8.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.8
---

Done
_____________________________

Anybody out there that migth help me?

rgds
Bjorn
bhh is offline   Reply With Quote

Old   August 13, 2010, 18:09
Default Didn't work at all.
  #32
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17
sahm is on a distinguished road
Hi everyone
I tried to compile OF17, but got problems, then I saw this thread. I want to install it on a RHEL 5.0 64bit.
I don't have access to root, so I couldn't run the Yum command in post #4.
Then I went through gcc part, and got the same error as post #5 and #6.
Right now I have gcc 4.3.3 under OpenFoam 1.6 third parties, and my OF16 works perfectly.
But when I want to make gcc 4.4.4 I get error.
under OF17 environment, My Gcc is
/usr/bin/gcc
and under 1.6 its
~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/gcc
__________________
SAHM
sahm is offline   Reply With Quote

Old   August 14, 2010, 14:41
Default question
  #33
New Member
 
Silvano
Join Date: Jun 2010
Posts: 5
Rep Power: 16
Ti_Pago_Da_Bere is on a distinguished road
Send a message via Skype™ to Ti_Pago_Da_Bere
Guys, I have a question:
I have a cluster with 64bit RHEL 5.0, and previously I have installed OpenFoam 1.6 on it.
Can I replace all the source code for 1.7 with all the source code for 1.6 and wmake it?
does this work?
Ti_Pago_Da_Bere is offline   Reply With Quote

Old   August 16, 2010, 02:26
Default
  #34
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

@ SAHM

you need to edit the OpenFOAM settings.sh file to reflect where gcc is installed lige Bjorn did. With the compilation of GCC try and export the library path for mpfr and gmp in your .bashrc file like so.

Code:
export LD_LIBRARY_PATH=/pathToGmp/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/pathToMpfr/lib:$LD_LIBRARY_PATH
Source the .bashrc file

Code:
. $HOME/.bashrc
and try and compile gcc again.

Quote:
I changed the settings.sh file to (in red):

# compilerInstall = OpenFOAM | system
: ${compilerInstall:=OpenFOAM}
case "${compilerInstall:-OpenFOAM}" in
OpenFOAM)
case "$WM_COMPILER" in
Gcc)
# gcc_version=gcc-4.4.3
gcc_version=gcc-4.4.4

Now it compiles and probably will generate OF1.7.0

Bjorn
@ Ti_Pago_Da_Bere

I do not think that is possible. you can use the ThirdParty stuff from my binary release and then get the sources for OF and then do wmake. If you do it this way remember to change the settings.sh file like above.

Otherwise download both my packages and you are ready to run.

1.6 and 1.7 will live happily alongside each other on the same system and a good way to keep them seperate is to use aliases for them in your $HOME/.bashrc file like so.

Code:
alias OF16=". $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc"
alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7/etc/bashrc"
Then if you run OF16 from terminal you will use OF 1.6 and if you type OF17 you will switch to OF 1.7.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.

Last edited by linnemann; August 16, 2010 at 11:59.
linnemann is offline   Reply With Quote

Old   September 14, 2010, 02:57
Default
  #35
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Hello Linneman,

I am trying to install CentFOAM and I am getting the following errors when

./centFOAMInstall yum all

"
No package ncurses-devel available.
No package libXt-devel available.
Nothing to do"

Thanks

D
dhoom is offline   Reply With Quote

Old   September 14, 2010, 10:01
Default
  #36
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Quote:
Originally Posted by dhoom View Post
Hello Linneman,

I am trying to install CentFOAM and I am getting the following errors when

./centFOAMInstall yum all

"
No package ncurses-devel available.
No package libXt-devel available.
Nothing to do"

Thanks

D
Phew!!! got the script to work.

sometimes I wish I could just disappear into one of those cracks on the walls.
dhoom is offline   Reply With Quote

Old   September 15, 2010, 13:26
Default
  #37
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 16
anfho is on a distinguished road
Dear All,
is it possible to install the here cited version of CentFOAM on RHEL 4.1.2-46 (I do not know what SL 5.x stands for) on a cluster to which I do not have the root rights? I know the installation requires the "yum" command, which needs root rights that I do not have... Thanks!
Andreas
anfho is offline   Reply With Quote

Old   September 15, 2010, 14:10
Default
  #38
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

No that will not be possible. It is possible to get OF working on RHEL 4.x releases it will although take some time and will be somewhat more difficult if you cant install packages as root.

SL-5.x is Scientific Linux 5.x where x can be 0,1,2,3,4 or 5.

Best
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   September 15, 2010, 18:47
Default
  #39
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 16
anfho is on a distinguished road
Hi Linnemann,
thanks for the quick reply. More difficult but thankfully not impossible. According to other threads (http://www.cfd-online.com/Forums/ope...linux-5-a.html) it is possible to install gcc4.3.3 from OF1.6ThridParty and then use OF1.7.1 ... do you agree with that?
Thanks, Andreas
anfho is offline   Reply With Quote

Old   September 16, 2010, 08:40
Default
  #40
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

If only you were that lucky, I've installed OF-1.5 on a RHEL 4 release and it was not the most trivial task :-) and 1.6 and 1.7 are most likely not easier.

There are some libraries in rhel 4 that are to old for gcc-4.3.x so you need to compile new ones of those and a whole lot of other stuff I cant remember.

But again Google is your friend
http://cheminsilico.blogspot.com/200...-on-rhel4.html

From here on you are on your own I'm afraid, unless some other member has a cluster/workstation with rhel/centos 4 on it.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann 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
OpenFOAM 1.7.0 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 1 May 26, 2011 04:09
OpenFOAM 1.7.0 on OpenSUSE 11.1 Bufacchi OpenFOAM Installation 8 August 6, 2010 10:57
OpenFOAM Version 1.4.1 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 August 3, 2007 08:31
OpenFOAM Version 1.3 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 29, 2006 19:06
OpenFOAM Version 1.1 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 11, 2005 06:33


All times are GMT -4. The time now is 13:06.