On Sat, Nov 01, 2003 at 04:20:13AM -0800, Soumyadeep nandi wrote: > I myself wrote a Makefile.PL. That is working fine > now, I can install the module in the proper directory. > I would like to show you my Makefile.PL. > > use ExtUtils::MakeMaker; > WriteMakefile( > 'NAME' => 'Bio::Tools::Local::Plantgenome', > 'VERSION_FROM' => 'Plantgenome.pm', > 'AUTHOR' => 'Soumyadeep Nandi > <[EMAIL PROTECTED]>', > 'INSTALLARCHLIB' => > '/usr/lib/perl5/site_perl/5.8.0/Bio/Tools/Local',
This is a mistake. You shouldn't be setting it and its set wrong in several ways. If you were to set it it would be /usr/lib/perl5/5.8.0/i386-linux, but that's the default anyway. Again, your module is called Bio::Tools::Local::Plantgenome so the module file is Bio/Tools/Local/Plantgenome.pm. This goes into the directory /usr/lib/perl5/5.8.0/i386-linux. But fortunately for you INSTALLARCHLIB its not being used. Because you have INSTALLDIRS set to 'site', it will use INSTALLSITEARCHLIB instead of INSTALLARCHLIB. Because you didn't screw around with INSTALLSITEARCHLIB your module managed to install correctly. Just remove that line. And stop screwing with the INSTALL* settings! > 'INSTALLDIRS' => 'site', This is unnecessary. 'site' is the default for INSTALLDIRS so its not doing anything setting INSTALLDIRS. > But, in my system when I run "make dist" after "perl > Makefile.PL" in the directory Local where Makefile.PL > and Plantgenome.pm residing I am getting the following > output: > rm -rf Bio-Tools-Local-Plantgenome-0.01 > /usr/bin/perl "-MExtUtils::Manifest=manicopy,maniread" > \ > -e > "manicopy(maniread(),'Bio-Tools-Local-Plantgenome-0.01', > 'best');" > MANIFEST: No such file or directory at > /usr/lib/perl5/5.8.0/ExtUtils/Manifest.pm line 182. You don't have a MANIFEST file. There is a tutorial here, please read it http://www.makemaker.org/src/ExtUtils-MakeMaker-snap/lib/ExtUtils/MakeMaker/Tutorial.pod > mkdir Bio-Tools-Local-Plantgenome-0.01 > tar cvf Bio-Tools-Local-Plantgenome-0.01.tar > Bio-Tools-Local-Plantgenome-0.01 > Bio-Tools-Local-Plantgenome-0.01/ > rm -rf Bio-Tools-Local-Plantgenome-0.01 > gzip --best Bio-Tools-Local-Plantgenome-0.01.tar > -----End of the output of make dist------- > > And after untaring the tar.gz file in some other > system I cant find any file in the untared directory. 'make dist' reads what files it should put in the tarball from the MANIFEST file. Since you have no MANIFEST it produced an empty tarball. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ It's Flypaper Licking time!
