如何解决timescaledb 安装失败
我尝试使用 Postgresql 12 在 Ubuntu 18.04(32 位)上安装 timescaledb: https://docs.timescale.com/latest/getting-started/installation/ubuntu/installation-apt-ubuntu
当我运行 sudo apt install timescaledb-2-postgresql-12 时出现错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package timescaledb-2-postgresql-12
然后我尝试在本地(从存储库 https://github.com/timescale/timescaledb)完成并构建代码,该代码成功(在 make 上),但我无法看到“下一步”之后要做什么建造。当我尝试通过添加“shared_preload_libraries = 'timescaledb'”然后重新启动在 postgres.conf 文件中添加扩展时。重新启动时出现错误
2021-02-22 07:24:28.711 EST [18311] syorke@postgres ERROR: Could not open extension control file "/usr/share/postgresql/12/extension/timescaledb.control": No such file or directory
在timescaledb.control中是:
# timescaledb extension
comment = 'Enables scalable inserts and complex queries for time-series data'
default_version = '2.0.1'
module_pathname = '$libdir/timescaledb-2.0.1'
#extension cannot be relocatable once installed because it uses multiple schemas and that is forbidden by PG.
#(though this extension is relocatable during installation).
relocatable = false
我的问题是我在没有找到包裹的情况下是否正确地解决了这个问题? 我应该用我为 timescaledb 构建的目录中的 timescaledb.control.in 替换 /usr/share/postgresql/12/extension/timescaledb.control 吗?
在该构建的控制文件中:
# timescaledb extension
comment = 'Enables scalable inserts and complex queries for time-series data'
default_version = '@PROJECT_VERSION_MOD@'
module_pathname = '$libdir/timescaledb-@PROJECT_VERSION_MOD@'
#extension cannot be relocatable once installed because it uses multiple schemas and that is forbidden by PG.
#(though this extension is relocatable during installation).
relocatable = false
'@PROJECT_VERSION_MOD@' 将被替换为什么以及 $libdir 设置在哪里?
感谢您的帮助。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。