Johnny Morano wrote:
>Hi Paul,
>
>I use debian unstable :-D
>i just
>apt-get install apache-perl libapache-mod-perl
>
>and then i CPANed maypole to my laptop, and whoopie, it works :-D
>
>
using CPAN to install perl modules in debian is not a good idea! a later
.deb install of a module could clobber something. debian provides
dh-make-perl to create a .deb from cpan, i built debs of the only two
modules that are not in unstable ( Class::DBI::AsForm
Class::DBI::Plugin:Type). the rest of maypole can be apt-getted!, with
the exception of maypole itself of course, which also works with
dh-make-perl :)
I'm gona paste the notes i took when installing maypole below, just to
help out anybody searching google for 'maypole debian' as i did :).
Packages from the debian archives.
I'm installing using debian unstable, and i'd like to use as many
packages from the debian archive as possible. in cpan, modules are in
the form [Class]::[Subclass][(::Subclass)]. Debian uses a different
format to represent these modules. a perl module in debian looks like
this: lib[class]-[subclass]-[(subclass)]-perl. so before using
dh-make-perl to create a custom .deb, we'll look in debian for the equiv.
you'll need dh-make-perl. and a c compiler. oh .. and perl should be
installed too.
so, to build a .deb of maypole , first i did :
dh-make-perl --build --cpan Maypole
which turns up some errors concerning which modules we should have
installed:
Looks good
Warning: prerequisite Apache::Request 0 not found.
---> available in debian as libapache-request-perl - Generic
Apache Request Library
Warning: prerequisite CGI::Untaint 0 not found.
---> debian : libcgi-untaint-perl,requires libexporter-lite-perl
libuniversal-exports-perl, which it installs automatically.
Warning: prerequisite Class::DBI 0.96 not found.
---> debian: libclass-dbi-perl, requires ::
libclass-accessor-perl libclass-data-inheritable-perl
libclass-trigger-perl libclass-whitehole-perl libdbi-perl
libdbix-contextualfetch-perl libima-dbi-perl
libio-stringy-perl libnet-daemon-perl libplrpc-perl
libuniversal-moniker-perl
Warning: prerequisite Class::DBI::AbstractSearch 0 not found.
---> debian : libclass-dbi-abstractsearch-perl
libsql-abstract-perl
Warning: prerequisite Class::DBI::AsForm 2.2 not found.
---> this one is the first on the list not in debian. So
dh-make-perl to the rescue.
---> $ dh-make-perl --cpan Class::DBI::AsForm --build
---> # dpkg -i libclass-dbi-asform-perl_2.3-1_all.deb
---> this also requires Class::DBI::Plugin:Type, which is not in
debian.
---> $ dh-make-perl --cpan Class::DBI::Plugin::Type --build
---> # dpkg -i libclass-dbi-plugin-type-perl_0.02-1_all.deb
Warning: prerequisite Class::DBI::FromCGI 0.94 not found.
---> debian: libclass-dbi-fromcgi-perl
Warning: prerequisite Class::DBI::Loader 0.02 not found.
---> debian: libclass-dbi-loader-perl
Warning: prerequisite Class::DBI::Loader::Relationship 0 not found.
---> debian: libclass-dbi-loader-relationship-perl
liblingua-en-inflect-number-perl liblingua-en-inflect-perl
Warning: prerequisite Class::DBI::Pager 0 not found.
---> debian : libclass-dbi-pager-perl libdata-page-perl
Warning: prerequisite Class::DBI::Plugin::RetrieveAll 0 not found.
---> debian: libclass-dbi-plugin-retrieveall-perl
Warning: prerequisite Template 0 not found.
---> debian: libappconfig-perl libtemplate-perl
---> i also recommend a local copy of the TT docs :
libtemplate-perl-doc
Warning: prerequisite Template::Plugin::Class 0 not found.
---> debian : libtemplate-plugin-class-perl
---> i also want to investigate
libtemplate-plugin-calendar-simple-perl, as i probably gona need it.
Warning: prerequisite UNIVERSAL::moniker 0 not found.
---> debian: was installed by an earlier package.
Warning: prerequisite UNIVERSAL::require 0 not found.
---> this is odd, debian select libuniversal-export-perl instead
.. we'll see if it works.
Writing Makefile for Maypole
Making SQLite DB
---> we need to install libdbd-sqlite-perl sqlite sqlite-doc
At this point maypole is installed, but we'll need a few more package to
get it running.
---> libdbd-pg-perl libclass-dbi-pg-perl : i'm using postgres.
---> libpg-perl libpgtcl postgresql postgresql-client : so i'll
actually need postgres as well.
After all that mess, don't forget to :
dpkg -i libmaypole-perl_1.7-1_all.deb
drewc
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT