MADlib 是 PostgreSQL 最完整、最高效(功能更快)、最可靠的数学库...官方下载 http://madlib.incubator.apache.org/download.html没有关于 Debian 或 UBUNTU“即插即用安装”的线索。
检查其他字体,最好的(最简单的)是旧的 2013 年的说明容易得到它 http://no0p.github.io/postgresql/2013/10/27/madlib-ubuntu.html.
...还有一些丢失脚本 https://gist.github.com/thinkerbot/8699369#file-madlib_install-sh2014 年...评论说“可以下载.rpm
软件包并在 Ubuntu 中安装只需将软件包转换为.deb
using 外星人指挥它会起作用”。
问题:安装 MADLib 的安全且最简单的方法?
今天(2017 年)在 UBUNTU 16 LTS 和 PostgreSQL v9.6 上。
注意和次要问题:Debian 稳定版 and 乌班图长期支持一起是最流行的 Web 服务器 Linux 发行版,所以.deb
是最重要的分发形式...为什么 MADlab 维护者拒绝看到它?为什么不欢迎.deb
users?
存在一些技术或许可问题apt
或转换.deb
?
EDIT
我有两种类型的 SQL 服务器,如前所述,v9.6,但最重要的是PostgreSQL v9.5.X(!抱歉,我们正在等待在所有服务器中使用 v9.6)。
UBUNTU 16 LTS (xenial) 中 PostgreSQL 9.5.X 的情况
psql --version
并进入其中,select version();
shows v9.5.6.
-
command pgxnclient install madlib
shows
You need to install postgresql-server-dev-X.Y for building
a server-side extension or libpq-dev for building a client-side application.
ERROR: command returned 1: ['/usr/bin/pg_config', '--libdir']
... pg_config https://www.postgresql.org/docs/current/static/app-pgconfig.html不是一个配置文件,而是一个shell工具...所以我安装了它sudo apt-get install libpq-dev
(ok!)
...但它不是“CMake版本错误”,是“no CMake”错误,所以使用apt install cmake
!
but他们是一个cmake问题,
pgxnclient install madlib
INFO: best version: madlib 1.10.0
INFO: saving /tmp/tmpspQ3zf/madlib-1.10.0.zip
INFO: unpacking: /tmp/tmpspQ3zf/madlib-1.10.0.zip
INFO: running configure
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Boost
-- No sufficiently recent version (>= 1.47) of Boost was found. Will download.
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
CMake Error at src/ports/postgres/cmake/FindPostgreSQL.cmake:161 (message):
Found pg_config ("/usr/bin/pg_config"), but pg_config.h file not present in
the server include dir (/usr/include/postgresql/9.5/server).
Call Stack (most recent call first):
src/ports/postgres/cmake/PostgreSQLUtils.cmake:66 (find_package)
src/ports/postgres/CMakeLists.txt:360 (determine_target_versions)
-- 配置不完整,出现错误!
另请参阅“/tmp/tmpspQ3zf/madlib-1.10.0/build/CMakeFiles/CMakeOutput.log”。
信息:建筑扩建
make -C 构建全部
make[1]: 进入目录 '/tmp/tmpspQ3zf/madlib-1.10.0/build'
使[1]:* 没有规则可以使目标成为“全部”。停止。
make[1]: 离开目录 '/tmp/tmpspQ3zf/madlib-1.10.0/build'
Makefile:5: 目标“全部”的配方失败
制作: *[全部] 错误2
错误:命令返回 2:make PG_CONFIG=/usr/bin/pg_config all