CentOS 5 の RPM の Perl は未だに 例のパッチが当たったまま

前の記事で shot さんからコメントをもらったので再度 perl のバージョンアップしてみることに。RPM は perl-5.8.8-15.el5_2.1.i386.rpm かな。

yum update で perl をアップデートしていい感じに

Errno architecture (i386-linux-thread-multi-2.6.18-8.el5) does not match executable architecture (i386-linux-thread-multi-2.6.18-53.1.14.el5pae) at /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Catalyst/Engine.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Catalyst/Engine.pm line 7.
Compilation failed in require at (eval 2) line 3.
      ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Catalyst/Engine/CGI.pm line 4.
Compilation failed in require at (eval 1) line 3.
      ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm line 4.
Compilation failed in require at /home/travail/public_html/SVNHOME/Shiori/script/shiori_server.pl line 7.
BEGIN failed--compilation aborted at /home/travail/public_html/SVNHOME/Shiori/script/shiori_server.pl line 8.

こんなエラーが出たら、Errno と Scalar::Util を rebuild。
まずは Errno から。

[travail@cabane]/tmp% wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Errno-1.10.tar.gz
[travail@cabane]/tmp% tar xzvf Errno-1.10.tar.gz
[travail@cabane]/tmp% cd Errno-1.10
[travail@cabane]/tmp/Errno-1.10% perl Makefile.PL
[travail@cabane]/tmp/Errno-1.10% make
[travail@cabane]/tmp/Errno-1.10% make test
[travail@cabane]/tmp/Errno-1.10% sudo make install

続いて、Scalar::Util

[travail@cabane]/tmp% wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz
[travail@cabane]/tmp% tar xzvf Scalar-List-Utils-1.19.tar.gz
[travail@cabane]/tmp% cd Scalar-List-Utils-1.19
[travail@cabane]/tmp/Scalar-List-Utils-1.19% perl Makefile.PL
[travail@cabane]/tmp/Scalar-List-Utils-1.19% make
[travail@cabane]/tmp/Scalar-List-Utils-1.19% make test
[travail@cabane]/tmp/Scalar-List-Utils-1.19% sudo make install

Errno と Scalar::Util の rebuild が済んだら DBIC を使ったスクリプトを動かしてみると

WARNING: DBIx::Class::StartupCheck: This version of Perl is likely to exhibit
extremely slow performance for certain critical operations.
Please consider recompiling Perl.  For more information, see
https://bugzilla.redhat.com/show_bug.cgi?id=196836 and/or
http://lists.scsys.co.uk/pipermail/dbix-class/2007-October/005119.html.
You can suppress this message by setting DBIC_NO_WARN_BAD_PERL=1 in your
environment.

なんて警告が。
CentOS 5 の perl は未だに例のパッチが当たったままらしいです。ということで、例のパッチ取り除いた自前の RPM を入れ直しました。う~ん。

Comments:2

dayflower 2009年8月 7日 14:09

すんごい遅レスですが,
Perl の例のバグは,まさにその perl-5.8.8-15.el5_2.1.i386.rpm で治りました。
http://d.hatena.ne.jp/dayflower/20081226/1230273063

で DBIx::Class::StartupCheck は簡便的なチェックしかしてなかったので
治ったにも関わらずバグがあるといわれてしまう状況でした。
(これは DBIx-Class-0.08099_05 で治ってます)

(この記事は一年近く前の話ですし)DBIC も RHEL の Perl RPM もそれ以降にだいぶ更新されてるので
現在ではすでにお気づきとは思いましたが,念のためコメントを残させていただきます。

ちわ 2009年8月 8日 04:06

> dayflower さん

こんな古い記事にまでコメント頂いてありがとうございます。
dayflower さんのように「RHEL 5(.2) の perl-5.8.8-15.el5_2.1 で例のバグが治っていた」というような
記事を書いておくべきですね。
約1年前の記事にしても今となっては間違った情報なので今回コメント頂いておいてよかったです。
ありがとうございます。

Comment Form

Trackbacks:0

TrackBack URL for this entry
http://hibinokoto.jp/mt/mt-tb.cgi/296
Listed below are links to weblogs that reference
CentOS 5 の RPM の Perl は未だに 例のパッチが当たったまま from 日々のこと

Home > 仕事のこと > CentOS 5 の RPM の Perl は未だに 例のパッチが当たったまま

Search
Feeds

Return to page top