- [JavaScript]jQuery(html, props)でinput要素を生成する場合の正しい書き方
- [その他]はてなダイアリーやめたい
- [Perl]Module::Buildを使ってると勝手にshebangが書き換わる
- [その他]直ったかも?!→Re: Googleカレンダーの「毎日の予定リスト」通知メールが止まらない
- [その他]20歳になりました!
- [Shell]lessでタブ文字を表示する
- [Emacs]ミニバッファの邪魔な履歴を削除する
- [Emacs]Emacsのiswitchbで、普段は*...*を完全無視して必要なときだけ出す設定
- [Emacs][Thunderbird]コマンドラインからMessage-IDを指定してメールを開く方法。それをOrgMode(Emacs)からも開けるようにする。
- [ソフトウェア][Perl]tiarraのSystem::SendMessage(ControlPort経由)のログをLog::Channel経由で記録する
2006年09月06日
■[Perl]解決:Scalar::Util::weakenを使おうとするとWeak references are not implementedで落ちる
Scalar::Util::weaken 使ってるスクリプトが全滅。 (略) なんでだろーとおもってとりあえず Scalar::Util 再インストールしたら直った。 謎過ぎる。。同じバージョンだったのに。Weak references are not implemented in the version of perl
うちでも同じ現象が発生しました。
$ perl -MScalar::Util=weaken -e 42 Weak references are not implemented in the version of perl at -e line 0 BEGIN failed--compilation aborted. $ perl -MScalar::Util -e 'print Scalar::Util->VERSION' 1.18
CLONtypesterさんと同じく再インストールしたら直りました。
$ cpan -fi Scalar::Util $ perl -MScalar::Util=weaken -e 42 $ perl -MScalar::Util -e 'print Scalar::Util->VERSION' 1.18
追記:XSバージョンかどうかで挙動が変わるようです。 Storable 2.15 on OSX 10.4 with maintperl fails "make test" | Perl | porters 試しにXSを使わずにやってみました。まず既存のScalar::Utilをアンインストール。
$ cpan cpan> look Scalar::Util $ perl Makefile.PL $ make uninstall (unlink ...をコピペ実行)そして、XSを使わずにテストしてみる。
$ make distclean $ perl Makefile.PL -pm $ make $ perl -Mblib -MScalar::Util=weaken -e 42 Weak references are not implemented in the version of perl at - line 0 BEGIN failed--compilation aborted.キタ━━━━ヽ(´Α` )ノ━━━━!!!! 次にXSバージョンでテストしてみる。
$ make distclean $ perl Makefile.PL -xs $ make $ perl -Mblib -MScalar::Util=weaken -e 42 $キタ━━━━ヽ(´∀` )ノ━━━━!!!! というわけで、バージョン番号が同じでもPurePerlバージョンかXSバージョンかの違いがあったということでした。 なお、Makefile.PLにオプションを指定しない場合は、Cコンパイラが利用可能であればXSになるようです。
トラックバック - http://d.hatena.ne.jp/holidays-l/20060906/p1
- Unknown::Programming - Scalar::Utilで急にハマった
- id:lopnor - solution: cpan not working ... ’Undefined subroutin...
- urapicoの日記(メモ的に) - Debianインストールしたら、コンパイル...
- 半径5メートル - Weak references are not implemented in the vers...
- うっかりScalar::Util::weakenが”Weak references are not impleme...
- pepponの日記 - vmwareでBundle::CPANしたらCompress::Zlib::gzopen...
- yum update をしたら,Scalar::Util が XS 版ではないものにバージ...
- thinking now... - catalyst.plが動かない
リンク元
- 484 http://d.hatena.ne.jp/lopnor/20071120/1195522440
- 240 http://shibuyajs.org/articles/2006/08/28/development-environment-conference
- 194 http://tech.bayashi.jp/archives/entry/perl/2009/002804.html
- 165 http://www.facebook.com/plugins/like.php?channel_url=http://d.hatena.ne.jp/holidays-l/20060906/p1?fb_xd_fragment#?=&cb=f32a4924c9f23be&relation=parent.parent&transport=fragment&extended_social_context=false&href=http:/%
- 74 http://d.hatena.ne.jp/peppon/20090730/1248971551
- 67 http://d.hatena.ne.jp/fbis/20071116/1195204278
- 59 http://www.google.co.jp/search?q=Weak+references+are+not+implemented+in+the+version+of+perl&start=0&hl=ja&lr=lang_ja&ie=utf-8&oe=utf-8&client=firefox&rls=org.mozilla:ja:official
- 48 http://d.hatena.ne.jp/srkzhr/20080706/1215314204
- 39 http://knoike.seesaa.net/article/156185138.html
- 30 http://reader.livedoor.com/reader/
