Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup MacOS 10.9 Mavericks Discussion

Chris Oliver asked in General

Works like a fucking charm!

Reply

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?

Reply

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

Reply

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

Reply

I needed
ssh-add ~/.ssh/id_rsa

before connecting to github

Reply

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

Reply

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

Reply

Awesome article Chris!

Though i got stuck strangely at the command below.

git config --global user.email "chris@excid3.com"

Reply

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.

Reply

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 https://github.com/sstephen... to clone it. and rbenv command works, then i found install comment missing, so i clone it by using : git clone https://github.com/sstephen... ~/.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 :)

Reply

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

Reply
Gautam Doddamani Gautam Doddamani

thank you so much man...it worked perfectly...although the cat command wasn't required...another little info...you 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/id_rsa.pub
and paste it in github!!

Reply

Great Tut thanks

Reply

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

Reply

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?

Reply
Hoang Trinh Hoang Trinh

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

Reply
Jitendra Vyas Jitendra Vyas

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

Unable to download data from https://rubygems.org/ - no such name (https://api.rubygems.org/la...

Reply

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!

Reply

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"?

Reply

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

Reply

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$

Reply

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

Reply

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 https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) for "s3.amazonaws.com" port 443 (https://api.rubygems.org/la...

What should I do now?

Reply

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.

Reply
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?

Fix:

> brew uninstall openssl
> brew update
> brew install openssl

Great article, thanks!

Reply

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

Reply
Mark van der Maas Mark van der Maas

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

Any ideas?

Reply
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. =)

Reply
Join the discussion
Create an account Log in

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

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

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