Home>
After replacing the PC (from Win7 to Win10), Win7 was Ruby 2.2.4 and Rails was 4.2.6.
Rails can only be installed on Ruby 2.5 or higher on a new PC, so it will work with Ruby 2.5.
I couldn't start with 4.2.6, so when I updated to 4.2.10, I got a different error and was confused.
I thought it was a problem with the version of sqlite3. I tried it a few times, but the result was the same.
Thank you.
Traceback (most recent call last):
21: from bin/rails: 4: in `<main>'
20: from bin/rails: 4: in `require '
19: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands.rb: 17: in `<top (required)>'
18: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb: 39: in `run_command! '
17: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb: 75: in `server '
16: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb: 75: in `tap '
15: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb: 78: in `block in server '
14: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb: 78: in `require '
13: from C: /rails/middle/config/application.rb: 7: in `<top (required)>'
12: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler.rb: 114: in `require '
11: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb: 65: in `require '
10: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb: 65: in `each '
9: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb: 76: in `block in require '
8: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb: 76: in `each '
7: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb: 81: in `block (2 levels) in require '
6: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb: 81: in `require '
5: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb: 2: in `<top (required)>'
4: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb: 6: in `rescue in<top (required)>'
3: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb: 274: in `require '
2: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb: 240: in `load_dependency '
1: from C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb: 274: in `block in require '
C: /Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb: 274: in `require ': cannot load such file-sqlite3/sqlite3_native ( LoadError)
-
Answer # 1
Related articles
- ruby on rails - i want to start the puma server and deploy the rails app
- ruby on rails - unable to start server in aws production environment
- ruby - rails s fails to start the server with a usage: rails new app_path [options] error
- ruby - unable to access server with rails s
- ruby on rails - s3 images are not saved on the ec2 server
- ruby - i started the server in rails s but can't open it
- ruby - [rails] i can't start unicorn
- javascript - rails server does not start
- ruby on rails - can't access rails server
- ruby on rails - cannot start unicorn cannot load `railsconfigactive_storageservice`
- rails server can't start when trying to use redis
- ruby on rails - at the launch of the rails web server
- ruby - unable to open rails server
- ruby - how to start rails
- ruby on rails - about the legitimacy of db design
- ruby on rails 6 - when i press new user registration, i get an error of no route matches [get] "/ users"
- ruby on rails - the value of find_by (id :) becomes nil
- ruby - i want to output csv with narrowed down conditions with rails
- ruby on rails - rails tutorial chapter 13 cooperation between heroku and aws s3 region
- ruby on rails - error when implementing rails6 follow function
Related questions
- ruby - passing variables using render partial
- ruby - gem devise (top page (login form input)) → list screen
- ruby - i get an error with the rails new command
- ruby - implementation of friendly forwarding
- ruby - i installed carrierwave with rails, but i can't see the image
- ruby - about rails controller new action
- ruby - rails page does not open
- [ruby] i'm having trouble with nomethoderror
- ruby - [search function] acquisition of products associated with users
- ruby - even if each statement is used, the contents of the db cannot be displayed in order and an error occurs
I was able to install Ruby 2.4 after typing this in another question.
rails server also moved.