Setup MacOS 10.9 Mavericks Discussion
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.
$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 user.email "chris@excid3.com"
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 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 :)
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!!
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?
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...
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: 127.0.0.1" 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 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?
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.
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!
I get a "No such file or directory" when using cat ~/.ssh/id_rsa.pub
Any ideas?
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. =)