Ask A Question


You’re not receiving notifications from this thread.

Setup MacOS 10.9 Mavericks Discussion

Chris Oliver asked in General

Works like a fucking charm!


Hi, thanks for writing this guide. However, I got to executing the rails server and and got the following error:

FATAL: role "myapp" does not exist

Rails.root: /Users/BCN1002/myapp.

Any advice?


You need to change the config/database.yml username to match your database's username and password.


Thanks so much, I didn't encounter any problems!


I needed
ssh-add ~/.ssh/id_rsa

before connecting to github


$rails server -- the very last command just returns with the usage info for rails.


Make sure you run it inside of a rails app directory otherwise it will just display usage info.


Awesome article Chris!

Though i got stuck strangely at the command below.

git config --global ""


Make sure that you type in the quotes by hand. It looks like the first quotes are an HTML formatted one but not the normal one.


just found some problems with rbenv, may be caused by my homebrew was not the latest version, it say i have rbenv install, but i got empty folders under ~/.rbenv, so i go to to clone it. and rbenv command works, then i found install comment missing, so i clone it by using : git clone ~/.rbenv/plugins/ruby-build , then everything works fine. BTW, i found some one says rbenv should be under ./.rbenv/shims, but i found it still use ~/.rbenv/bin, so just check that you cloned from github :)


So when you ran brew install those directories were empty? That's odd.

Gautam Doddamani Gautam Doddamani

thank you so much worked perfectly...although the cat command wasn't required...another little should copy the public key not the private key...the one that starts with ssh-rsa..after generating the ssh key you can easily copy it onto your clipboard by typing:
pbcopy < ~/ .ssh/
and paste it in github!!


Great Tut thanks


couldn't get postgresql to work. Went back to mysql and it starting working again. Something about write permissions was hanging it up.


ERROR: While executing gem ... (Gem::FilePermissionError)

You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory

how i fix that?

Hoang Trinh Hoang Trinh

this is the best tutorial about setting up ruby on rails (y)

Jitendra Vyas Jitendra Vyas

Could not find a valid gem 'rails' (>= 0), here is why:

Unable to download data from - no such name (


Awesome! Had some small issues at first (when I did the Ruby -V thing, I kept getting my old Ruby version), but after the restart, smooth sailings. Thanks for the info!


Can you tell me how to fix that? I cannot use posgresql database. Here is the error I get ->

could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?


Try specifying the "host:" option so it doesn't try to connect through the socket.


I'm having a little trouble with getting rbenv configured. I have followed all of the commands, but when i try to run rbenv install 2.1.2, I'm getting install command not found.

MacBook-Pro:~ munkie$ rbenv

rbenv 0.4.0-98-g13a474c

MacBook-Pro:~ munkie$ rbenv install 2.1.2

rbenv: no such command `install'

MacBook-Pro:~ munkie$


That command is provided by ruby-build. Make sure you didn't miss any of those steps.


when I run:
`gem install rails`

I got this error:

ERROR: Could not find a valid gem 'rails' (>= 0), here is why:

Unable to download data from - Errno::ETIMEDOUT: Operation timed out - connect(2) for "" port 443 (

What should I do now?


rails new application -d postgresql
Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.

Nathan Buggia Nathan Buggia

I had received an issue with SSL breaking the ruby build. All I had to do was use brew to uninstall SSL and reinstall the latest version.

Error: The Ruby openssl extension was not compiled. Missing the OpenSSL lib?


> brew uninstall openssl
> brew update
> brew install openssl

Great article, thanks!


That's no fun. Do you still have the error to share?

Mark van der Maas Mark van der Maas

I get a "No such file or directory" when using cat ~/.ssh/

Any ideas?

Jared Parmenter Jared Parmenter

I was prompted to add the SSH to a file, (not pictured in the tutorial steps) which I tried doing several times with different naming schemes, but couldn't get it to work. Finally I just re-ran the commands and hit 'enter' at the ask-for-filename step, and from there following the tutorial commands verbatim worked for me.

So if you tried to add it to a different file, don't - just go with the defaults. =)

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 83,453+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.