http://perl-users.jp/articles/advent-calendar/2009/casual/16.html
上サイトを参考にAlgorithm-SVMLight-0.09をインストールしようとしているのですが、
perl Build testを行った際にテストが失敗し、以下のようなエラーが出てしまいます。
エラーの理由を教えてください
Failed test 'use Algorithm::SVMLight;'
at t/01-basic.t line 5.
Tried to use 'Algorithm::SVMLight'.
Error: Perl API version v5.16.0 of CODE(0x7f92620639f0) does not match v5.18.0 at /System/Library/Perl/5.18/darwin-thread-multi-2level/DynaLoader.pm line 217.
Compilation failed in require at (eval 4) line 2.
BEGIN failed--compilation aborted at (eval 4) line 2.
Can't locate object method "_xs_init" via package "Algorithm::SVMLight" at /users/sugimotonoriya/Algorithm-SVMLight-0.09/blib/lib/Algorithm/SVMLight.pm line 20.
Looks like you planned 28 tests but ran 1.
Looks like you failed 1 test of 1 run.
Looks like your test exited with 255 just after 1.
t/01-basic.t ... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 28/28 subtests
t/02-custom.t .. Failed 4/4 subtests
Test Summary Report
t/01-basic.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 28 tests but ran 1.
OSのバージョンと、 perl -v の実行結果を教えてください。
返信ありがとうございます。
OSはOS X 10.10.5で、perl -vの実行結果は以下の通りでした。
This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2013, 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.
試してみましたが、perl Build testのところでエラーになりました。
途中のldconfigは無視して実行してみましたが、これがOSXだとどうすれば良いのか分かりませんでした。ldconfigはどのようになりましたか?
すみません、ldconfigは無視しておりました。
すみません、有効な情報は得られませんでした。
強引にCPANでインストールさせてはみましたが、正しく動作するかどうかが分かりません。
こちらの環境もOSX 10.10.5, Perl v5.18.2です。
強引にCPANでインストールというのはどのようにされましたでしょうか。
やり方を教えていただけませんか
分かりました。ここだと読みにくい&書きにくいので、あとでまとめて回答欄に記載します。
回答1件
あなたの回答
tips
プレビュー