0

I'm try to learn ruby on rails but after many tried also cannot install.I use Mac with OS: 10.9.2. Please help. Bellow is description of error when I use: sudo gem install rails. Sorry cause post many thing display into the terminal, I'm not sure which is really the root cause, so that I copy all of them. I also read the relate link on stack overflow but not help with me:

Fetching: thread_safe-0.3.3.gem (100%)

Successfully installed thread_safe-0.3.3

Fetching: tzinfo-1.1.0.gem (100%)

Successfully installed tzinfo-1.1.0

Fetching: json-1.8.1.gem (100%)

Building native extensions. This could take a while...

ERROR: Error installing rails:

ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" compiling generator.c linking shared-object json/ext/generator.bundle clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: *** [generator.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/json-1.8.1/gem_make.out

Community
  • 1
  • 1
lee
  • 7,535
  • 8
  • 43
  • 59
  • 3
    It's better to install Rails on Mavericks using RVM, the Ruby version manager. For an installation guide, with more explanation, see [Install Ruby on Rails - Mac OS X Mavericks](http://railsapps.github.io/installrubyonrails-mac.html). – Daniel Kehoe Apr 20 '14 at 04:34
  • Thanks for your help. This link is very helpful. – lee Apr 20 '14 at 07:01

0 Answers0