岩手からこんにちは ☆彡 perl とかウェブ系なブログ

はてなダイアリーからひっこしましたよ http://d.hatena.ne.jp/rosiro

phantomjs を使えるperl モジュールWightをつかおうとしたらエラー

https://github.com/motemen/Wight

perl Makefile.PLしたらえらーった

include Wight/inc/Module/Install.pm

String found where operator expected at Makefile.PL line 7, near "author_tests 'xt'"

        (Do you need to predeclare author_tests?)

String found where operator expected at Makefile.PL line 62, near "readme_markdown_from 'lib/Wight.pm'"

        (Do you need to predeclare readme_markdown_from?)

syntax error at Makefile.PL line 7, near "author_tests 'xt'"

syntax error at Makefile.PL line 62, near "readme_markdown_from 'lib/Wight.pm'"

Bareword "auto_set_repository" not allowed while "strict subs" in use at Makefile.PL line 59.

Execution of Makefile.PL aborted due to compilation errors.

 

Module::Install::AuthorTests

Module::Install::ReadmeMarkdownFromPod

Module::Install::Repository

があればいい話みたいです。

 

追記 結局うまくいかなかった rakefileがないとかどうとか

 

追記

https://github.com/jonleighton/poltergeist

こいつが必要

WightのMakefile.PLの

 my $poltergeist = Path::Class::dir('../poltergeist');

をpoltergaistのパスに合わせた

で、いけそうなんだけど、結論としてrubyのバージョンが古いのでpoltergeistをインストールできない・・・って事で めんどくせーな < いまここ

phantomjsを直接いじろうとおもったけど、こっちはこっちでjs でテスト各QUnitいれたり結構めんどくさい。

なのでとりあえずrubyいれてみようとおもう

 

追記 

JsTestDriverの存在をしる