...
- gcc and g++ (For OSX, Clang will work for compiling the source, but not for documentation.)
- m4
- patch
- cmake
- 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.
Code Block |
---|
|
pgxn install madlib
pgxn load madlib |
If you see the following error, it's likely that you are using Parallel Execution flags for make.
Code Block |
---|
|
[ 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[1]: *** [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:
Code Block |
---|
|
MAKEFLAGS='-j1' pgxn install madlib
pgxn load madlib |
Or, if you want to use parallel execution, you an also install Boost 1.60 yourself, and tell cmake where to find it.
For example, on OSX that looks like this:
Code Block |
---|
|
brew install boost@1.60
export BOOST_INCLUDEDIR=/usr/local/opt/boost@1.60/include/ |
Anchor |
---|
| Compile From Source |
---|
| Compile From Source |
---|
|
Compiling From Source
...