我该如何安装mpich
库?我试过了编译 WRF但我无法安装它。
答案1
去http://www.mpich.org/downloads/然后点击Xenial
Ubuntu 16.04。这将带您到此处:https://packages.ubuntu.com/xenial/mpich。然后点击amd64
,您就在这里:https://packages.ubuntu.com/xenial/amd64/mpich/download. 其中写道:
如果您正在运行 Ubuntu,强烈建议使用 aptitude 或 synaptic 等包管理器来下载和安装包,而不是通过此网站手动进行。
因此,无需手动安装,而是使用:
$ sudo apt install mpich
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
cpp-5 g++-5 gcc-5 gcc-5-base gfortran gfortran-5 hwloc-nox libasan2 libatomic1
libcc1-0 libcilkrts5 libcr-dev libcr0 libgcc-5-dev libgfortran-5-dev libgfortran3
libgomp1 libhwloc-plugins libhwloc5 libitm1 liblsan0 libmpich-dev libmpich12 libmpx0
libquadmath0 libstdc++-5-dev libstdc++6 libtsan0 libubsan0
Suggested packages:
gcc-5-locales g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-5-multilib libgcc1-dbg
libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg gfortran-multilib
gfortran-doc gfortran-5-multilib gfortran-5-doc libgfortran3-dbg blcr-dkms
libhwloc-contrib-plugins libstdc++-5-doc blcr-util mpich-doc
The following NEW packages will be installed:
gfortran gfortran-5 hwloc-nox libcr-dev libcr0 libgfortran-5-dev libhwloc-plugins
libhwloc5 libmpich-dev libmpich12 mpich
The following packages will be upgraded:
cpp-5 g++-5 gcc-5 gcc-5-base libasan2 libatomic1 libcc1-0 libcilkrts5 libgcc-5-dev
libgfortran3 libgomp1 libitm1 liblsan0 libmpx0 libquadmath0 libstdc++-5-dev libstdc++6
libtsan0 libubsan0
19 upgraded, 11 newly installed, 0 to remove and 213 not upgraded.
Need to get 41.0 MB of archives.
After this operation, 39.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
此时单击y
安装该包。
无需像您尝试的那样从源代码进行编译。