1.必须安装gcc编译器
2.mod_headers和mod_expires模块安装这两个模块
解决方法:启用apache的mod_headers和mod_expires
sudo a2enmod headers;sudo a2enmod expires; sudo service apache2 restart
2. mod_perl模块
解决方法:安装mod_perl默认包
sudo apt-get install libapache2-mod-perl2
3. XML-Twig模块
解决方法:安装ibxml-twig-perl
sudo apt-get install libxml-twig-perl
4. Encode::Detect模块
sudo apt-get install build-essential
5. Apache2::SizeLimit
sudo a2enmod perl
sudo apt-get install libapache2-mod-perl2
/usr/bin/perl install-module.pl Apache2::SizeLimit
6. Chart::Lines模块
sudo apt-get install build-essential flex bison gnome-common libglib2.0-dev gtk-doc-tools autoconf2.13 automake1.9 libgtk2.0-dev libdbus-glib-1-dev libwnck-dev libpanel-applet2-dev libgnome-menu-dev g++
7.DBD-mysql模块
sudo apt install libmysqlclient-dev
8.GD模块
sudo apt-get install cmake libgtk2.0-dev
sudo apt-get install pkg-config
sudo apt-get install libgd-dev
/usr/bin/perl install-module.pl GD
9.DBD-Pg模块
apt-get install libdbd-pg-perl
查看缺少哪些块对其进行下载安装即可.
常出现缺少 DBD-Pg mod_perl GD
wget http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-2.19.3.tar.gz
wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.49.tar.gz
wget http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/mod_perl-2.0.7.tar.gz
模块安装方法
bash# tar -xzvf <module>.tar.gz
bash# cd <module>
perl Makefile.PL
make
make test
make install
参考: