我尝试执行我的RoR应用程序,但是当我执行命令时:rails s
显示以下错误:
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/bin/rails:6: warning: previous definition of APP_PATH was here
Usage: rails COMMAND [ARGS]
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate" (short-cut alias: "d")
plugin new Generates skeleton for developing a Rails plugin
runner Run a piece of code in the application environment (short-cut alias: "r")
但是,当我执行命令时:
$ rake rails:update:bin
rake aborted!
LoadError: dlopen(/Users/Jarvis/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libMagickCore-6.Q16.2.dylib
Referenced from: /Users/Jarvis/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle
Reason: image not found - /Users/Jarvis/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:247:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:247:in `block in require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:247:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/rmagick-2.13.2/lib/rmagick.rb:11:in `<top (required)>'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:76:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:72:in `each'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:72:in `block in require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:61:in `each'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:61:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler.rb:132:in `require'
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/config/application.rb:7:in `<top (required)>'
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/Rakefile:4:in `require'
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/Rakefile:4:in `<top (required)>'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
的Gemfile:
source 'https://rubygems.org'
source 'http://rubygems.org'
if RUBY_VERSION =~ /1.9/ # assuming you're running Ruby ~1.9
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
end
gem 'rails', '4.1.2'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'cells'
gem 'paperclip'
gem "mail"
gem "jquery-fileupload-rails"
gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
gem "rmagick"
gem 'will_paginate', '~> 3.0'
gem 'pg'
gem 'roadie'
gem 'rubyXL'
gem 'spreadsheet'
gem 'fileutils'
gem 'iconv'
gem 'roo'
答案 0 :(得分:0)
下有配置文件
config/initializers
当我删除dragonfly_s3,dragonfly和s3_direct_upload时出现此错误
执行捆绑安装并执行rails s
我得到了同样的错误
删除了初始化程序文件并且有效