[kw-pm] mangling publican 1.99 to install on ubuntu
Robert P. J. Day
rpjday at crashcourse.ca
Thu May 27 14:55:33 PDT 2010
what the heck, i'll repost this here since it's turning out to be
primarily a perl issue and i'd be delighted if someone could verify
the right way to do this since i'm going to try to be using it
publican is a docbook/xml-based publishing program written by the
folks at red hat for their online docs, and they've recently added
another package, publican-website, for websites of course.
the two "noarch" rpm files are here:
i took a chance, downloaded them, and used "alien" to convert them to
.deb files. the saving grace here is that, since they're noarch,
they're less likely to have incompatibilities. and as for rpm
scriptlets incorporated into those packages, the website package had
postinstall scriptlet (using /bin/sh):
/usr/bin/perl -e 'use Publican::WebSite; my $ws = Publican::WebSite->new(); $ws->regen_all_toc();'
so, really, given the structure of those rpm packages, my only
concerns were dependencies and making sure the perl INC path was set
after installing both .deb files with dpkg, i ran "publican --help"
and learned quickly that i needed to:
$ export PERL5LIB=/usr/lib/perl5/vendor_perl/5.10.0
ok, try again and, based on daniel's advice, i iteratively learned
that i needed to install the ubuntu packages:
based on fairly obvious error messages, of course. and at that point,
publican will at least execute. sadly, the packages didn't come
bundled with the docs so i'll have to wing it.
but if anyone's bored to tears and wants to verify what i did and
suggest a better way, feel free. i haven't run that last website
scriptlet yet since i have no clue what it does. but i don't need the
website functionality anyway.
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
More information about the kw-pm