I just finished install Xcode, Homebrew, git, RVM and Ruby on a brand new MacBook Pro machine (following this guide). Next thing I wanted to do is install Rails (following this guide) but cat ~/.gemrc only gives me a “No such file or directory”. Any ideas on what I may haven’t done properly? Is there a way I can create this file manually – and is such a thing advised or not?
EDIT:
gem environment
gives this output
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2012-11-10 patchlevel 327) [x86_64-darwin12.2.0]
- INSTALLATION DIRECTORY: /Users/sebkomianos/.rvm/gems/ruby-1.9.3-p327
- RUBY EXECUTABLE: /Users/sebkomianos/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
- EXECUTABLE DIRECTORY: /Users/sebkomianos/.rvm/gems/ruby-1.9.3-p327/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-12
- GEM PATHS:
- /Users/sebkomianos/.rvm/gems/ruby-1.9.3-p327
- /Users/sebkomianos/.rvm/gems/ruby-1.9.3-p327@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
So I guess the configuration file exists somewhere and I only need to add
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
to it so I avoid the rdoc and ri on every gem installation.
copy-paste the following command:
This will do what you are trying to do