安装
环境:
cenos7, X86_64
kernel: 3.10.0-862.el7.x86_64
依赖安装包
1) graphviz, perl-ExtUtils-MakeMaker
1 2yum install graphviz yum install perl-ExtUtils-MakeMaker2) 通过cpan进行安装
- perl-CPAN.noarch
1yum install perl-CPAN3) 运行cpan
1 2 3 4 5 6cpan> install Graph::Easy ... Reading '/root/.cpan/sources/modules/03modlist.data.gz' DONE Writing /root/.cpan/Metadata Graph::Easy is up to date (0.76).下载安装包安装
1) 通过https://metacpan.org查找,Graph::Easy下载, 验证时需要安装 Test::More
1 2wget https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Graph-Easy-0.76.tar.gz wget https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.302168.tar.gz2) 编译
1 2 3 4 5 6 7$ tar -zxvf Test-Simple-1.302167.tar.gz $ cd Test-Simple-1.302167 $ make install $ tar -zxvf Graph-Easy-0.76.tar.gz $ perl Makefile.PL $ make test $ make install
demo
画个图验证一下
| |
输出结果,看上去还不错 :)
| |
相关文档
Graph::Easy - Manual - Introduction