Re: [Module::Build] Getting started help
Status: Beta
Brought to you by:
kwilliams
From: Lindiakos, F. <fli...@mi...> - 2006-06-21 17:27:11
|
Thanks so much, that all worked perfectly. =20 But I have a followup question, is there a way to actually install this with the CPAN shell from my tar.gz? -- fotios -----Original Message----- From: mod...@li... [mailto:mod...@li...] On Behalf Of Steffen Schwigon Sent: Wednesday, June 21, 2006 3:09 AM To: mod...@li... Subject: Re: [Module::Build] Getting started help "Lindiakos, Fotios" <fli...@mi...> writes: > First, is there a way for me to put something like hc.conf into /etc > (assuming I have permission to write there. Where would I have to > put the file in the package (under lib, or can I have an etc folder > or something too)? I would create a subdir 'etc', put hc.conf into that directory and add the following config to Build.PL: my $build =3D Module::Build->new ( # # ... all stuff you already have # =20 etc_files =3D> { 'etc/hc.conf' =3D> 'etc/hc.conf' }, install_path =3D> { 'etc' =3D> '/etc' } ); $build->add_build_element('etc'); $build->create_build_script; $build->create_makefile_pl; But I don't know how to make that absolute path '/etc' to work with a given '--prefix=3D/somewhere' option. Maybe there's a better way. > Second, how can I have CPAN automatically build missing dependencies, > or query for them or something. That should already work automatically because you specified them with 'requires =3D> {...}'. The CPAN shell will install missing prerequisites if you configured it to "follow automatically" or "ask". > On that note (not M::B specific), is there a way that I can test > using CPAN to install my modules? I always do manually what the CPAN shell does, e.g. this way: # from your project dir ./Build dist cp My-Dist-0.1.tar.gz /tmp/ =20 # now everything in /tmp dir cd /tmp tar xzf My-Dist-0.1.tar.gz cd My-Dist-0.1 perl Build.PL ./Build ./Build test ./Build fakeinstall # or install =20 GreetinX Steffen=20 --=20 Steffen Schwigon <sch...@we...> Dresden Perl Mongers <http://dresden-pm.org/> _______________________________________________ Module-build-general mailing list Mod...@li... https://lists.sourceforge.net/lists/listinfo/module-build-general |