[publican-list] Failure of Publican Install on Os X Lion 7.2.3
George Grenley
grenley at plans2reality.com
Thu May 17 15:05:59 UTC 2012
So, I ran the script from Redhat's site: https://fedorahosted.org/publican/wiki/Installing_OSX
The full text is shown at the end of this email.
It blew up at the command (my quotes) "publican-2x grenley$ perl ./Build.PL"
The first little bit of error messages went like this:
A publican-2x/po/publican.pot
Checked out revision 2050.
Quadritarium:~ grenley$ cd publican-2x/
Quadritarium:publican-2x grenley$ perl ./Build.PL
WARNING: the following files are missing in your kit:
META.json
META.yml
Please inform the author.
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Publican' version '2.9'
Quadritarium:publican-2x grenley$ ./Build
Name "Win32::Locale::Lexicon" used only once: possible typo at /opt/local/lib/perl5/5.12.4/I18N/LangTags/Detect.pm line 140.
Name "Publican::Localise::en_us::Lexicon" used only once: possible typo at /opt/local/lib/perl5/5.12.4/Locale/Maketext.pm line 404.
Building Publican
DEBUG: Publican: config loaded
Setting up ar-SA
Merging ar-SA/Conventions.po >> en-US/Conventions.xml -> tmp/ar-SA/xml_tmp//Conventions.xml
WARNING: Fuzzy message in PO file.
"<literal>Mono-spaced Bold</literal>"
this continues for hundreds of lines.... (I can attach a file if you need it.)
What have I done wrong? It has been suggested that I need to tell the thing to use the MacPort Perl, not OS X Perl, but I have no idea how to do that. There is also talk of needing to mod some default paths.....
Cheers!
George
Web Page Installation Text:
• Install Xcode from Mac App Store.
• It is about 4 GB. Be prepared to wait.
• Install Macports from http://guide.macports.org/chunked/installing.macports.html. Everything you install with it goes into /opt/local, away from your normal OS files.
• Open a terminal.
• Install dependencies for Publican which are available as ports.
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
• Install CPAN modules for dependencies which can't be satisfied with ports. The first line forces Makefile::Parser to install even though its tests fail.
sudo cpan Locale::Maketext::Gettext Locale::PO DateTime::Format::DateParse Syntax::Highlight::Engine::Kate XML::TreeBuilder
• Install FOP if you want PDFs to work:
sudo port install fop
echo "FOP_OPTS='-Xms50m -Xmx700m'" > ~/.foprc
• Check out Publican 2.x branch:
svn co http://svn.fedorahosted.org/svn/publican/branches/publican-2x
cd publican-2x/
• In the publican-2x directory, run:
perl ./Build.PL
./Build
• Run the following command to install Publican and put all of its bits into /opt/local
sudo ./Build install
Create and build a book
publican create --name=testbook
cd testbook
publican build --formats=html --langs=en-US
• Open the tmp/en-US/html/index.html in a browser to prove that it built properly.
More information about the publican-list
mailing list