MADlib apt 安装,如何?

2024-04-08

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!)

  • command pgxnclient install madlib shows
    
    
      INFO: best version: madlib 1.10.0
      INFO: saving /tmp/tmpip4ngh/madlib-1.10.0.zip
      INFO: unpacking: /tmp/tmpip4ngh/madlib-1.10.0.zip
      INFO: running configure
      error: cmake 2.8 or higher must be present to configure and install MADlib
      /tmp/tmpip4ngh/madlib-1.10.0/configure: 13: exit: Illegal number: -1
      ERROR: configure failed with return code 2
      

...但它不是“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


Madlib 是一个 Postgres扩大 https://www.postgresql.org/docs/current/static/sql-createextension.html。许多人通过以下方式分发他们的扩展pgxn.org https://pgxn.org,这就像CPAN http://www.cpan.org/ or Rubygems https://rubygems.org/Postgres 扩展。所以安装它的命令是这样的:

pgxnclient install madlib

之后,你可以说CREATE EXTENSION madlib在您喜欢的任何数据库中。

请注意,您可能需要先安装一些依赖项,例如:

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

这就是 2013 年的链接告诉你的,对我来说它看起来仍然正确。 (请注意,我将 plpython 从 9.1 更改为 9.6。)我尝试自己在 Postgres 9.5 + Ubuntu 14.04 上从 pgxn 安装 madlib,并且它有效。

至于为什么 madlib 人不分发.debfile:你可以随时询问他们,但 pgxn 是共享 Postgres 扩展的主流方式。这就像您的编程语言有一个包管理器一样。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

MADlib apt 安装,如何? 的相关文章

随机推荐