安装postgres后,无法创建扩展plv8。
我正在使用:CREATE EXTENSION plv8;
我得到了:
ERROR: could not open extension control file "/usr/local/share/postgresql/extension/plv8.control": No such file or directory
********** Error **********
ERROR: could not open extension control file "/usr/local/share/postgresql/extension/plv8.control": No such file or directory
SQL state: 58P01版本postgres: 9.6.2版本pgAdmin4: 1.4
如何安装plv8?
发布于 2017-10-04 16:26:13
这应该适用于大多数平台(https://github.com/plv8/plv8/issues/212#issuecomment-287589193):
$ easy_install pgxnclient
$ pgxnclient install plv8不过,它对我来说并不起作用。我想出的唯一解决方案是从源构建这个库。
如果您没有安装wget,请运行:
$ brew install wget然后运行:
$ wget https://github.com/plv8/plv8/archive/v2.0.0.tar.gz
$ tar -xvzf v2.0.0.tar.gz
$ cd plv8-2.0.0
$ make static
$ make install这对我很管用。
发布于 2021-09-17 05:41:34
用于为安装了plv8的PostgreSQL构建镜像的Dockerfiles文件:
Postgres 14.2, plv8 v3.0.0,基于阿尔卑斯山。图像大小为235MB。
Postgres 13.6, plv8 v3.0.0,基于阿尔卑斯山。图像大小为231MB。
Postgres 13.4, plv8 v2.13.15,基于Debian。图像大小为351MB。
Postgres 13.6, plv8 v3.0.0,基于Debian。图像大小为427MB。
在Debian Linux上简单安装plv8 v3.0.0 (必须预装PostgreSQL 13 ):
$ git clone https://github.com/sibedge-llc/plv8-build.git
$ cd plv8-build
$ git checkout pg13-3.0.0-debian
$ sudo make install发布于 2020-01-25 21:54:50
我找到了一条新路。只需复制粘贴即可!如果您使用的是PostgreSQL9.5,9.6beta,10版本,请访问此链接下载软件包,并了解应复制的内容以及复制到何处:https://github.com/JasperFx/marten/blob/master/documentation/documentation/admin/installing-plv8-windows.md
如果您使用PostgreSQL9.3、9.4、9.5、9.6、10、11和12版本下载软件包,您可以转到此处:http://updates.xtuple.com/updates/plv8/win/xtuple_plv8.zip下载软件包,然后像第一个链接中提到的那样复制过去
https://stackoverflow.com/questions/43680574
复制相似问题