[root@localhost SVN-Notify-2.80]# tar xvf SVN-Notify-2.80.tar.gz
[root@localhost SVN-Notify-2.80]# cd SVN-Notify-2.80
[root@localhost SVN-Notify-2.80]# perl Build.PL
Checking prerequisites...recommends:
* Test::Pod (1.40) is installed, but we prefer to have 1.41
* Text::Trac is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Run 'Build installdeps' to install missing prerequisites.
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'SVN-Notify' version '2.80'
解决方法非常简单,按照提示来就行了,执行:
[root@localhost SVN-Notify-2.80]# ./Build installdeps
信息如下,则表示安装依赖文件成功(我截取的只是部分信息):
t/00-load.t ............ ok
t/all_pod_files.t ...... ok
t/cut-outside-block.t .. ok
t/good.t ............... ok
t/item-ordering.t ...... ok
t/load.t ............... ok
t/missing-file.t ....... ok
t/selftest.t ........... ok
t/spaced-directives.t .. skipped: Not written yet
t/unknown-directive.t .. ok
All tests successful.
Files=10, Tests=19, 1 wallclock secs ( 0.07 usr 0.02 sys + 0.59 cusr 0.07 csys = 0.75 CPU)
Result: PASS
ETHER/Test-Pod-1.51.tar.gz
/usr/bin/make test -- OK
Running make install
Prepending /root/.cpan/build/Test-Pod-1.51-QOe4Z5/blib/arch /root/.cpan/build/Test-Pod-1.51-QOe4Z5/blib/lib to PERL5LIB for 'install'
Installing /usr/local/share/perl5/Test/Pod.pm
Installing /usr/local/share/man/man3/Test::Pod.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
ETHER/Test-Pod-1.51.tar.gz
/usr/bin/make install -- OK
再来编译安装:
[root@localhost SVN-Notify-2.80]# perl Build.PL
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'SVN-Notify' version '2.80'
现在测试安装就可以了,如下:
[root@localhost SVN-Notify-2.80]# ./Build
Building SVN-Notify
[root@localhost SVN-Notify-2.80]# ./Build test
t/alt.t ............ ok
t/base.t ........... ok
t/errors.t ......... ok
t/filter.t ......... ok
t/html.t ........... ok
t/htmlcolordiff.t .. ok
t/options.t ........ ok
t/pod-coverage.t ... ok
t/pod.t ............ ok
t/script.t ......... ok
t/smtp.t ........... ok
All tests successful.
Files=11, Tests=955, 9 wallclock secs ( 0.23 usr 0.05 sys + 7.98 cusr 2.09 csys = 10.35 CPU)
Result: PASS
[root@localhost SVN-Notify-2.80]# ./Build install
Building SVN-Notify
Installing /usr/local/share/man/man1/svnnotify.1
Installing /usr/local/share/perl5/SVN/Notify.pm
Installing /usr/local/share/perl5/SVN/Notify/HTML.pm
Installing /usr/local/share/perl5/SVN/Notify/Alternative.pm
Installing /usr/local/share/perl5/SVN/Notify/Filter.pm
Installing /usr/local/share/perl5/SVN/Notify/Filter/Trac.pm
Installing /usr/local/share/perl5/SVN/Notify/HTML/ColorDiff.pm
Installing /usr/local/share/man/man3/SVN::Notify::Filter.3pm
Installing /usr/local/share/man/man3/SVN::Notify.3pm
Installing /usr/local/share/man/man3/SVN::Notify::Alternative.3pm
Installing /usr/local/share/man/man3/SVN::Notify::HTML::ColorDiff.3pm
Installing /usr/local/share/man/man3/SVN::Notify::HTML.3pm
Installing /usr/local/share/man/man3/SVN::Notify::Filter::Trac.3pm
Installing /usr/local/bin/svnnotify
[root@localhost SVN-Notify-2.80]#