【问题标题】:Installing Postgresql 12.2 on SUSE Linux Enterprise Server 11 Patch 3 with --without-readline AND --without-zlib使用 --without-readline 和 --without-zlib 在 SUSE Linux Enterprise Server 11 补丁 3 上安装 Postgresql 12.2
【发布时间】:2020-10-19 09:06:24
【问题描述】:

我正在尝试在 SUSE Linux Enterprise Server 11 Patch 3 上安装 Postgresql 12.2。我运行 ./configure 直到出现一些消息 Use --without-readline to disable readline support

之后,我运行./configure --without-readline,直到出现消息Use --without-zlib,然后我运行/configure --without-zlib,它又回到Use --without-readline to disable readline support,它又回到--without-zlib

我用谷歌搜索了这条消息,在 SUSE zypper search zlibzypper search gcc 中搜索找到了线索,发现它已经安装了。

我又试了一次,但它又回到了原来的位置。

作为最后的手段,我运行./configure --without-readline --without-zlib,突然它起作用了。我可以安装 postgresql。

但我的问题是,我已经运行 configure with --without-readline 和 --without-zlib 同时运行/configure 对我的 postgresql 设置有什么影响?

【问题讨论】:

    标签: postgresql suse postgresql-12 sles


    【解决方案1】:

    每次运行configure 时,PostgreSQL 都会从头开始配置软件。 configure 之前的运行不会有任何影响。

    您可能没有为 readline 和 zlib 包安装 -devel 包,这就是 PostgreSQL 无法使用它们构建的原因。如果没有 readline 和 zlib 支持,PostgreSQL 就没有那么有趣了,所以你应该用它来构建。

    【讨论】:

    • 等等,从图中已经安装的gcc和zlib是什么?
    • 我对@9​​87654324@ 只字未提,PostgreSQL 也没有抱怨它丢失了。再看一遍:你安装了zlib,但可能没有安装zlib-devel
    • 但是可以将它用于主要生产 postgresql 服务器吗?还是我应该安装开发包?
    • 重新构建它。还要指定--enable-debug,这在生产中很有用。您不需要任何其他选项,例如--with-llvm--with-icu--with-openssl--with-systemd?为什么不使用二进制发行版?以您的技能水平,这可能是一个更好的选择。
    • 实际上我是 postgresql 的新手,从 google 和 postgre 网站学习它。所以我知道为什么要对 postgre 进行最小化的生产,因为我通常工作 Sybase tho.. 是 --enable-debug --with-llvm --with-icu --with-openssl --with-systemd,所有这些都使用 ./configure 运行?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-23
    • 2012-06-12
    • 2011-02-07
    • 1970-01-01
    • 1970-01-01
    • 2019-01-07
    • 1970-01-01
    相关资源
    最近更新 更多