解决libgmp.so缺失问题
在 Ubuntu 20.04.3 系统里学 haskell,命令行打开 GHCi 后提示缺失 libgmp.so。
GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help
<no location info>: warning: [-Wmissed-extra-shared-lib]
libgmp.so: cannot open shared object file: No such file or directory
It's OK if you don't want to use symbols from it directly.
(the package DLL is loaded by the system linker
which manages dependencies by itself).
直接安装可以解决。
sudo apt install libgmp-dev

浙公网安备 33010602011771号