- 注册时间
- 2011-10-20
- 最后登录
- 2012-5-9
- 在线时间
- 27 小时
- 阅读权限
- 90
- 积分
- 6032
- 帖子
- 95
- 主题
- 2
- 精华
- 0
- UID
- 15807
 
 - 注册时间
- 2011-10-20
- 最后登录
- 2012-5-9
- 在线时间
- 27 小时
- 阅读权限
- 90
- 积分
- 6032
- 帖子
- 95
- 主题
- 2
- 精华
- 0
- UID
- 15807
|
发表于 2011-12-12 21:31:51
|显示全部楼层
我在安装Geo-IP-Purperl的时候,没有1.14版本的了,找了半天,只有1.17的,编译测试的时候报错了...
[root@master sources]# tar zxf Geo-IP-PurePerl-1.17.tar.gz
[root@master sources]# cd Geo-IP-PurePerl-1.17
[root@master Geo-IP-PurePerl-1.17]#
[root@master Geo-IP-PurePerl-1.17]#
[root@master Geo-IP-PurePerl-1.17]#
[root@master Geo-IP-PurePerl-1.17]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Geo::IP: urePerl
[root@master Geo-IP-PurePerl-1.17]# make && make test && make install
cp lib/Geo/IP/PurePerl.pm blib/lib/Geo/IP/PurePerl.pm
cp geoip-lookup blib/script/geoip-lookup
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/geoip-lookup
Manifying blib/man1/geoip-lookup.1
Manifying blib/man3/Geo::IP: urePerl.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/0_base..........ok
t/1_lookup........ok
t/2_namelookup....ok 1/12# Test 11 got: <UNDEF> (t/2_namelookup.t at line 31 fail #11)
# Expected: "US"
# t/2_namelookup.t line 31 is: ok($country, $exp_country);
t/2_namelookup....NOK 11# Test 12 got: <UNDEF> (t/2_namelookup.t at line 31 fail #12)
# Expected: "RU"
t/2_namelookup....FAILED tests 11-12
Failed 2/12 tests, 83.33% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/2_namelookup.t 12 2 16.67% 11-12
Failed 1/3 test scripts, 66.67% okay. 2/31 subtests failed, 93.55% okay.
make: *** [test_dynamic] 错误 255
[root@master Geo-IP-PurePerl-1.17]# make && make install
Installing /usr/lib/perl5/site_perl/5.8.8/Geo/IP/PurePerl.pm
Installing /usr/share/man/man1/geoip-lookup.1
Installing /usr/share/man/man3/Geo::IP: urePerl.3pm
Installing /usr/bin/geoip-lookup
Writing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Geo/IP/PurePerl/.packlist
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
[root@master Geo-IP-PurePerl-1.17]#
不知道会不会有影响,我的是RHEL5.0,测试进行中.... |
|