Hey everyone,
I’m trying to do a new project with RoR on my shared host. it’s all in a virtual environment.
I am using: Ruby - 3.1.4p22 Rails - Rails 7.1.2
When I type rails new -T petfoodStore
I get the following:
<internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- json (LoadError)
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/activesupport-7.1.2/lib/active_support/json/decoding.rb:5:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/activesupport-7.1.2/lib/active_support/json.rb:3:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/activesupport-7.1.2/lib/active_support/messages/metadata.rb:4:in `<top (required)>'
from /home/useraccount/rubyvenv/solidus/3.1/gems/activesupport-7.1.2/lib/active_support/messages/codec.rb:4:in `require_relative'
from /home/useraccount/rubyvenv/solidus/3.1/gems/activesupport-7.1.2/lib/active_support/messages/codec.rb:4:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/activesupport-7.1.2/lib/active_support/message_encryptor.rb:6:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/activesupport-7.1.2/lib/active_support/encrypted_file.rb:5:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/generators/rails/encryption_key_file/encryption_key_file_generator.rb:5:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/generators/rails/master_key/master_key_generator.rb:5:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/generators/rails/app/app_generator.rb:180:in `master_key'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/generators/app_base.rb:150:in `public_send'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/generators/app_base.rb:150:in `build'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/generators/rails/app/app_generator.rb:384:in `create_master_key'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/invocation.rb:134:in `block in invoke_all'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/invocation.rb:134:in `each'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/invocation.rb:134:in `map'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/invocation.rb:134:in `invoke_all'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/group.rb:232:in `dispatch'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/base.rb:584:in`start'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/commands/application/application_command.rb:28:in `perform'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/command/base.rb:178:in `invoke_command'
from /home/useraccount/rubyvenv/solidus/3.1/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/command/base.rb:73:in `perform'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/command.rb:71:in `block in invoke'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/command.rb:149:in `with_argv'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/command.rb:69:in `invoke'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/lib/rails/cli.rb:21:in `<top (required)>'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/useraccount/rubyvenv/solidus/3.1/gems/railties-7.1.2/exe/rails:10:in `<top (required)>'
from /home/useraccount/rubyvenv/solidus/3.1/bin/rails:25:in `load'
from /home/useraccount/rubyvenv/solidus/3.1/bin/rails:25:in `<main>'
I checked :/opt/alt/ruby31/share/rubygems/rubygems/core_ext/kernel_require.rb, and it is a file
any ideas?