linux下perl及cgi.pm的安装(perl-5.22.1)
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
perl的安装很容易,但是在使用cgi的时候出现了问题。
下面是步骤:
1.下载并解压perl-5.22.1(或者其他什么版本)
2.执行./Configure -des -Dprefix=/usr/local/perl
3.make; make install;
4.建立软链接到/usr/bin
ln -s /usr/local/perl/bin/perl /usr/bin/perl
这里注意一下,若是之前安装过perl的话,需要先把/usr/local/下的perl改名或者删除什么的
5.如果没有意外,这就安装成功了。可以使用perl -v查看版本信息什么的
然后,到了安装CGI.pm的步骤:
1.执行perl -MCPAN -e shell
2.执行install CGI.pm(这里我试过install CGI,发现不行)
3.没有意外的话这个模块也就安装成功了
可以在终端里执行perl -MCGI -e 'print "CGI.pm version $CGI::VERSION\n";' 这条命令来验证是否安装成功。
如果出现 CGI.pm version 4.26 这种显示CGI版本的文本,恭喜你.
如果出现 Can't locate CGI.pm in @INC....... 这种东西的话,那么很不幸...你可以去找其他办法了




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)