Skip to content

Commit

Permalink
More updates on macOS (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-id authored Jun 21, 2024
1 parent 5f1a2c7 commit 3c68842
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions doc/book.xml
Original file line number Diff line number Diff line change
Expand Up @@ -868,11 +868,19 @@
<screen>
sudo ln -s /Library/Developer/CommandLineTools/usr/bin/gm4 /Library/Developer/CommandLineTools/usr/bin/m4
</screen>
Additionally, you will need to install DocBook stylesheets to generate documentation:
<screen>
brew install docbook docbook-xsl
</screen>
per the caveats section (<code>brew info docbook</code>), for the compilation to find them, add:
<screen>
export XML_CATALOG_FILES="/opt/homebrew/etc/xml/catalog"
</screen>
If you want to compile &yaz; with ICU you must install it with Homebrew as macOS does not ship ICU headers:
<screen>
brew install icu4c
</screen>
and make sure to add compiler flags per the caveats section (<code>brew info icu4c</code>):
and make sure to add compiler flags before the configure stage, per the caveats section (<code>brew info icu4c</code>):
<screen>
export LDFLAGS="-L/opt/homebrew/opt/icu4c/lib"
export CPPFLAGS="-I/opt/homebrew/opt/icu4c/include
Expand All @@ -883,7 +891,7 @@
<screen>
brew install libxml2 libxslt
</screen>
and again make sure to add compiler flags before the configure stage, per the caveats section (<code>brew info libxml2</code>):
and again make sure to add compiler flags, per the caveats section (<code>brew info libxml2</code>):
<screen>
export LDFLAGS="-L/opt/homebrew/opt/libxml2/lib -L/opt/homebrew/opt/libxslt/lib -L/opt/homebrew/opt/icu4c/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libxml2/include -I/opt/homebrew/opt/libxslt/include -I/opt/homebrew/opt/icu4c/include"
Expand Down

0 comments on commit 3c68842

Please sign in to comment.