THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- gcc and g++ (For OSX, Clang will work for compiling the source, but not for documentation.). Note: C++11 is not fully supported yet.
- 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 can also install Boost 1.60 yourself, and tell cmake where to find it.
For example, on OSX that looks like this:
...
- gcc and g++
- For OS X, Clang will work for compiling the source, but not for the documentation.NOTE: on Ubuntu 16.04, you will need to use GCC 4 and not the default compiler (GCC 5) to run MADlib. Refer to MADLIB-1068 for details. The outstanding GCC 5 issue is being tracked under MADLIB-1145 To compile on newer versions of XCode we need to enable the CXX11 flag. Setting
-DCXX11=1
during cmake, will auto-download Boost 1.75.0 if Boost > 1.65.0 is not found on the system.
Note: Setting-DCXX11=1
will enable C++11, which is not fully supported, i.e, MADlib compiles but some install-check/dev-check tests may fail.
- For OS X, Clang will work for compiling the source, but not for the documentation.NOTE: on Ubuntu 16.04, you will need to use GCC 4 and not the default compiler (GCC 5) to run MADlib. Refer to MADLIB-1068 for details. The outstanding GCC 5 issue is being tracked under MADLIB-1145 To compile on newer versions of XCode we need to enable the CXX11 flag. Setting
- python 2.6 or 2.7
- python 3.x is not currently supported by MADlib.
- cmake
- NOTE: the latest version of cmake might cause issues. Please try cmake 3.5.2 in case you get an error or a segmentation fault.
- NOTE: On Centos 6 (possibly other Linux variants), we have seen occasions where cmake will have issues running (seg fault) if the greenplum_path.sh file has been sourced prior to the cmake execution. If you encounter issues, you can use ldd on the cmake executable to confirm dynamic libraries are picked up from the Greenplum installation directories. If this is the case, start a new shell in which the greenplum_path.sh file is not sourced in your current running shell session. You can reference MADLIB-1093 for additional details.
- An installed version of Greenplum Database or PostgreSQL (64-bit) 9.2+ with plpython support enabled.
- NOTE: plpython may not be enabled in Postgres by default.
...