rails new を使用して新しい Rails プロジェクトを作成しました
Railsサーバーで起動しようとすると、次の出力が得られます:
root@debian:/home/marcel/workspaces/rails/sample# rails server /usr/local/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7/lib/sqlite3.rb:6:
require': cannot load such file -- sqlite3/sqlite3_native (LoadError) from /usr/local/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7/lib/sqlite3.rb:6:in
レスキュー中in ' from /usr/local/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7/lib/sqlite3.rb:2:in<top (required)>' from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in
require' from /usr/local/lib/ruby/gems/2.0 .0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:inblock (2 levels) in require' from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in
each' from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/ bundler/runtime.rb:70:inblock in require' from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in
each' from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:requirerequire' from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:132:in
' from / home/marcel/workspaces/rails/sample/config/application.rb:7:in<top (required)>' from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:76:in
require' from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands .rb:76:でblock in <top (required)>' from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in
/usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in から「tap」<top (required)>' from bin/rails:4:in
、bin/rails:4:in から「require」
私は使用しています
- ruby 2.0.0p247 (2013-06-27 リビジョン 41674) [x86_64-linux]
- ジェム 1.8.25
- レール 4.0.0
これは私のGemfileです:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '1.3.7'
gem 'sqlite3-ruby', :require => 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '2.1.1'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails', '2.2.1'
この問題を解決するにはどうすればよいですか?
前もって感謝します