PostGIS安装问题

用brew 安装 postgis (环境:postgre用的是mac版的postgre.app,psql用的是brew版的)

这样问题就来了,在安装postgis时,会查找psql,由于psql在/usr/sbin下,即用的是brew的,安装postgis时总是报错(具体错误大概是说不能解释postgre sql)。搞了半天没弄好。

决定把postgre.app的路径放到加载路径的最前面,/Applications/Postgres93.app/Contents/MacOS,放到路径最前面,再次安装postgis,一切安好。但undefined method `point’ for #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition:错误还是没有解决