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

[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04

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

Like Tree1Likes
  • 1 Post By rbabhi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2016, 00:48
Default Installation of OpenFOAM 1.7.1 on Ubuntu 16.04
  #1
New Member
 
Muhammad M Khan
Join Date: Jul 2010
Posts: 1
Rep Power: 0
MM_Khan is on a distinguished road
Hello, I m having problem with installation of openfoam 1.7.1 on ubuntu 16.04. I know that is the older version of openfoam but still i need it. I tried to install it on the ubuntu 10.04 LTS but since the older versions of ubuntu are not supported any more it wont install without updates. Any help would be appreciated.
MM_Khan is offline   Reply With Quote

Old   August 9, 2016, 12:50
Default
  #2
Member
 
Reza khodadadi
Join Date: Apr 2011
Location: https://t.me/pump_upp
Posts: 32
Rep Power: 15
reza_65 is on a distinguished road
Send a message via ICQ to reza_65 Send a message via AIM to reza_65 Send a message via Yahoo to reza_65
Quote:
Originally Posted by MM_Khan View Post
Hello, I m having problem with installation of openfoam 1.7.1 on ubuntu 16.04. I know that is the older version of openfoam but still i need it. I tried to install it on the ubuntu 10.04 LTS but since the older versions of ubuntu are not supported any more it wont install without updates. Any help would be appreciated.

Hi,
The problem is GCC, you should have gcc 4.5
You can also, take a look at the following link:

http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04

maybe it can give you some ideas!

Good luck,
Reza
reza_65 is offline   Reply With Quote

Old   September 17, 2016, 21:50
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 to all!

I started working on this last weekend and today I've finally managed to get it all built and working.
The requested instructions for installing OpenFOAM 1.7.1 on Ubuntu 16.04 are now on the wiki: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 22, 2017, 17:43
Question Error building gcc
  #4
Member
 
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 15
vishalsacharya is on a distinguished road
Bruno,

I am having errors compiling gcc-4.5.2. The log is attached as a zip file.
I followed all the instructions without exception.
Looking to your help and troubleshooting for this.

Thanks
Attached Files
File Type: zip mkgcc.zip (77.8 KB, 8 views)
vishalsacharya is offline   Reply With Quote

Old   March 25, 2017, 16:18
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Vishal,

I don't know if you've managed to solve this problem or not.

After a quick research, it looks like using "MISSING=texinfo" in the configure call should fix this issue... So if you load the OpenFOAM 1.7.1 environment and run:
Code:
cd $WM_THIRD_PARTY_DIR

sed -i -e 's/\(--disable-multilib \)/\1 MISSING=texinfo/' makeGcc
Then go to step #9 and run it again at https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04

Hopefully this solves the problem.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 31, 2017, 19:14
Default Issue with installation on step 6
  #6
New Member
 
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9
rbabhi is on a distinguished road
Hi, I am trying to install OpenFOAM 1.7.1 on the Ubuntu 16.04 installed a VirtualBox. However I am having issue on stage #6 of the installation process when I input run this command

Code:
FOAM_SETTINGS="WM_NCOMPPROCS=4 WM_MPLIB=OPENMPI WM_COMPILER=Gcc45 compilerInstall=OpenFOAM"
source $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc $FOAM_SETTINGS
I am given this:

Code:
bash: /opt/OpenFOAM-1.7.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/settings.sh: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/apps/paraview3/bashrc: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/apps/ensight/bashrc: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
Then when I move to step #7:

Code:
echo "alias of171='source \$HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc
and run command of171, I am given the same message:

Code:
bash: /opt/OpenFOAM-1.7.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/settings.sh: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/apps/paraview3/bashrc: No such file or directory
bash: /opt/OpenFOAM-1.7.1/etc/apps/ensight/bashrc: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
I have tried writing a log file, but it seems to be completely empty. I am just wondering where I am going wrong in this. I have followed all the steps religiously.

Many thanks.

ps: I have the latest version OpenFOAM5 already installed and work perfectly. I need this version to run a code written on this version of OF.

Last edited by rbabhi; August 31, 2017 at 19:22. Reason: Included more information.
rbabhi is offline   Reply With Quote

Old   September 2, 2017, 06:39
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 rbabhi,

Please follow the instructions given at https://openfoamwiki.net/index.php/I...nFOAM_versions

You need to do this so that OpenFOAM 5.0 is not loaded automatically into the terminal environment. You need to be able to load a specific version manually and that wiki page explains how to do that.

After you have followed those instructions, you can then start a new terminal and run:
Code:
of171
It should no longer give any problems.

After that, you can continue following from step #8 in the installation instructions at https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 2, 2017, 13:46
Smile
  #8
New Member
 
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9
rbabhi is on a distinguished road
Many thanks for your reply wyldckat.

I had followed your suggestions, but even after that it was giving me the same error.

Since I am novice at Linux, I am assuming that

1) Somewhere within the command the file locations were selected to be in
Code:
/home
2) Since that didn't seem to work, the installation (?) process is looking for file in
Code:
/opt
3) Copying a version of the files in /opt should solve the issue.


So I followed the following hack to make it to work and compile

Open a new terminal

Code:
cd /OpenFoam

sudo cp -a OpenFOAM-1.7.1/. /opt/OpenFOAM-1.7.1/

sudo cp -a ThirdParty-1.7.1/. /opt/ThirdParty-1.7.1/
Follow the rest of the instructions.

I understand that this is not the ideal fix, but so far it has worked and I am on Step 10

Code:
./Allwmake > log.make 2>&1
I will give an update notifying if everything works perfectly.
ghazal_1989 likes this.
rbabhi is offline   Reply With Quote

Old   September 2, 2017, 16:02
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
The reason why it's using "/opt" is because OpenFOAM 5 has set the environment variable "FOAM_INST_DIR" to "/opt", which has then be used by OpenFOAM 1.7.1.

Quote:
Originally Posted by rbabhi View Post
I will give an update notifying if everything works perfectly.
OK.
wyldckat is offline   Reply With Quote

Old   September 3, 2017, 07:17
Default
  #10
New Member
 
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9
rbabhi is on a distinguished road
Many thanks wyldcka. I do not know why I didn't notice that first.

Everything works perfectly. I have managed to compile a code written on OF 1.7.1, that would not compile on OF 5.

However when I start to view the results in paraFoam by inputting
Code:
 paraFoam
,

I am given the following message
Code:
created temporary '2DsuspensionFlowInChannel.OpenFOAM'
/opt/OpenFOAM-1.7.1/bin/paraFoam: 139: /opt/OpenFOAM-1.7.1/bin/paraFoam: paraview: not found
Is it once again the same issue or directory problem? ps: I can open the '2DsuspensionFlowInChannel.OpenFOAM' file in another terminal using paraFoam 5 without any issue.

I was also just wondering, since I have a new version of paraFoam (v5.+) installed, is it possible to only assign only the new paraFoam for postprocessing? Would it be ideal or is there some hidden compatibility issue with different version of OF and PF?
rbabhi is offline   Reply With Quote

Old   September 3, 2017, 09:54
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quote:
Originally Posted by rbabhi View Post
I was also just wondering, since I have a new version of paraFoam (v5.+) installed, is it possible to only assign only the new paraFoam for postprocessing? Would it be ideal or is there some hidden compatibility issue with different version of OF and PF?
Quick answer: The simplest solution is to use 2 terminal windows, one where you have OpenFOAM 1.7.1 active and another where you have 5.0 activate. This is mostly because I don't time to test this right now and I know I wrote about this about 2-3 months ago and I can't find the thread with the instructions right now.

The work-flow is easy enough:
  1. You have one terminal where you are working with OpenFOAM 1.7.1.
  2. You've finished simulating or generating a mesh in that terminal.
  3. Use the key combination Ctrl+Shift+T, which should open a new terminal window or tab.
  4. The new terminal should have opened in the same folder as the original case, where you now can activate the OpenFOAM 5.0 environment.
  5. And you can now use paraFoam.
  6. You can close the latest terminal once you are done, if you don't want to have it open in the meantime.
__________________
wyldckat is offline   Reply With Quote

Old   September 3, 2017, 10:22
Smile
  #12
New Member
 
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9
rbabhi is on a distinguished road
That's exactly what I have found to work. Many thanks for all your help. Now onto the bigger tasks of learning to use OF.
rbabhi is offline   Reply With Quote

Reply

Tags
installation of openfoam, openfoam, openfoam 1.7.1, ubuntu 10.04, ubuntu 16

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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
[OpenFOAM.org] icoFoam: Command not found in OpenFOAM 3.0.1 installation on Ubuntu 16.10 febriyan91 OpenFOAM Installation 2 July 27, 2020 01:23
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[OpenFOAM.com] Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn) alfa_8C OpenFOAM Installation 2 February 3, 2015 04:16
OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04 dasMopo OpenFOAM Installation 5 February 17, 2013 11:14


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