目前没有适用于 Ubuntu 14.04 Trusty 的软件包http://www.openfoam.org/download/ubuntu.php。如果我尝试使用 13.10 的软件包,Saucyaptitude
会给我一个错误
sudo aptitude install openfoam230 paraviewopenfoam410
[剪切出依赖项的长列表]
The following packages have unmet dependencies:
openfoam230 : Depends: libboost-thread1.53.0 which is a virtual package.
Depends: libopenmpi1.3 which is a virtual package.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) openfoam230 [Not Installed]
在官方软件包可用之前,有没有办法解决这个问题而不从源代码安装?
答案1
如果您想使用 apt,则必须等到他们发布可信版本 (14.04),否则您可以编译源文件。请查看此链接以获取说明: http://www.openfoam.org/download/source.php
此链接还提供从源文件安装的信息 http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.3.0/Ubuntu#Ubuntu_14.04
答案2
OpenFoam 现在可以通过 apt-get 安装。参见http://www.openfoam.org/download/ubuntu.php