问题描述
我尝试使用 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 (将#修改为@)