- gcc and g++ (For OSX, Clang will work for compiling the source, but not for documentation.)
- pgxn installed
- PostgreSQL (64-bit) 9.2+ with plpython support enabled. Note: plpython may not be enabled in Postgres by default.
Use below command to install and load the latest MADlib package uploaded on PGXN.
pgxn install madlib pgxn load madlib
If you see the following error, it's likely that you are using Parallel Execution flags for make.
[ 86%] Performing build step for 'EP_boost' Ignored: make [ 86%] Performing install step for 'EP_boost' Ignored: make [ 86%] Completed 'EP_boost' [ 86%] Built target EP_boost make: *** [all] Error 2 make: *** [all] Error 2 ERROR: command returned 2: make PG_CONFIG=/usr/local/pg10/bin/pg_config all
You can run this as a workaround:
MAKEFLAGS='-j1' pgxn install madlib pgxn load madlib
Or, if you want to use parallel execution, you an can also install Boost 1.60 yourself, and tell cmake where to find it.
For example, on OSX that looks like this: