Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup MacOS 10.10 Yosemite Discussion

Chris Oliver asked in General
Christopher Su Christopher Su

When I try to install Homebrew, I get:

csu:~$ ruby -e "$(curl -fsSL https://raw.github.com/Home..."
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /Users/christophersu/.rvm/rubies/ruby-2.1.1/bin/ruby
Reason: image not found
Trace/BPT trap: 5
csu:~$

Reply

Looks like you're trying to install with an RVM version of Ruby. https://github.com/Homebrew...

Reply

Been struggling to update to Ruby 2.1.2 all day after updating to Yosemite. This worked!! THANKS SO MUCH!!

Reply

A comment is error:

# Then to load mysql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

Shoulde be "postgresql", not "mysql"

Reply

in "brew install rbenv ruby-build" you can add rbenv-gem-rehash and never rehash again :) this is shown in railsgirls but still have to ask Chris if it is any good

Reply

Sweeet! I'm going to start using this from now on. Thanks for sharing!

Reply
Jitendra Vyas Jitendra Vyas

After yosmite posters has stopped working

/Users/jitendravyas/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize': could not connect to server: No such file or directory (PG::Error)

Is the server running locally and accepting

connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

from /Users/jitendravyas/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `new'

Reply

Same here:

rake db:create

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

Would now be a good time to upgrade to Yosemite if we already have Rails 4 installed on Mavericks?

Reply

Yeah, you may run into a few problems, but upgrading Homebrew and possibly a recompile or two and you won't have hardly any troubles. I updated my Macbook Air during the beta and didn't have hardly any trouble.

Reply

Worked a treat for a newbie thanks

Reply
Yogesh Dishwar Yogesh Dishwar

I am following this guide strictly to install ROR on OS X Yosemite. I have installed ROR successfully but stucked on Configuring GIT. Got error, please help me to go further. Here is the error GIST - https://gist.github.com/tec...

Reply

Just press ENTER when it asks you where to save the file instead of typing "cat" and a filename. It will default to the correct location for you. You can then use the "cat" command to grab the public key after it is finished. Make sense?

Reply

Worked great. Thanks!

Reply
Guillermo Pussetto Guillermo Pussetto

There is one step missing in the "Configuring Git" section.
After adding the key at Github and before testing:

# start the ssh-agent in the background
eval "$(ssh-agent -s)"
# Agent pid 59566
ssh-add ~/.ssh/id_rsa

as described in https://help.github.com/art...

Reply

How can i install Rails 4 on Mac OS version 10.7.5

Reply

Your best bet is to probably try following these steps. Homebrew should take care of getting everything installed properly for you.

Reply

For OS X Yosemite, you may need to remove ~/.rbenv/plugins/ruby-build before 'rbenv install 2.1.5'. See: https://github.com/sstephen...

Reply

Great tutorial - thanks.

'gem install rails' took so long I thought it was broken. 'gem install rails -V' is useful as it shows what it's doing. Also, I ended up having to use 'sudo gem install rails -V', but that could just me my setup.

Reply

i keep on getting the error "open cat ~/.ssh/id_rsa.pub failed: No such file or directory.

Saving the key failed: cat ~/.ssh/id_rsa.pub." during the "configuring Git" part of the article. I don't know what to do. :(

I feel like I'm missing out on something, did I ever make that directory? Was I supposed to? How was I supposed to? I don't think I missed any steps.

Reply
Prateek Kandhari Prateek Kandhari

Install the Xcode command line and then try it.

Reply
Keith Greatz Keith Greatz

I had the same issue, was solved by just pressing enter it will auto save to the correct folder.

Reply
BenjaminFauchald BenjaminFauchald

Great stuff... Even managed after 12 beers

Reply
RonniRasmussen RonniRasmussen

Do not drink and develop ;-)

Reply

lol

Reply

Hello, Sorry. Place for expert but I am a beginner...
I did the installation of Ruby and Rails but it was a mistake. Please could you tell me how to remove it ? I have no idea... I can not remove anything from my $username.
In advance, many thanks.

Reply

CTRL + C !

Reply

Hello,
"gem install rails" didn't work without "sudo". When running "$sudo gem install rails", it prompts error message:

ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options...

I appreciate any advice. Thanks

Reply

zlib is missing; necessary for building libxml2

Make sure you installed all the dependencies (specifically zlib). Also, you almost never want to use "sudo" with this configuration.

Reply
Kirit Vaghela Kirit Vaghela

Try this

sudo env ARCHFLAGS="-arch x86_64" gem install nokogiri -- --use-system-libraries -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.2/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.2/lib --with-xslt-lib=/usr/local/lib --with-xslt-include=/usr/local/include

Reply

How to completely uninstall Rails all Rails gems from OS so i could start from
zero? sudo gem uninstall rails does not work. I will appreciate any help.

Reply

Thank you so much, I really appreciated the guided tour. I'm fairly new working with the backend side of development but your step-by-step got me thru. Cheers!

Reply

You're welcome!

Reply

"Choose the version of Ruby you want to install" Eh hem. Rails*

Reply

Oops, fixing!

Reply
Join the discussion
Create an account Log in

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

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

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