...
$ cmake <path to source code directory>
$ make
$ make package
Creating dmg
...
package (macOS Sierra
...
)
Required software to create dmg packages
Requirement: PackageMaker.app (copy from dmg below into your Applications directory)
Available for download from Apple Developers site
Package: Auxiliary Tools for Xcode - Late July 2012
File: xcode44auxtools6938114a.dmg
Build Postgres versions
On macOS, MADlib supports Postgres 9.4, 9.5 and 9.6 versions. In order to build, you will need to have three separate installation directories available. Download the latest source tarballs for each version from https://www.postgresql.org/ftp/source/. Extract, configure, build, test and install each version.
Example:
wget https://ftp.postgresql.org/pub/source/v9.6.4/postgresql-9.6.4.tar.gz
tar
...
xf postgresql-9.6.4.tar.gz
cd postgresql-9.6.4
./configure
...
--with-python
...
--prefix=/usr/local/pgsql964
make
make
...
check
make
...
install
Repeat for each Postgres version.
Build MADlib and dmg package
Perform MADlib releaes release build referencing each Postgres pg_config version to be supported during the cmake configuration step:
Example (from source directory):
mkdir
...
build
cd
...
build
cmake
...
-DPOSTGRESQL_9_6_PG_CONFIG=/usr/local/pgsql964/bin/pg_config
...
\
...
-DPOSTGRESQL_9_5_PG_CONFIG=/usr/local/pgsql958/bin/pg_config
...
\
...
-DPOSTGRESQL_9_4_PG_CONFIG=/usr/local/pgsql9413/bin/pg_config
...
\
...
-DCMAKE_BUILD_TYPE=Release
...
\
...
-DCMAKE_INSTALL_PREFIX=/usr/local/madlib
...
\
...
..
make
make
...
install
make
...
package
This will generate a file (in the current working directory) with a name similar to madlib-1.12-Darwin.dmg. For convenience binary purposes, the file will must be renamed to apache-madlib-1.12-bin-Darwin.dmg.
Install and test the MADlib dmg following standard procedures (NOTE: To ensure a clean installation directory, remove /usr/local/madlib prior to installing from dmg).
...