Hi everyone,

Just a quick note about doing this on Ubuntu.  I ran into the same errors 
as the OP and I solved them by doing 'sudo apt-get install docbook-xsl'  & 
'sudo apt-get install dblatex'.

I'm sure that was probably obvious to everyone but me, but I figured I'd 
post it just in case anyone else is struggling.


On Monday, 16 July 2012 02:14:51 UTC+10, Ramy Kamel wrote:
>
> Easiest solution on Mac is to use HomeBrew to install everything, then you 
> need to add this line to your .bashrc file
>
> export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
>
> Rameesh
>
> On Friday, October 22, 2010 10:34:00 PM UTC+2, gerd wrote:
>>
>> Hi gurus, 
>>
>> I was using asciidoc and a2x for very long time on Linux (Debian). I 
>> now bought a Mac and I'm getting the following error (also when I use 
>> files that were correctly compiled on my Linux system). 
>>
>> The error is: 
>>
>> a2x: ERROR: xmllint --nonet --noout --valid file.xml returned non-zero 
>> exit status 4 
>>
>> Using the "--verbose" option is showing the complete procedure. 
>>
>> a2x -f pdf --verbose week4_dq2.txt 
>> a2x: args: ['-f', 'pdf', '--verbose', 'week4_dq2.txt'] 
>> a2x: executing: /usr/local/Cellar/asciidoc/8.6.1/bin/asciidoc.py -- 
>> backend docbook  --verbose  --out-file /Users/gerd/Documents/tmp/ 
>> week4_dq2.xml /Users/gerd/Documents/tmp/week4_dq2.txt 
>> asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/ 
>> asciidoc.conf 
>> asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/ 
>> docbook.conf 
>> asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/ 
>> filters/code/code-filter.conf 
>> asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/ 
>> filters/graphviz/graphviz-filter.conf 
>> asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/ 
>> filters/music/music-filter.conf 
>> asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/ 
>> filters/source/source-highlight-filter.conf 
>> asciidoc: reading: /Users/gerd/Documents/tmp/week4_dq2.txt 
>> asciidoc: writing: /Users/gerd/Documents/tmp/week4_dq2.xml 
>> asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/lang- 
>> en.conf 
>> a2x: executing: xmllint --nonet --noout --valid /Users/gerd/Documents/ 
>> tmp/week4_dq2.xml 
>> I/O error : Attempt to load network entity 
>> http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd 
>>
>> /Users/gerd/Documents/tmp/week4_dq2.xml:2<http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd/Users/gerd/Documents/tmp/week4_dq2.xml:2>:
>>  
>> warning: failed to load 
>> external entity "http://www.oasis-open.org/docbook/xml/4.5/ 
>> docbookx.dtd" 
>> D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/ 
>> docbookx.dtd" 
>>   
>> ^ 
>> /Users/gerd/Documents/tmp/week4_dq2.xml:6: validity error : Validation 
>> failed: no DTD found ! 
>> <article lang="en"> 
>>                   ^ 
>> a2x: ERROR: xmllint --nonet --noout --valid /Users/gerd/Documents/tmp/ 
>> week4_dq2.xml returned non-zero exit status 4 
>>
>> I downloaded the asciidoc from Homebrew, the version is: 
>>
>> a2x --version 
>> a2x 8.6.1 
>>
>> I've tried Google but haven't found a fix. 
>> Thanks for the help. 
>>
>> Cheers 
>> Gerd 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to