ruby - Installing Rails on Mac OS Yosemite v10.10.2 (FNG) -
i'm trying install rails onto mac , keep running issue. have no coding/programming experience , trying set can start learning.
i have gone through on install rails.com , not sure do.
your appreciated.
make install failed, exit code 2
gem files remain installed in /users/feferrada/.rvm/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2 inspection. results logged /users/feferrada/.rvm/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/nokogiri-1.6.6.2/gem_make.out
follow steps below install ruby on rails on mac osx yosemite.
if not work please post exact errors. further details installation have @ https://gorails.com/setup/osx/10.10-yosemite
installing homebrew
you might asked install xcode commandline tools - yes.
ruby -e "$(curl -fssl https://raw.githubusercontent.com/homebrew/install/master/install)"
installing ruby
you can browse available versions using
rbenv install --list
installation using homebrew
brew install rbenv ruby-build # add rbenv bash loads every time open terminal echo 'if rbenv > /dev/null; eval "$(rbenv init -)"; fi' >> ~/.bash_profile source ~/.bash_profile # install ruby rbenv install 2.2.1 rbenv global 2.2.1
now ruby installed , should able run
ruby -v # ruby 2.2.1...
installing rails
you can browse available versions of rails using
gem list ^rails$ --remove --all
installation
gem install rails -v 4.2.1
to use rails command run
rbenv rehash
now rails installed , should able run
rails -v # rails 4.2.1
Comments
Post a Comment