このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
50_dialy:2014:11:28 [2015/05/08 06:01] – matsui | 50_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:// | ||
+ | |||
+ | === エラー === | ||
+ | |||
+ | < | ||
+ | config: invalid regexp for rule __PDS_FROM_2_EMAILS: | ||
+ | |||
+ | channel: lint check of update failed, channel failed | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 対処 ===== | ||
+ | |||
+ | 他のアプリもあるので、とりあえずsa-update だけ perl-5.10 を利用するよう修正しておきました。 | ||
+ | |||
+ | |||
+ | === perl-5.10.1 インストール === | ||
+ | |||
+ | <code console> | ||
+ | # wget http:// | ||
+ | # tar zxvf perl-5.10.1.tar.g | ||
+ | # cd perl-5.10.1 | ||
+ | # ./ | ||
+ | # make | ||
+ | # make install | ||
+ | </ | ||
+ | |||
+ | === 確認 === | ||
+ | <code consoel> | ||
+ | # / | ||
+ | |||
+ | 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 " | ||
+ | Internet, point your browser at http:// | ||
+ | </ | ||
+ | |||
+ | === cpanで必要なモジュールインストール === | ||
+ | |||
+ | <code console> | ||
+ | # / | ||
+ | |||
+ | cpan[1]> install Digest:: | ||
+ | cpan[1]> install Net::DNS | ||
+ | cpan[1]> install NetAddr::IP | ||
+ | cpan[1]> install HTML:: | ||
+ | cpan[1]> install HTML:: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | === sa-updateを修正 === | ||
+ | |||
+ | <code console> | ||
+ | # cp / | ||
+ | # diff -u / | ||
+ | --- / | ||
+ | +++ / | ||
+ | @@ -1,4 +1,4 @@ | ||
+ | -# | ||
+ | +# | ||
+ | |||
+ | eval 'exec / | ||
+ | if 0; # not running under some shell | ||
+ | </ | ||
+ | |||
+ | |||
+ | === これでエラーが出なくなる === | ||
+ | |||
+ | <code console> | ||
+ | # sa-update -v | ||
+ | Update finished, no fresh updates were available | ||
+ | </ | ||
+ | |||
+ | {{tag> |