Cocoapod Error After Computer Restart

Uncategorized

For some bizarre reason I was getting this error after I restarted my mac.  I finally figured a way to fix the issue, maybe it’s a hack, but it works.

Error:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs’: Could not find ‘cocoapods’ (>= 0) among 92 total gem(s) (Gem::LoadError)

from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec’

from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem’

from /usr/bin/pod:22:in `<main>’

Fix:

1.  Uninstall cocoapods – gem uninstall cocoapods

2.  Enter into command prompt – /bin/bash –login

3.  Install ruby 2.0

4. Switch to ruby 2.0

5. rvm reset

6. Reinstall cocoapods – gem install cocoapods

Helios – Could not connect to database

Uncategorized

Error connecting to database: “PG::ConnectionBad: could not connect to

server: Connection refused

Is the server running on host “localhost” (127.0.0.1) and accepting

TCP/IP connections on port 5432?

could not connect to server: Connection refused

Is the server running on host “localhost” (::1) and accepting

TCP/IP connections on port 5432?

could not connect to server: Connection refused

Is the server running on host “localhost” (fe80::1) and accepting

TCP/IP connections on port 5432?”

To fix this error I had to:

1) Install Postgresql on my machine using Homebrew.

2) Enter brew info postgres into the command line to receive help for postgres.

3) Run the line that this help doc said to run – postgres -D /usr/local/var/postgres

4) Then fire up Helios.