postgresql - 如何在 arch Linux 中安装 uuid-ossp postgresql 扩展

标签 postgresql archlinux

我需要在 arch linux 上安装 uuid-ossp postgresql 扩展。我有 postgresql-9.5。在 ubuntu 上,通过 sudo apt-get install postgresql-contrib 很容易做到,但如何在 arch Linux 中做到这一点?

最佳答案

默认的 postgresql 包不提供 ossp-uuid 特性。您必须在编译前通过 ./configure 启用它。所以你有两种方法来获得这个特性:

  1. 自己用--with-ossp-uuid-flag编译postgresql并通过make install安装。 (我不推荐这个)
  2. 通过asp工具下载postgresql包规范。您可以使用 sudo pacman -Syu asp 安装它,然后执行:asp checkout postgresql。然后您需要修改 PKGBUILD 并在 build() 函数中插入 --with-ossp-uuid 标志。然后您可以简单地构建包并使用 makepkg -si 安装它。您可能需要额外的依赖项。我还没有测试过它,但它应该以这种方式工作。

关于postgresql - 如何在 arch Linux 中安装 uuid-ossp postgresql 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48793145/

相关文章:

sql - Postgres 创建一个带有外键数组的表

sql - PostgreSQL 正则表达式 : Until dot

zend-framework - 如何通过 Zend_Db_Select 从 PostgreSQL 接收 bytea 数据?

python - 文件 "device/generic/goldfish/tools/mk_combined_img.py",第 48 行打印 "' %s' 无法转换为 int"%(第 [2] 行)

sql - PostgreSQL 是否保证唯一的时间戳?

linux - 如何在 bash 脚本执行期间更改用户并继续使用新用户运行命令?

matplotlib 未检测到字体

go - 如何仅卸载一种特定的Go语言版本(Arch Linux)?

linux - 远程 LLDB 调试 - Docker 容器

linux - neo4j 服务器在 arch linux 上启动时出错