Danny Willems -- Work In Progress

Fighting to follow my values. Integrity is key. Reputation is key. Fighting for privacy and security on the Internet. Being respectful is your first duty.

Research Publications Public Talks Open source software contributions CV Blog PGP public key Recommended softwares Contact Proton calendar for cryptography and cybersecurity events
23 February 2020

Compile libxml2 on MacOS

by Danny Willems

As I have been facing some issues building libxml2 from source recently on my Mac, here some instructions that may help some of you.

First, be sure you have install make from homebrew to get a more recent version than 3.81, the one provided with the XCode tools. Be sure the newest version of make is used in your shell (updating your PATH for example). This step is not required, but it is always better to use make >= 4.0 for compatibility issues you may face in the future. Install also the automake toolset.

brew install make
brew install automake

And here the commands to compile:

git clone https://gitlab.gnome.org/GNOME/libxml2
cd libxml2
autoreconf --install
./configure --prefix=$HOME/.lib/libxml2  # choose the prefix you want
make install
tags: MacOS - libxml2 - RSS