Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql postgis扩展插件安装无法找到文件,尽管它存在_Postgresql_Postgis - Fatal编程技术网

Postgresql postgis扩展插件安装无法找到文件,尽管它存在

Postgresql postgis扩展插件安装无法找到文件,尽管它存在,postgresql,postgis,Postgresql,Postgis,在macOS/catalina上工作 使用postgis进行了二进制安装,但遇到了一些问题。用自制软件下载了postgresSQL和postgis,看起来很成功 运行psql-U postgres,然后运行CREATE EXTENSION postgis,但出现错误: [错误:无法打开扩展控制文件“/Library/PostgreSQL/13/share/PostgreSQL/extension/postgis.control”:没有这样的文件或目录 我以为这是因为我的安装在我的自制cellar

在macOS/catalina上工作

使用postgis进行了二进制安装,但遇到了一些问题。用自制软件下载了postgresSQL和postgis,看起来很成功

运行
psql-U postgres
,然后运行
CREATE EXTENSION postgis
,但出现错误:

[错误:无法打开扩展控制文件“/Library/PostgreSQL/13/share/PostgreSQL/extension/postgis.control”:没有这样的文件或目录


我以为这是因为我的安装在我的自制cellar目录中,所以我只是将其复制到创建扩展名命令所在的上述目录中,但当我重新登录并重新运行创建扩展名命令时,它会返回相同的错误,即使文件现在存在于
“/Library/PostgreSQL/13/share/PostgreSQL/extension”中
-无法理解为什么会发生这种情况/当系统出现此错误时,系统是如何思考的,这是因为它由于权限而无法访问目录吗?

这是否回答了您的问题?因此我确实进行了讨论,但不幸的是,问题仍然存在。如果运行
brew info postgis
,输出是什么?