@kyanny's blog

My life. Opinions are my own.

Module::Setup

Web+DB Press vol.48 を買って少し読んだので Module::Setup をインストールする。

[kyanny@kyanny-laptop2 ~/daily/2009-01-06]
$ module-setup Foo::Bar
Creating directory /Users/kyanny/.module-setup
Creating directory /Users/kyanny/.module-setup/plugins
Creating directory /Users/kyanny/.module-setup/flavors
Creating /Users/kyanny/.module-setup/flavors/default/template/Makefile.PL
Creating /Users/kyanny/.module-setup/flavors/default/template/t/00_compile.t
Creating /Users/kyanny/.module-setup/flavors/default/template/xt/01_podspell.t
Creating /Users/kyanny/.module-setup/flavors/default/template/xt/02_perlcritic.t
Creating /Users/kyanny/.module-setup/flavors/default/template/xt/03_pod.t
Creating /Users/kyanny/.module-setup/flavors/default/template/xt/perlcriticrc
Creating /Users/kyanny/.module-setup/flavors/default/template/Changes
Creating /Users/kyanny/.module-setup/flavors/default/template/lib/____var-module_path-var____.pm
Creating /Users/kyanny/.module-setup/flavors/default/template/MANIFEST.SKIP
Creating /Users/kyanny/.module-setup/flavors/default/template/README
Creating /Users/kyanny/.module-setup/flavors/default/template/.shipit
Creating directory /Users/kyanny/.module-setup/flavors/default/additional
Dump config /Users/kyanny/.module-setup/flavors/default/additional/config.yaml
Creating directory /Users/kyanny/.module-setup/flavors/default/plugins
Creating directory /Users/kyanny/.module-setup/flavors/default/template
Do you use SVN? [yN]n
Do you use SVK? [yN] [n] n
Do you use Git? [yN] [n] y
You chose version control system: Git
Weak references are not implemented in the version of perl at /opt/local/lib/perl5/site_perl/5.8.8/Module/Setup/Plugin.pm line 6
BEGIN failed--compilation aborted at /opt/local/lib/perl5/site_perl/5.8.8/Module/Setup/Plugin.pm line 6, <STDIN> line 3.
Compilation failed in require at (eval 109) line 3, <STDIN> line 3.
	...propagated at /opt/local/lib/perl5/5.8.8/base.pm line 85, <STDIN> line 3.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/site_perl/5.8.8/Module/Setup/Plugin/Config/Basic.pm line 4, <STDIN> line 3.
Compilation failed in require at (eval 108) line 3, <STDIN> line 3.
 at /opt/local/bin/module-setup line 12

こんなエラーが大量に出るので force install -> module-setup Foo とコマンド叩くだけでも出るので Weak reference がらみのエラーのときは Scalar::Util を入れ直す、のを思い出して tarball から入れ直したら無事動いた。

Git を選ぶと、コマンドを実行したディレクトリのなかに Foo ディレクトリができ、その中にいろいろファイルがおかれていて、 Foo ディレクトリ以下に .git ができてて git のバージョン管理下におかれる。

あとは git remote で github あたりを登録してやる。 flavor のカスタマイズとかは、まあまたこんどでいいや・・・。でもそこがウリのようにもみえる。