gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 14:37:48 25 4
gpt4 key购买 nike

我安装了 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com