|
[Sponsors] |
[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 2, 2016, 00:48 |
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 |
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.
|
|
August 9, 2016, 12:50 |
|
#2 | |
Member
|
Quote:
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 |
||
September 17, 2016, 21:50 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
February 22, 2017, 17:43 |
Error building gcc
|
#4 |
Member
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 15 |
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 |
|
March 25, 2017, 16:18 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Hopefully this solves the problem. Best regards, Bruno
__________________
|
|
August 31, 2017, 19:14 |
Issue with installation on step 6
|
#6 |
New Member
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9 |
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 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 Code:
echo "alias of171='source \$HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc 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 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. |
|
September 2, 2017, 06:39 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 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
__________________
|
|
September 2, 2017, 13:46 |
|
#8 |
New Member
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9 |
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 Code:
/opt 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/ 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 |
|
September 3, 2017, 07:17 |
|
#10 |
New Member
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9 |
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 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? |
|
September 3, 2017, 09:54 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
The work-flow is easy enough:
__________________
|
||
September 3, 2017, 10:22 |
|
#12 |
New Member
R.B.
Join Date: Aug 2017
Posts: 7
Rep Power: 9 |
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.
|
|
Tags |
installation of openfoam, openfoam, openfoam 1.7.1, ubuntu 10.04, ubuntu 16 |
|
|
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 |