ubuntu perl语言使用Math, 需要安装Math库

在ubuntu系统上安装perl后,无法使用库Math, 这是由于Math下的模块是单独安装的。

比如安装math::round模块,命令如下:

sudo apt-get update

sudo apt-get install libmath-round-perl

还有些需要安装模块:

sudo apt-get install -y libmodule-math-depends-perl

安装math::combinatorics模块:

sudo apt-get install libmath-combinatorics-perl

常用的安装Math下模块的命令是:libmath-模块小写名称-perl

原文地址:https://www.cnblogs.com/FuLiuWei/p/15743662.html