Lion connecting rails to postgresql , with ssd boot drive
我正试图在Lion上使用postgresql和我的rails开发。 我的机器当前设置为从单独的高清上的固态和存储/主文件夹启动。 我可以用post创建postgres的用户
createuser
命令
但是当我尝试使用rake创建数据库时
1 | rake db:create |
我收到这个错误
could not connect to server: Connection refused Is the server running
locally and accepting connections on Unix domain socket
"/var/pgsql_socket/.s.PGSQL.5432"?
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
initialize' new'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
connect' initialize'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:312:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
new' postgresql_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:304:in
new_connection' checkout_new_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in
block (2 levels) in checkout' loop'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:261:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:261:in
block in checkout' mon_synchronize'
/Volumes/Lion/Users/atbyrd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:260:in
checkout' connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:162:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:409:in
retrieve_connection' retrieve_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:89:inconnection' rescue in create_database'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:110:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:54:in
create_database' block (5 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:151:in
local_database?' block (4 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:19:in
each_value' block (3 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:19:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
call' block in execute'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
each' execute'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
block in invoke_with_call_chain' mon_synchronize'
/Volumes/Lion/Users/atbyrd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
invoke_with_call_chain' invoke'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
invoke_task' block (2 levels) in top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
each' block in top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling' top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
block in run' standard_exception_handling'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
run' '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
load' ' Couldn't create database for {"adapter"=>"postgresql",
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
"encoding"=>"unicode","database"=>"alpha_development","pool"=>5,
"username"=>"alpha","password"=>nil} could not connect to server:
Connection refused Is the server running locally and accepting
connections on Unix domain socket"/var/pgsql_socket/.s.PGSQL.5432"?
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
initialize' new'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
connect' initialize'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:312:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
new' postgresql_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:304:in
new_connection' checkout_new_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in
block (2 levels) in checkout' loop'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:261:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:261:in
block in checkout' mon_synchronize'
/Volumes/Lion/Users/atbyrd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:260:in
checkout' connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:162:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:409:in
retrieve_connection' retrieve_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:89:inconnection' rescue in create_database'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:110:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:54:in
create_database' block (5 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:151:in
local_database?' block (4 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:19:in
each_value' block (3 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:19:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
call' block in execute'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
each' execute'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
block in invoke_with_call_chain' mon_synchronize'
/Volumes/Lion/Users/atbyrd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
invoke_with_call_chain' invoke'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
invoke_task' block (2 levels) in top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
each' block in top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling' top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
block in run' standard_exception_handling'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
run' '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
load' ' Couldn't create database for {"adapter"=>"postgresql",
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
"encoding"=>"unicode","database"=>"alpha_test","pool"=>5,
"username"=>"alpha","password"=>nil} could not connect to server:
Connection refused Is the server running locally and accepting
connections on Unix domain socket"/var/pgsql_socket/.s.PGSQL.5432"?
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
initialize' new'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in
connect' initialize'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:312:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
new' postgresql_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:304:in
new_connection' checkout_new_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in
block (2 levels) in checkout' loop'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:261:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:261:in
block in checkout' mon_synchronize'
/Volumes/Lion/Users/atbyrd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:260:in
checkout' connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:162:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:409:in
retrieve_connection' retrieve_connection'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:89:inconnection' rescue in create_database'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:110:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:54:in
create_database' block (5 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:151:in
local_database?' block (4 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:19:in
each_value' block (3 levels) in '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:19:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
call' block in execute'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
each' execute'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
block in invoke_with_call_chain' mon_synchronize'
/Volumes/Lion/Users/atbyrd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
invoke_with_call_chain' invoke'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
invoke_task' block (2 levels) in top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
each' block in top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling' top_level'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
block in run' standard_exception_handling'
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
run' '
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
load' ' Couldn't create database for {"adapter"=>"postgresql",
/Volumes/Lion/Users/atbyrd/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
"encoding"=>"unicode","database"=>"alpha_production","pool"=>5,
"username"=>"alpha","password"=>nil}
您的问题与Lion或SSD无关。
请先检查你的pgsql是否正在运行。
1 | netstat -tan | grep LISTEN |
PostgreSQL默认应该在5432端口上监听。