【问题标题】:Error when creation PLR extension Postgres创建 PLR 扩展 Postgres 时出错
【发布时间】:2018-08-13 09:23:01
【问题描述】:

我正在尝试在 Postgres 10.4 中创建 PLR 扩展,但它给了我错误:

ERROR:  could not load library "C:/Program Files/PostgreSQL/10/lib/plr.dll": The specified module could not be found.


SQL state: XX000

我使用的是 Windows 10,R 3.4.2。我下载了这个版本的PL/R:Win64 plr.dll for Postgres 10.x, R-3.4.2 (plr-8.3.0.17)

我根据需要将dll文件放入lib文件夹并重新启动psql服务。 R_HOME 设置为 C:\Program Files\R\R-3.4.2。

路径变量:C:\Program Files\PostgreSQL\10\lib 和 C:\Program Files\PostgreSQL\10\bin

有什么问题?

【问题讨论】:

    标签: sql r postgresql plr


    【解决方案1】:

    您还需要share/extension/文件夹中的plr.control和相应的sql文件。

    Newer version of PL/R 在 Windows 上不再需要 R_HOME,只要正确的信息在 Windows 注册表HKLM\SOFTWARE\R-core\R 中。卸载旧版本的 R 可能会删除它!!!

    【讨论】:

      猜你喜欢
      • 2017-06-27
      • 1970-01-01
      • 1970-01-01
      • 2012-07-31
      • 1970-01-01
      • 2013-12-23
      • 2013-10-04
      • 2017-10-08
      • 1970-01-01
      相关资源
      最近更新 更多