Skip to content

Instantly share code, notes, and snippets.

@miromannino
Created March 16, 2020 12:46
Show Gist options
  • Save miromannino/61fd480f2d411ce34c16a332a95f1398 to your computer and use it in GitHub Desktop.
Save miromannino/61fd480f2d411ce34c16a332a95f1398 to your computer and use it in GitHub Desktop.
Compile monetdb in macos from source

Source code can be download from:

https://www.monetdb.org/downloads/sources/Latest/

Install required packages:

brew install pkg-config pcre openssl libtool gettext libiconv autoconf automake libxml2

Export M4DIRS location folder to be able to find .m4 files (note that gettext version might change):

export M4DIRS="-I/usr/local/Cellar/gettext/0.20.1/share/aclocal/"

Export these to let the compiler find libxml2 files (these instructions are reported during the brew install libxml2):

export LDFLAGS="-L/usr/local/opt/libxml2/lib"
export CPPFLAGS="-I/usr/local/opt/libxml2/include"
export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"

in the source code folder run:

./bootstrap

It should run without errors.

Now run:

./configure

After that

make

Now install with:

make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment