Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.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
Ruby 在Mac上运行PostgreSQL和Rail_Ruby_Rubygems_Pg_Rails Postgresql - Fatal编程技术网

Ruby 在Mac上运行PostgreSQL和Rail

Ruby 在Mac上运行PostgreSQL和Rail,ruby,rubygems,pg,rails-postgresql,Ruby,Rubygems,Pg,Rails Postgresql,我正在使用OSX 10.8(看起来Postgres上的某些版本默认安装了),但我还是一个接一个地完成了这些步骤,它们都成功了 brew install postgresql initdb `brew --prefix`/var/postgres -E utf8 touch Gemfile bundle config build.pg --with-pg-config=`brew --prefix postgresql`/bin/pg_config 这是我看到的最后一条成功消息的屏幕截图: 然

我正在使用OSX 10.8(看起来Postgres上的某些版本默认安装了),但我还是一个接一个地完成了这些步骤,它们都成功了

brew install postgresql
initdb `brew --prefix`/var/postgres -E utf8
touch Gemfile
bundle config build.pg --with-pg-config=`brew --prefix postgresql`/bin/pg_config
这是我看到的最后一条成功消息的屏幕截图:

然后我运行了这个:

postgres -D `brew --prefix`/var/postgres
这就是我得到的错误:

postgres无法访问服务器配置文件 “/usr/local/var/postgre/postgresql.conf”:没有这样的文件或目录


我认为你的全部问题在于一个简短的打字错误。将错误消息与正在执行的操作进行比较。您的错误消息是:

postgres无法访问服务器配置文件“/usr/local/var/postgre/postgresql.conf”:没有这样的文件或目录

你的命令是

postgres-D
brew——前缀
/var/postgres

我猜你是不小心跑了

postgres -D `brew --prefix`/var/postgre

我认为你的全部问题在于一个简短的打字错误。将错误消息与正在执行的操作进行比较。您的错误消息是:

postgres无法访问服务器配置文件“/usr/local/var/postgre/postgresql.conf”:没有这样的文件或目录

你的命令是

postgres-D
brew——前缀
/var/postgres

我猜你是不小心跑了

postgres -D `brew --prefix`/var/postgre