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

[OpenFOAM.org] Installing OpenFOAM 6 on Ubuntu 18.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2019, 14:48
Default Installing OpenFOAM 6 on Ubuntu 18.04
  #1
Member
 
Lauren Dransfield
Join Date: Jan 2012
Posts: 50
Rep Power: 14
ld1305 is on a distinguished road
Evening,

I've attempted following the commands given here, but get the following error when running "sudo apt-get install openfoam6"

Code:
The following packages have unmet dependencies.
 openfoam6 : Depends: libopenmpi2 but it is not installable
             Depends: gnuplot-x11 but it is not going to be installed
             Recommends: paraviewopenfoam56 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
If I just run "sudo apt-get install paraviewopenfoam56" or "sudo apt-get install gnuplot-x11" it appears to work, but obviously not super useful without the rest, when I try the other one I get:

Code:
Package libopenmpi2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libopenmpi2' has no installation candidate
I'm unsure why it's not installable - anyone got any suggestions?
ld1305 is offline   Reply With Quote

Old   January 12, 2019, 23:03
Default
  #2
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
Hello Lauren,

you need to install the dependencies first, you need to install libopenmpi-dev package!
try this:
Code:
sudo apt install libopenmpi-dev openmpi-bin
you may check the wiki for any other dependency in case of possible errors:

https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
Daniel_Khazaei is offline   Reply With Quote

Old   January 13, 2019, 13:03
Default
  #3
Member
 
Lauren Dransfield
Join Date: Jan 2012
Posts: 50
Rep Power: 14
ld1305 is on a distinguished road
Even with the dependencies installed I get the same error, so I'm not sure sure it's that. I'll check the Wiki, cheers
ld1305 is offline   Reply With Quote

Old   January 13, 2019, 13:27
Default
  #4
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
Quote:
Originally Posted by ld1305 View Post
I'm unsure why it's not installable - anyone got any suggestions?
Quick answer: A complete output of the command would have made it easier to diagnose the issue. Nonetheless, see possibility #3 at the Installation Problems section on the initial page you've referenced: https://openfoam.org/download/6-ubun...ation-problems

In other words, if the "universe" repository in apt is not active, then it's not possible to install certain packages that "openfoam6" depends on.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
openfoam 6, ubuntu 10.04


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.org] I have trouble installing openfoam 5.0 on ubuntu 16.04 haydii OpenFOAM Installation 5 December 27, 2018 10:56
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 07:39
[OpenFOAM.org] Installing OpenFOAM 2.3.0 on Ubuntu 14.10 sisi OpenFOAM Installation 4 November 26, 2014 05:24
Prolem installing OpenFOAM Ver 2.3.0 source in Ubuntu 13.1.0 on VMware zandi OpenFOAM Installation 5 March 31, 2014 03:57
Trouble with installing OpenFOAM on Ubuntu Milos OpenFOAM Installation 16 November 16, 2009 02:44


All times are GMT -4. The time now is 19:05.