I ran the same commands on Ubuntu 8.03 and didn't have any problems. I used the a2x -v switch and as you can see it picked up the conf file from the current (repo) directory tree.

My guess is that you already have an existing asciidoc executable in your PATH which would result in a2x trying to load the conf file relative to that asciidoc executable then, failing that, the global /etc/asciidoc/ config directory.

The tarball includes the compiled man pages so you don't have to build them before installing and don't get the error.


$ hg clone -r 8.5.3 https://asciidoc.googlecode.com/hg/ asciidoc-8.5.3
requesting all changes
adding changesets
adding manifests
adding file changes
added 739 changesets with 2156 changes to 229 files
updating to branch default
179 files updated, 0 files merged, 0 files removed, 0 files unresolved

$ cd asciidoc-8.5.3/

$ autoconf

$ ./configure
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile

$ make
Fixing CONF_DIR in asciidoc.py
Fixing CONF_DIR in a2x.py

$ python a2x.py -vf manpage doc/asciidoc.1.txt
a2x: executing: /tmp/asciidoc-8.5.3/asciidoc.py --backend docbook --doctype manpage --verbose --out-file /tmp/asciidoc-8.5.3/doc/asciidoc.1.xml /tmp/asciidoc-8.5.3/doc/asciidoc.1.txt
asciidoc: reading: /tmp/asciidoc-8.5.3/asciidoc.conf
asciidoc: reading: /tmp/asciidoc-8.5.3/docbook.conf
asciidoc: reading: 
/tmp/asciidoc-8.5.3/filters/source/source-highlight-filter.conf
asciidoc: reading: /tmp/asciidoc-8.5.3/filters/music/music-filter.conf
asciidoc: reading: /tmp/asciidoc-8.5.3/filters/code/code-filter.conf
asciidoc: reading: /tmp/asciidoc-8.5.3/filters/graphviz/graphviz-filter.conf
asciidoc: reading: /tmp/asciidoc-8.5.3/lang-en.conf
asciidoc: reading: /tmp/asciidoc-8.5.3/doc/asciidoc.conf
asciidoc: reading: /tmp/asciidoc-8.5.3/doc/asciidoc.1.txt
asciidoc: writing: /tmp/asciidoc-8.5.3/doc/asciidoc.1.xml
a2x: executing: xmllint --nonet --noout --valid /tmp/asciidoc-8.5.3/doc/asciidoc.1.xml
a2x: chdir /tmp/asciidoc-8.5.3/doc
a2x: executing: xsltproc --nonet --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 /tmp/asciidoc-8.5.3/docbook-xsl/manpage.xsl /tmp/asciidoc-8.5.3/doc/asciidoc.1.xml
Note: Writing asciidoc.1
a2x: chdir /tmp/asciidoc-8.5.3
a2x: deleting /tmp/asciidoc-8.5.3/doc/asciidoc.1.xml


Cheers, Stuart


On 29/07/10 01:08, metaperl wrote:
I downloaded asciidoc via
     hg clone -r 8.5.3 https://asciidoc.googlecode.com/hg/
asciidoc-8.5.3

and then had the error above during the [documented install procedure]
(http://www.methods.co.nz/asciidoc/INSTALL.html)

So I did an hg pull&&  hg update but still got that error... evidently
asciidoc depends on a prior install for that part of the install to
work. But should it?

Entire shell transcript below:

schemelab@(none):~/wares/asciidoc-8.5.3$ hg pull
pulling from https://asciidoc.googlecode.com/hg/
searching for changes
adding changesets
adding manifests
adding file changes
added 27 changesets with 78 changes to 44 files
(run 'hg update' to get a working copy)
schemelab@(none):~/wares/asciidoc-8.5.3$ hg update
merging asciidoc.py
43 files updated, 1 files merged, 0 files removed, 0 files unresolved
schemelab@(none):~/wares/asciidoc-8.5.3$ autoconf
schemelab@(none):~/wares/asciidoc-8.5.3$ ./configure
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
schemelab@(none):~/wares/asciidoc-8.5.3$ make
Fixing CONF_DIR in asciidoc.py
Fixing CONF_DIR in a2x.py
mv: try to overwrite `a2x.py', overriding mode 0755 (rwxr-xr-x)? y
schemelab@(none):~/wares/asciidoc-8.5.3$ python a2x.py -f manpage doc/
asciidoc.1.txt
a2x: ERROR: missing configuration file: /usr/local/etc/asciidoc/
docbook-xsl/manpage.xsl
schemelab@(none):~/wares/asciidoc-8.5.3$


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

Reply via email to