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

[OpenFOAM.com] OF-1.4 Installation on Ubuntu 12.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2015, 09:44
Default OF-1.4 Installation on Ubuntu 12.04
  #1
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11
cfdopenfoam is on a distinguished road
HI, everyone.

I got my binary packages on http://sourceforge.net/projects/foam/files/foam/1.4/ .

and i installed openfoam-1.4, gcc-4.1.2 and paraview-2.4.4 successfully with the help of the readme guide (STEP BY STEP).

the foamInstallationTest scrip also told that everything is ok, so i tried to compile it. unfortunately, './Allwmake' always gives me lots of elusive errors that beyond my experience.
partial like this:

Code:
+ cd wmake
+ ./makeWmake
make: Nothing to be done for `all'.
+ cd src
+ ./Allwmake
+ cd /home/wzy/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM
+ wmakeLnInclude .
+ wmake libso zlib-1.2.1
SOURCE=crc32.c ;  gcc -m64 -Dlinux64 -DDP -Wall -march=opteron -O3 -fno-gcse   -IlnInclude -I. -I/home/wzy/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc4DPOpt/crc32.o
In file included from /usr/include/string.h:27,
                 from zutil.h:21,
                 from crc32.c:21:
/usr/include/features.h:324:26: error: bits/predefs.h: No such file or directory
/usr/include/features.h:357:25: error: sys/cdefs.h: No such file or directory
/usr/include/features.h:389:23: error: gnu/stubs.h: No such file or directory
In file included from zutil.h:21,
                 from crc32.c:21:
/usr/include/string.h:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__BEGIN_NAMESPACE_STD’
/usr/include/string.h: In function ‘memmove’:
/usr/include/string.h:50: error: expected declaration specifiers before ‘__THROW’
/usr/include/string.h:51: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’
/usr/include/string.h:63: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’
/usr/include/string.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’
/usr/include/string.h:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’
/usr/include/string.h:98: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’

......
i even do not know what happened. The make.log has been attached and i am in desperate need of any suggestion and help.

thanks for the attention.
Attached Files
File Type: zip makelog.zip (75.2 KB, 1 views)
cfdopenfoam is offline   Reply With Quote

Old   March 29, 2015, 04:08
Default
  #2
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11
cfdopenfoam is on a distinguished road
greeting to everyone!

i know that the problem lies i do not know what exact packages i must install on ubuntu for installation of OF-1.4.
so i googled it and tried a lot, but failed .

may i get some suggestions on which linux distribution i should choose or which packages i need to install on ubuntu 12.04?

thanks for the attention.
cfdopenfoam is offline   Reply With Quote

Old   March 29, 2015, 04:47
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 "cfdopenfoam",

The closest I've got are these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04 - namely for compiling OpenFOAM 1.5 on Ubuntu 12.04.

Older than that will take some considerable time to figure out. So please don't expect answers within a 24-48h period. It will possibly take a month or more for someone to be able to get back to your question.

But there is another thing I was remembering... you shouldn't need to build OpenFOAM 1.4 from source code, because it provides a binary package among those files... for example, the instructions can be found here: http://web.archive.org/web/200706021...m/linux64.html

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 29, 2015, 05:09
Default
  #4
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11
cfdopenfoam is on a distinguished road
hi Bruno,

i very much appreciate your timely reply.

actually, i really want to normally Allwmake the source code and then develop my own Apps, of which i've got the preliminary code (OF-1.4 version). so i very much need to test it first.

now i just want to know that which packages i need install on ubuntu 12.04 for OF-1.4.

any help or suggestion will make my day.

thanks for your attention.
cfdopenfoam is offline   Reply With Quote

Old   April 4, 2015, 08:50
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 "cfdopenfoam",

I had a look into OpenFOAM's source code for versions 1.4 and 1.4.1 and I have to say that this is seriously something that cannot be easily done.
The way I see it, there are only 3 possible solutions for this problem:
  1. You can try installing Ubuntu 8.04.4, which is the most modern Ubuntu version that had GCC 4.2.3 installed at the system level. This will be the easiest way for you to install OpenFOAM 1.4 or 1.4.1.
  2. It would take roughly 10 hours for someone with enough experience in building OpenFOAM source code, to re-factor OpenFOAM 1.4 and/or 1.4.1 to comply with the modern compilers.
    • This to say that OpenFOAM 1.5 was a major jump in technological cleanliness, which is why it was somewhat easy for me to write the instructions for building OpenFOAM 1.5 on Ubuntu 12.04, as I mentioned before, because 1.5 is still similar enough to OpenFOAM 1.7...
    • Anyway, 1.4.1 and 1.4 require a considerable amount of work for making it build as good as the more recent OpenFOAM versions.
  3. Or you simply build OpenFOAM 1.5 and adapt the source code you have, basing yourself for any necessary changes that will be needed, by looking at the changes made in OpenFOAM's own source code.
Since you have not specified what type of source code you need to build with OpenFOAM 1.4, I'm not able to deduce any other solutions beyond these.
In other words, being "new to Linux" is something you will have to overcome, as well as being able to properly program C++.

The last solution I can think of is that you hire professional help, because this takes a lot of time that most people won't be willing to spare from their free time

Good luck! Best regards,
Bruno
wyldckat 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
[swak4Foam] Swak4foam installation error with OF 2.2.0 (Ubuntu 12.04 LTS) vbchris OpenFOAM Community Contributions 8 March 25, 2021 20:11
FLUENT installation on UBUNTU 12.04 (LTS) teymourj FLUENT 2 March 1, 2017 22:24
[OpenFOAM.org] OpenFOAM 2.40 installation on Ubuntu 12.04 LTS eddykendo OpenFOAM Installation 1 July 18, 2015 17:38
Trouble shooting about OpenFOAM installation in Ubuntu 12.04 Nait OpenFOAM Installation 2 December 12, 2012 10:20
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 04:56


All times are GMT -4. The time now is 17:32.