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

Installation problem in Redhat using gcc 4.1.2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2010, 16:35
Default Installation problem in Redhat using gcc 4.1.2
  #1
Senior Member
 
Tarak
Join Date: Aug 2010
Location: State College, PA
Posts: 111
Rep Power: 15
Tarak is on a distinguished road
Hii,

While installing openFOAM 1.6 in Redhat, 1st I've tried to do the 3rd party installation. But, I encountered the following error:
wmake error: file 'Make/linux64gccDPOpt/objectFiles' could not be created

Can you pls help me in finding a solution?

Also is it better to build both Openfoam and 3rd party at one go, or first do the 3rd party and later the other one?

Last edited by Tarak; August 27, 2010 at 16:38. Reason: Missed some lines
Tarak is offline   Reply With Quote

Old   August 27, 2010, 16:55
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Tarak and welcome to the forum!

Unfortunately, gcc 4.1.2 can't be used to build OpenFOAM 1.6. You should use the gcc 4.3.3 version that comes in the ThirdParty. In the link in my signature you can find links to threads that explain how to build gcc and paraview for OpenFOAM 1.6/1.6.x:
Once gcc 4.3.3 (and ParaView) are built, then go to the OpenFOAM-1.6 folder and run with:
Code:
./Allwmake > make.log 2>&1
This way you'll get the whole thing built in one go, including the libraries that OpenFOAM needs from the ThirdParty folder and keep a full log (the file make.log) of the build process, in case something goes sour

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 31, 2010, 05:32
Default
  #3
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Bruno,

I am not able to find a GCC compiler in the Thirdparty-1.7.1 package, my centos 5.4 x64 system has 4.1.2 compilers? how do i go about installing OF1.7.1

I am getting the following message
"
Warning in /OpenFOAM/OpenFOAM-1.7.1/etc/settings.sh:
Cannot find /OpenFOAM/ThirdParty-1.7.1/platforms/linux64/gcc-4.4.3 installation.
Please install this compiler version or if you wish to use the system compiler,
change the 'compilerInstall' setting to 'system' in this file
"

Many thanks.

Last edited by dhoom; August 31, 2010 at 06:01.
dhoom is offline   Reply With Quote

Old   August 31, 2010, 06:43
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings dhoom,

CentFoam doesn't cover that issue?

Anyway, you can always get the one from 1.6 It's still available online: http://www.openfoam.com/archive/1.6/...ad/linux64.php

Get the ThirdParty-1.6.linux64Gcc.gtgz package, unpack it and move (or copy) it something like this:
Code:
mv /OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64 /OpenFOAM/ThirdParty-1.7.1/platforms/linux64/gcc-4.3.3
Notice that the 1.6 version has a different folder structure from 1.7! Also keep in mind I'm using the folder structure from your post! Because usually the base folder for OpenFOAM is "$HOME/OpenFOAM".

Moving on - then edit "/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc", find the line that says:
Code:
: ${WM_COMPILER:=Gcc}; export WM_COMPILER
And change it to:
Code:
: ${WM_COMPILER:=Gcc43}; export WM_COMPILER
Save the file, start a new terminal/console, and voilá, you've got gcc 4.3.3 ready to go

Well... you should be ready to go. By my experience, when the system's gcc is older than 4.3.3, then it should work as intended. If it doesn't work, you might need to recompile gcc. In the link in my signature, you'll find instructions on how to build gcc 4.3.3.

As for building any other gcc version to be used with OpenFOAM, I've been working on it, but it isn't ready to be released yet As soon as it is ready, I hope I don't forget to post a memo here

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 31, 2010, 07:52
Default
  #5
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Thanks Bruno,

I will do as you mentioned and get back to you.

Can you please confirm if there is a platform folder when uncompressing the Thirdparty-1.7.1 package from OpenFoam website, I could not find one.

D
dhoom is offline   Reply With Quote

Old   August 31, 2010, 08:48
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi dhoom,

Nope, there isn't any platforms folder as soon as you unpack the ThirdParty package, because as of 1.7.0, pre-built binary files are only available for Ubuntu. That folder usually only appears after building ParaView.
And I also know that in the settings.sh script it has references for building gcc+mpfr+gmp (+mpc for gcc 4.5.0) in the same fashion as it is for ParaView. That is why I told you to move gcc 4.3.3 into that particular folder

In theory, the only disadvantage of using gcc 4.3.3 is that the resulting OpenFOAM build might not be as fast as if it were built with 4.4.x or 4.5.x, but I think results may vary depending on the Linux distribution, kernel, and so on. So, the only way (I can think of) to be sure of this would be to run some benchmarks with each build.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 31, 2010, 13:30
Default
  #7
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Thanks Bruno.
dhoom is offline   Reply With Quote

Old   September 1, 2010, 08:16
Default
  #8
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Hi Bruno,

I moved the Gcc folder and I am getting the following error while opening a terminal window

"
Warning in /OpenFOAM/OpenFOAM-1.7.1/etc/settings.sh:
Cannot find /OpenFOAM/ThirdParty-1.7.1/platforms/linux64/gcc-4.3.3 installation.
Please install this compiler version or if you wish to use the system compiler,
change the 'compilerInstall' setting to 'system' in this file

"

I also tried compiling and have attached the log file, please let me know how do I proceed further.

Thanks again,
Attached Files
File Type: txt make.log.txt (78.6 KB, 3 views)
dhoom is offline   Reply With Quote

Old   September 1, 2010, 08:52
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi dhoom,

Quote:
Originally Posted by dhoom View Post
I moved the Gcc folder and I am getting the following error while opening a terminal window

"
Warning in /OpenFOAM/OpenFOAM-1.7.1/etc/settings.sh:
Cannot find /OpenFOAM/ThirdParty-1.7.1/platforms/linux64/gcc-4.3.3 installation.
Please install this compiler version or if you wish to use the system compiler,
change the 'compilerInstall' setting to 'system' in this file

"
Apparently you didn't move the correct folder . What folder (full path please) did you move and to where?
EDIT: I think I know what the problem is - run this:
Code:
cd /OpenFOAM/ThirdParty-1.7.1/platforms/linux64/gcc-4.3.3
mv linux64/* .
rmdir linux64
I keep forgetting that the cp command is a bit tricky when copying folders

Quote:
Originally Posted by dhoom View Post
I also tried compiling and have attached the log file, please let me know how do I proceed further.
Ah, you're missing the development files of binutils. I'm not familiar with CentOS, so I don't know if it even has binutils-dev in it (it's the name of the package in Ubuntu). Additionally, you would need libiberty installed as well as it's the development package. While you are at it, what version of OpenMPI does CentOS have? You might be able to save some time building OpenMPI if you resort to using the system's version.

NOTE: development files/package are usually only the necessary files for linking to a library, namely header files and ".a"/".la" (library interface) files.


There is something I'm finding odd in all of this: doesn't CentFoam work for you?

Best regards,
Bruno
__________________

Last edited by wyldckat; September 1, 2010 at 08:55. Reason: see EDIT:
wyldckat is offline   Reply With Quote

Old   September 1, 2010, 09:44
Default
  #10
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi dhoom,

Apparently you didn't move the correct folder . What folder (full path please) did you move and to where?
EDIT: I think I know what the problem is - run this:
Code:
cd /OpenFOAM/ThirdParty-1.7.1/platforms/linux64/gcc-4.3.3
mv linux64/* .
rmdir linux64
I keep forgetting that the cp command is a bit tricky when copying folders


Ah, you're missing the development files of binutils. I'm not familiar with CentOS, so I don't know if it even has binutils-dev in it (it's the name of the package in Ubuntu). Additionally, you would need libiberty installed as well as it's the development package. While you are at it, what version of OpenMPI does CentOS have? You might be able to save some time building OpenMPI if you resort to using the system's version.

NOTE: development files/package are usually only the necessary files for linking to a library, namely header files and ".a"/".la" (library interface) files.


There is something I'm finding odd in all of this: doesn't CentFoam work for you?

Best regards,
Bruno
Greetings Bruno,

I copied the Gcc-4.3.3 directory from under the OF1.6 Thirdparty installation done using CentFOAM sometime back.

I have managed to setup a small cluster with Centos x64 so do not want to mess around with the centos setup or the system compilers, as you can see I am not an expert and still learning. I used the OpenMPI that comes in the thirdparty package, in the system I have mpich2.

I will try CentFOAM and see how it goes.

Thanks,

D
dhoom is offline   Reply With Quote

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

I do not understand why you would go through all this when I have already done it for you.

See here

Also it has been updated to 1.7.1 if you want to compile it yourself you need to change the bashrc and settings.sh file to suit Gcc-4.4.4, mpfr and gmp as per here

Otherwise just use the install script and you will be flying in no time.
__________________
Linnemann

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

Old   September 2, 2010, 23:59
Default
  #12
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hi

I do not understand why you would go through all this when I have already done it for you.

See here

Also it has been updated to 1.7.1 if you want to compile it yourself you need to change the bashrc and settings.sh file to suit Gcc-4.4.4, mpfr and gmp as per here

Otherwise just use the install script and you will be flying in no time.
Thanks Linneman,

I will try Centfoam. Appreciate your effort very much.

Regards,

D
dhoom is offline   Reply With Quote

Old   October 9, 2010, 05:52
Default using CentFOAM without internet connection
  #13
New Member
 
Vitaly
Join Date: Sep 2010
Posts: 6
Rep Power: 15
vitvit is on a distinguished road
Hello,
I'm trying to install OF 1.7.1 on RHEL 5.4, and I want to use CentFOAM script, but I do not have Internet connection at my linux platform.
how can I use this script ?
Even if I'll use the manual instalation where do I get these packeges?:


"yum install gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel"

thanks
vitvit is offline   Reply With Quote

Old   October 9, 2010, 10:36
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Vitaly and welcome to the forum!

I've never worked with RHEL 5.4, so I can only assume that since you have it, you (or your system's administrator) should also have either a DVD or an account at Red Hat Network. Also, I can only assume they have an online page at the account for searching for packages and downloading them.

Best regards and good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
OF1.7.0 installation problem with Intel compiler i1ya OpenFOAM Installation 3 August 14, 2010 03:14
problem installing gcc Ahmed Khattab OpenFOAM Installation 8 March 24, 2010 11:42
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
problem in installation of Fedora code peter Main CFD Forum 1 August 22, 2006 09:03
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07


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