ubuntu - E : Package 'mpich2' has no installation candidate

标签 ubuntu mpich

我安装了 Ubuntu 16.04 LTS(Xenial 版本)。我需要将 mpich2 软件包安装到我的系统上,但是当我运行 sudo apt-get install mpich2 时,出现以下错误:

Reading package lists... Done
Building dependency tree... 50%
Building dependency tree       
Reading state information... Done
Package mpich2 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
However the following packages replace it:
  mpich:i386 mpich

E: Package 'mpich2' has no installation candidate

我认为 mpich2 软件包属于 14.04 Ubuntu 版本的 Trusty 版本,但我仅需要 mpich2 软件包用于我的工作。

最佳答案

我有同样的问题,经过一个具有挑战性的搜索过程后,我最终从源代码安装了mpich2。基本上这个过程包括这些:

sudo apt-get install build-essential
sudo apt-get install gfortran
cd /tmp
wget http://www.mpich.org/static/downloads/1.4.1/mpich2-1.4.1.tar.gz
tar xzvf mpich2-1.4.1.tar.gz  
cd mpich2-1.4.1/
./configure
make
sudo make install

以上是成功构建所需的命令。 完成这些步骤后,您可以使用以下命令检查安装:

mpich2version

如果你得到这样的输出:

MPICH2 Version:     1.4.1
MPICH2 Release date:    Wed Aug 24 14:40:04 CDT 2011
MPICH2 Device:      ch3:nemesis
MPICH2 configure:   
MPICH2 CC:  gcc    -O2
MPICH2 CXX:     c++   -O2
MPICH2 F77:     gfortran   -O2
MPICH2 FC:  f95   -O2

中提琴,你完成了。 您可以看一下this指导。对于较新版本,请检查 here .

关于ubuntu - E : Package 'mpich2' has no installation candidate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44498089/

相关文章:

bash - 从 bash 脚本运行 mpi 作业,批处理模式

linux - 如何在 Linux 中捕获同名但不同扩展名的文件并删除它们

c++ - Linux 上的 Lua C++ 开发文件 (/usr/bin/ld : cannot find -llua5. 1)

c - MPICH:MPICC ld:找不到文件:/usr/local/lib/gcc/4.9/libgfortran.3.dylib for architecture x86_64

linux - IMSL 和 MPI 之间的冲突

c - 创建 MPI 结构时出现问题,调用 MPI_Bcast 时出现错误 11

ubuntu - SSH 中的 "Connection closed by remote host",而在 Putty 中一切正常

MySQL 在 Ubuntu 根文件系统中使用空间,如何更改为使用

linux - Windows Linux Bash 运行时错误的变量名称/bin/sh -c "$(curl -fsS https://install.airshipcms.io)"

mpich - 由于 MPI init 中止,mpiexec 失败