ユーザ用ツール

サイト用ツール


50_dialy:2014:11:28

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
50_dialy:2014:11:28 [2014/12/10 02:20] – 50_dialy:2014:11:20141128 renamed to 50_dialy:2014:11:28 matsui50_dialy:2014:11:28 [2018/07/04 01:16] (現在) matsui
行 1: 行 1:
 +====== 2014.05.28 sa-update Error ======
  
 +2日前くらいからsa-updateでエラーが出るようになってた。。。
 +
 +どうもperl 5.10に上げる必要があるようです。
 +[[https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7108]]
 +
 +=== エラー ===
 +
 +<code>
 +config: invalid regexp for rule __PDS_FROM_2_EMAILS: /^\W+([\w+.-]+\@[\w.-]+\.\w\w++)(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/i: Nested quantifiers in regex; marked by <-- HERE in m/(?i)^\W+([\w+.-]+\@[\w.-]+\.\w\w++ <-- HERE )(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/
 +
 +channel: lint check of update failed, channel failed
 +</code>
 +
 +
 +===== 対処 =====
 +
 +他のアプリもあるので、とりあえずsa-update だけ perl-5.10 を利用するよう修正しておきました。
 +
 +
 +=== perl-5.10.1 インストール ===
 +
 +<code console>
 +# wget http://www.cpan.org/src/5.0/perl-5.10.1.tar.g
 +# tar zxvf perl-5.10.1.tar.g
 +# cd perl-5.10.1
 +# ./configure.gnu --prefix /usr/local/perl-5.10.1
 +# make
 +# make install
 +</code>
 +
 +=== 確認 ===
 +<code consoel>
 +# /usr/local/perl-5.10.1/bin/perl -v
 +
 +This is perl, v5.10.1 (*) built for x86_64-linux
 +
 +Copyright 1987-2009, Larry Wall
 +
 +Perl may be copied only under the terms of either the Artistic License or the
 +GNU General Public License, which may be found in the Perl 5 source kit.
 +
 +Complete documentation for Perl, including FAQ lists, should be found on
 +this system using "man perl" or "perldoc perl" If you have access to the
 +Internet, point your browser at http://www.perl.org/, the Perl Home Page.
 +</code>
 +
 +=== cpanで必要なモジュールインストール ===
 +
 +<code console>
 +# /usr/local/perl-5.10.1/bin/cpan
 +
 +cpan[1]> install Digest::HMAC
 +cpan[1]> install Net::DNS
 +cpan[1]> install NetAddr::IP
 +cpan[1]> install HTML::Tagset
 +cpan[1]> install HTML::Parser
 +</code>
 +
 +
 +
 +=== sa-updateを修正 ===
 +
 +<code console>
 +# cp /usr/bin/sa-update /usr/bin/sa-update.org
 +# diff -u /usr/bin/sa-update.org /usr/bin/sa-update
 +--- /usr/bin/sa-update.org 2014-11-28 16:31:37.000000000 +0900
 ++++ /usr/bin/sa-update 2014-11-28 16:01:18.000000000 +0900
 +@@ -1,4 +1,4 @@
 +-#!/usr/bin/perl -T -w
 ++#!/usr/local/perl-5.10.1/bin/perl -T -w
 + 
 + eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}'
 +     if 0; # not running under some shell
 +</code>
 +
 +
 +=== これでエラーが出なくなる ===
 +
 +<code console>
 +# sa-update -v
 +Update finished, no fresh updates were available
 +</code>
 +
 +{{tag>日記 security}}