[publican-list] Failure of Publican Install on Os X Lion 7.2.3
George Grenley
grenley at plans2reality.com
Thu May 17 23:17:38 UTC 2012
So, this URL: https://www.redhat.com/archives/publican-list/2011-November/msg00003.html
has an extra step:
Install ImageMagick with PerlMagick via Mac Ports:
a. port install ImageMagick +no_x11 +perl
I did that, and it seemed to go OK, mostly. It fetches about a gazillion files, but finally says "---> No broken files found."
I then followed the directions from this website:
https://bugzilla.redhat.com/show_bug.cgi?id=752620
which says:
To install Publican on OS X with Macports, set the following install_path
parameters:
sudo ./Build install --install_path datadir=/opt/local/share/publican
--install_path generated=/opt/local/share/publican/sitetemplate --install_path
web=/opt/local/share/publican/sitetemplate --install_path
templates=/opt/local/share/publican/templates --install_path etc=/opt/local/etc
--install_path completion=/opt/local/etc/bash_completion.d
Publican also needs to override the common_config and common_content paths like
this:
publican create --name=testbook --common_config=/opt/local/share/publican
--common_content=/opt/local/share/publican/Common_Content
I then tried to create a testfile, foobook. Almost, but not quite. Here's the last bit of the log:
Quadritarium:publican-2x grenley$ sudo perl ./Build.PL
Password:
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$ sudo ./Build install --install_path datadir=/opt/local/share/publican
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
Quadritarium:publican-2x grenley$ --install_path generated=/opt/local/share/publican/sitetemplate --install_path
-bash: --install_path: command not found
Quadritarium:publican-2x grenley$ web=/opt/local/share/publican/sitetemplate --install_path
-bash: --install_path: command not found
Quadritarium:publican-2x grenley$ templates=/opt/local/share/publican/templates --install_path etc=/opt/local/etc
Quadritarium:publican-2x grenley$
Quadritarium:publican-2x grenley$ sudo ./Build install --install_path datadir=/opt/local/share/publican --install_path generated=/opt/local/share/publican/sitetemplate --install_path web=/opt/local/share/publican/sitetemplate --install_path templates=/opt/local/share/publican/templates --install_path etc=/opt/local/etc --install_path completion=/opt/local/etc/bash_completion.d
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
Quadritarium:publican-2x grenley$ publican create --name=testbook --common_config=/opt/local/share/publican --common_content=/opt/local/share/publican/Common_Content
directory testbook exists! at /opt/local/bin/publican line 485
Quadritarium:publican-2x grenley$
Quadritarium:publican-2x grenley$
Quadritarium:publican-2x grenley$ publican create --name=foobook --common_config=/op/local/share/publican --common_content=/opt/local/share/publican/CommonContent
Use of uninitialized value $docname in substitution (s///) at /opt/local/lib/perl5/site_perl/5.12.4/Publican.pm line 496, <FH> line 11.
Use of uninitialized value $product in substitution (s///) at /opt/local/lib/perl5/site_perl/5.12.4/Publican.pm line 506, <FH> line 11.
Failed to load brand file: /opt/local/share/publican/CommonContent/common/publican.cfg at /opt/local/bin/publican line 489
Quadritarium:publican-2x grenley$ cd foobook
Quadritarium:foobook grenley$ ls -l
total 8
drwxr-xr-x 10 grenley staff 340 May 17 14:48 en-US
-rw-r--r-- 1 grenley staff 94 May 17 14:48 publican.cfg
Quadritarium:foobook grenley$ cd en-US
Quadritarium:en-US grenley$ ls -l
total 56
-rw-r--r-- 1 grenley staff 384 May 17 14:48 Author_Group.xml
-rw-r--r-- 1 grenley staff 1036 May 17 14:48 Book_Info.xml
-rw-r--r-- 1 grenley staff 518 May 17 14:48 Chapter.xml
-rw-r--r-- 1 grenley staff 573 May 17 14:48 Preface.xml
-rw-r--r-- 1 grenley staff 557 May 17 14:48 Revision_History.xml
-rw-r--r-- 1 grenley staff 173 May 17 14:48 foobook.ent
-rw-r--r-- 1 grenley staff 549 May 17 14:48 foobook.xml
drwxr-xr-x 3 grenley staff 102 May 17 14:48 images
Quadritarium:en-US grenley$
Comments?
George
On May 17, 2012, at 4:06 PM, Misty Stanley-Jones wrote:
> Hi George,
>
> What you have posted is not the build error (yet) as far as I can see. Is this the same log you sent me earlier? If not, can you attach it or pastebin it somewhere and post the URL? OSX is definitely not a "supported" platform yet, but a few of us have been able to make this work and I'm sure we can get it sorted out.
>
> Thanks,
> Misty
>
> Misty Stanley-Jones, RHCE
> Supervisor, Red Hat Enterprise Content Services, Brisbane
> ☺: misty (Freenode IRC) ✉: misty at redhat.com
>
> On May 18, 2012, at 1:05 AM, George Grenley wrote:
>
>> 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.
>>
>> _______________________________________________
>> publican-list mailing list
>> publican-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/publican-list
>> Wiki: https://fedorahosted.org/publican
>
> _______________________________________________
> publican-list mailing list
> publican-list at redhat.com
> https://www.redhat.com/mailman/listinfo/publican-list
> Wiki: https://fedorahosted.org/publican
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/publican-list/attachments/20120517/67932682/attachment.htm>
More information about the publican-list
mailing list