#6436 closed defect (implemented)
Asciidoc files don't build using Homebrew on Mac OS X
Reported by: | sjmurdoch | Owned by: | |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | Core Tor/Tor | Version: | |
Severity: | Keywords: | tor-relay | |
Cc: | Actual Points: | ||
Parent ID: | Points: | ||
Reviewer: | Sponsor: |
Description
Having installed asciidoc and docbook on Mac OS X using homebrew, the asciidoc files fail to build:
Baird:doc sjm217$ make ../doc/asciidoc-helper.sh man /usr/local/bin/a2x ../doc/tor.1.in a2x: ERROR: "xmllint" --nonet --noout --valid "/Users/sjm217/w/tor/doc/tor.1.xml" returned non-zero exit status 4 ================================== You need a working asciidoc installed to be able to build the manpage. ...
This appears to be because even though the docbook DTD files are installed, xmllint will not find them by default. To fix this, the XML_CATALOG_FILES
environment variable must be set to include /usr/local/etc/xml/catalog
.
The attached patch clarifies the error message.
Child Tickets
Attachments (1)
Change History (5)
Changed 7 years ago by
Attachment: | 0001-Clarify-how-to-build-asciidoc-files-using-homebrew-o.patch added |
---|
comment:1 Changed 7 years ago by
Resolution: | → implemented |
---|---|
Status: | new → closed |
comment:2 Changed 7 years ago by
Keywords: | tor-relay added |
---|
comment:3 Changed 7 years ago by
Component: | Tor Relay → Tor |
---|
comment:4 Changed 7 years ago by
Thanks for this. These are the steps I took to getting the latest Git version of TOR compiling on OS X 10.8.2 Mountain Lion.
- Install Xcode (https://developer.apple.com/technologies/tools/)
- Start Xcode. Goto Preferences -> Downloads and install Command-line tools.
- Install Homebrew (http://mxcl.github.com/homebrew/)
- Ensure
/usr/local/bin
is write-able by brew, you could dochown <user>:<group> /usr/local/bin
. brew install autoconf automake libevent asciidoc
- Ensure the build can make use of asciidoc properly:
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
- Ensure the next shell we open has asciidoc already setup:
echo export XML_CATALOG_FILES="/usr/local/etc/xml/catalog" >> ~/.bashrc
git clone git://git.torproject.org/git/tor
cd tor
./autogen.sh
./configure
make
make install
At this point typing tor
should successfully start TOR.
Note: See
TracTickets for help on using
tickets.
Added a changes file and merged. Thanks!