MADlib apt install, how to?

流过昼夜 提交于 2019-12-05 07:25:31

Madlib is a Postgres extension. Many people distribute their extensions via pgxn.org, which is like the CPAN or Rubygems of Postgres extensions. So the command to install it is this:

pgxnclient install madlib

After that, you can say CREATE EXTENSION madlib in whatever database you like.

Note you may need to install some dependencies first, for example:

sudo apt-get install cmake postgresql-plpython-9.6 pgxnclient

This is what the link from 2013 is telling you, and it looks still correct to me. (Note I changed plpython from 9.1 to 9.6 though.) I tried installing madlib from pgxn myself on Postgres 9.5 + Ubuntu 14.04, and it worked.

As for why the madlib folks don't distribute a .deb file: you could always ask them, but pgxn is the mainstream way to share Postgres extensions. It's just like having a package manager for your programming language.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!