sql - 创建 PLR 扩展 Postgres 时出错
问题描述
我正在尝试在 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
有什么问题?
解决方案
您还需要文件夹中的 plr.control 和相应的 sql 文件share/extension/
。
R_HOME
只要正确的信息在 Windows 注册表中,新版本的 PL/R就不再需要在 Windows 上HKLM\SOFTWARE\R-core\R
。卸载旧版本的 R 可能会删除它!!!
推荐阅读
- clojure - Clojure 中函数名前面的 -(减号)符号是什么意思?
- sql - 部署不包含 .dtsx 扩展名的 SSIS 包
- php - 在保留查询的同时更改 WP 搜索的每页结果
- python-3.x - Python:在所有列中的单行中连接所有行的值
- regex - 在 sed 或 awk 中的两个匹配项之间的最后一行之前插入文本
- android - 在纵向和横向中创建一个 RecyclerView 相等的空间水平?
- strapi - 如何更改引用表示
- swift - Swift 动态创建 UILabel 以使用网络数据字符串作为 Text 属性
- rust - 如何在不使用时有条件地提供默认参考而不执行不必要的计算?
- python - How do you only print first 4 strings inside a list?