...
- 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 |
...
Code Block | ||
---|---|---|
| ||
export PGPORT=5430 export PGHOST=127.0.0.1 export PGDATABASE=madlibtest $BUILD_ROOT/src/bin/madpack -p postgres install |
Anchor | ||||
---|---|---|---|---|
|
Sometimes there are release specific variations of the installation procedures. These exceptions are listed in this section.
06/27/19 - Upgrading MADlib from 1.15.1
Currently, upgrading the rpm from 1.15 using rpm -U does not work due to a change in the rpm post uninstall script in MADlib version 1.15.1.
...
Below are the steps to follow to upgrade from MADlib version 1.15:
- Remove existing MADlib rpm (this does not affect the database in any way)
rpm -e <madlib 1.15 package name> - Remove old MADlib files
rm -rf /usr/local/madlib/Versions - Install the MADlib 1.15.1 or 1.16 rpm
rpm -i <madlib 1.16 package name> - Upgrade the MADlib deployment in the database
madpack -p <platform> -c <connection> upgrade
01/11/18 - Upgrading MADlib to 1.13
...
/home/gpadmin/madlib/remove_compression.sh --prefix /usr/local/hdb/madlib
...