【发布时间】:2017-07-20 11:42:51
【问题描述】:
我在使用 postgis 时遇到了一些问题。我使用 rails 4,我在 mac osx sierra 10.12 上。
我有一个用于 postgis 的超级用户 ekylibre,我有一个包含以下信息的文件 database.yml:
default: &default
adapter: postgis
encoding: unicode
pool: 5
postgis_extension: []
schema_search_path: public,postgis
username: ekylibre
password: ekylibre
host: 127.0.0.1
当我尝试运行时:
rake db:create
我有这个错误:
ActiveRecord::StatementInvalid: PG::UndefinedFile: ERROR: could not 打开扩展控制文件 “/usr/local/Cellar/postgresql@9.5/9.5.7/share/postgresql@9.5/extension/postgis.control”: 没有这样的文件或目录
我当然有 postgis。我使用自制软件安装 postgis。 有人有解决方案或轨道吗? 谢谢你。
【问题讨论】:
标签: ruby-on-rails ruby macos postgresql postgis