- 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=1'-j1' pgxn install madlib pgxn load madlib