use Module::Build; my $build = Module::Build->new ( dist_name => 'mytest', dist_version => '1.0.0', # module_name => 'Foo', requires => { 'Data::Dumper' => 0, 'IO::Socket' => 0, 'Games::Cards' => 0, }, installation_path => { "/home/pepper/new/" }, config => { cc => 'gcc', ld => 'gcc' }, ); $build->install_path(conf => $installation_path); #$build->dispatch('build'); #$build->dispatch('test', verbose => 1); $build->dispatch('installdeps'); $build->create_build_script;