用户工具

站点工具


zh:notes:install_parscit

这是本文档旧的修订版!


安装ParsCit

系统环境

CentOS 6.8 (64 bits)

升级Perl

> wget https://www.cpan.org/src/5.0/perl-5.30.0.tar.gz
> tar -zxvf perl-5.30.0.tar.gz
> cd perl-5.30.0
> ./Configure -des -Dprefix=/usr/local/perl -Dusethreads -Uversiononly
> make
> make install
 
# 重定向
> mv /usr/bin/perl /usr/bin/perl.bak
> ln -s /usr/local/perl/bin/perl /usr/bin/perl
 
# 查看版本号
> perl --version

Install perl-CPAN and expat

> yum install perl-CPAN
# 安装XML::Parser库下面这两个包
> yum install expat
> yum install expat-devel

Install Perl libraries

#To check whether an interested libary is installed or not
perl -MClass::Struct -e "print\"model installed\n\"" 

The folling Perl libraries need to be installed:

  1. Class::Struct
  2. Getopt::Long
  3. Getopt::Std
  4. File::Basename
  5. File::Spec
  6. FindBin
  7. HTML::Entities
  8. IO::File
  9. POSIX
  10. XML::Parser
  11. XML::Twig
  12. XML::Writer
  13. XML::Writer::String

Generally, the libraries Class::Struct, Getopt::Long

zh/notes/install_parscit.1564723572.txt.gz · 最后更改: 2019/08/02 13:26 由 pzczxs