Setup MacOS 10.10 Yosemite Discussion
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:~$
Looks like you're trying to install with an RVM version of Ruby. https://github.com/Homebrew...
Been struggling to update to Ruby 2.1.2 all day after updating to Yosemite. This worked!! THANKS SO MUCH!!
A comment is error:
# Then to load mysql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Shoulde be "postgresql", not "mysql"
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
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'
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"?
Would now be a good time to upgrade to Yosemite if we already have Rails 4 installed on Mavericks?
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.
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...
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?
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...
How can i install Rails 4 on Mac OS version 10.7.5
Your best bet is to probably try following these steps. Homebrew should take care of getting everything installed properly for you.
For OS X Yosemite, you may need to remove ~/.rbenv/plugins/ruby-build before 'rbenv install 2.1.5'. See: https://github.com/sstephen...
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.
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.
Great stuff... Even managed after 12 beers
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.
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
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.
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
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.
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!