内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
50 日記
»
2014
»
11
»
2014.05.28 sa-update Error
トレース:
50_dialy:2014:11:28
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 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}}
50_dialy/2014/11/28.txt
· 最終更新: 2018/07/04 01:16 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ