Note
/opt/local
, away from your normal OS files.
$
sudo port install
docbook-xml docbook-xsl docbook-sgml-4.2 perl5 bash-completion p5-file-pushd p5-config-simple p5-file-find-rule p5-file-slurp p5-class-trigger p5-time-hires p5-list-moreutils p5-ipc-run3 p5-class-accessor p5-test-perl-critic p5-xml-libxslt p5-locale-gettext p5-image-size p5-file-copy-recursive p5-datetime p5-archive-zip p5-timedate p5-html-format p5-dbd-sqlite p5-xml-simple p5-devel-cover p5-test-pod p5-test-pod-coverage p5-template-toolkit
$
sudo cpan
Locale::Maketext::Gettext Locale::PO DateTime::Format::DateParse Syntax::Highlight::Engine::Kate XML::TreeBuilder File::Inplace String::Similarity HTML::FormatText::WithLinks::AndTables
$
sudo port install
fop
$
echo
"FOP_OPTS='-Xms50m -Xmx700m'" > ~/.foprc
/Users/yourusername
$
git clone
git://git.fedorahosted.org/publican.git
$
cd
publican/publican
Build.pl
. Verify that you are in the correct directory, then run the following command. Ignore all the messages you get.
$
perl ./Build.PL
$
./Build
/opt/local
:
$
sudo ./Build install
Procedure 1.1. Create and build a book
$
publican create
--name=testbook
$
cd testbook
$
publican build
--formats=html --langs=en-US
tmp/en-US/html/index.html
file in a browser to prove that it built correctly.
Procedure 1.2. Install a brand
$
find /opt/local/share/publican
-type f
|xargs sudo chmod 644
$
cd publican/publican-jboss
$
publican build
--formats=xml --langs=all --publish
$
sudo publican install_brand
--path=/opt/local/share/publican/Common_Content
publican.cfg
file or specifying the --brand
option when creating your book.