这是我运行rails new blog
尝试创建新的rails项目后的输出,但每次安装Atomic gem部件时都会出现此错误...
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
run bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.0)
Installing i18n (0.6.9)
Installing minitest (4.7.5)
Installing multi_json (1.8.2)
Installing atomic (1.1.14)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/xxxxxx/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
/Users/xxxxxx/.rvm/rubies/ruby-2.0.0-p247/bin/ruby: invalid option -A (-h will show valid options) (RuntimeError)
Gem files will remain installed in /Users/xxxxxx/Personal/Projects/RoR Apps/blog/vendor/bundle/gems/atomic-1.1.14 for inspection.
Results logged to /Users/xxxxxx/Personal/Projects/RoR Apps/blog/vendor/bundle/gems/atomic-1.1.14/ext/gem_make.out
An error occurred while installing atomic (1.1.14), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling.
我的设置正在运行Mac OSX 10.9。我已经通过xcode-select --install
安装了xcode命令行工具。还安装了Homebrew和RVM。
答案 0 :(得分:0)
我今天遇到了同样的问题,因为我最近安装了Mavericks。您可能需要更新一些清单。
我更新了XCode,xcode-select -install,brew更新,rvm要求和gem更新。在那个原子和我的捆绑安装的其余部分终于成功之后。祝你好运。