Subject: | First installation issues |
I just installed Dist::Zilla after reading about it in the advent calendar.
1. You should include some hints about how to configure it immediately after the installation (this would be lovely in the advent calendar article as well I think). The "new" command just didn't work out of the box for me:
1. You should include some hints about how to configure it immediately after the installation (this would be lovely in the advent calendar article as well I think). The "new" command just didn't work out of the box for me:
poletti@Polebian:dzilla$ dzil new Just-A-Try
will create new dist Just-A-Try in obj(/home/poletti/sviluppo/perl/dzilla/Just-A-Try)
$VAR1 = {};
no 'author' set in config and cannot be determined by OS at /opt/perl-5.8.8/lib/site_perl/5.8.8/App/Cmd.pm line 376
It creates the directory, but with a zero-bytes dist.ini file. For the records, I'm running Linux Debian with a reasonably up-to-date version.
2. After craving in the docs, I finally found in the POD for the 'new' subcommand of dzil that I should have a ~/.dzil file. Please don't assume this is obvious! This is what happened:
Well... Houston we have a problem! Again, the generated dist.ini file is empty.
3. A quick look in the sources seems to blame the use of a simple ~/.dzil *file* instead of a directory with a config file inside, so probably this should be fixed or removed from the docs of Dist:.*:new (and possibly from the code). For now, I'm switching to a ~/.dzil directory, which eventually seems to work.
Cheers,
Flavio.
It creates the directory, but with a zero-bytes dist.ini file. For the records, I'm running Linux Debian with a reasonably up-to-date version.
2. After craving in the docs, I finally found in the POD for the 'new' subcommand of dzil that I should have a ~/.dzil file. Please don't assume this is obvious! This is what happened:
poletti@Polebian:dzilla$ cat ~/.dzil
[=Dist::Zilla::App::Command::new]
author = Flavio Poletti
initial_version = 0.1.0
default_license = Perl_5
poletti@Polebian:dzilla$ dzil new Just-A-Try
will create new dist Just-A-Try in obj(/home/poletti/sviluppo/perl/dzilla/Just-A-Try)
multiple possible config plugins found: Config::MVP::Reader::INI Dist::Zilla::Config::Perl at /opt/perl-5.8.8/lib/site_perl/5.8.8/Config/MVP/Reader/Finder.pm line 41
Config::MVP::Reader::Finder::_which_plugin('Dist::Zilla::Config::Finder=HASH(0x963ad8c)', 'HASH(0x966c2b4)') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/Config/MVP/Reader/Finder.pm line 49
Config::MVP::Reader::Finder::read_config('Dist::Zilla::Config::Finder=HASH(0x963ad8c)', 'HASH(0x966c2b4)') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/Dist/Zilla/App.pm line 29
Dist::Zilla::App::config('Dist::Zilla::App=HASH(0x959fdb0)') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/Dist/Zilla/App.pm line 39
Dist::Zilla::App::config_for('Dist::Zilla::App=HASH(0x959fdb0)', 'Dist::Zilla::App::Command::new') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/Dist/Zilla/App/Command.pm line 24
Dist::Zilla::App::Command::config('Dist::Zilla::App::Command::new=HASH(0x96287e4)') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/Dist/Zilla/App/Command/new.pm line 70
Dist::Zilla::App::Command::new::execute('Dist::Zilla::App::Command::new=HASH(0x96287e4)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x95fdf38)', 'ARRAY(0x8eade7c)') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/App/Cmd.pm line 376
App::Cmd::execute_command('Dist::Zilla::App=HASH(0x959fdb0)', 'Dist::Zilla::App::Command::new=HASH(0x96287e4)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x95fdf38)', 'Just-A-Try') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/App/Cmd.pm line 267
App::Cmd::run('Dist::Zilla::App') called at /opt/perl/bin/dzil line 9
poletti@Polebian:dzilla$ perldoc Dist::Zilla::App | grep version
version 1.093400
poletti@Polebian:dzilla$ dzil --version
/opt/perl/bin/dzil
(Getopt::Long::GetOptions version 2.35; Perl version 5.8.8)
poletti@Polebian:dzilla$ perl -MMoose -le 'print $Moose::VERSION'
0.93
Well... Houston we have a problem! Again, the generated dist.ini file is empty.
3. A quick look in the sources seems to blame the use of a simple ~/.dzil *file* instead of a directory with a config file inside, so probably this should be fixed or removed from the docs of Dist:.*:new (and possibly from the code). For now, I'm switching to a ~/.dzil directory, which eventually seems to work.
Cheers,
Flavio.