rvmのインストールを間違ってしてしまい、reinstallをしたのですが
https://gyazo.com/01eab1c4d16f90e0569cd6fc700c5a97
上のようなエラーが出てしまい解決できません
cloud9で
ruby '2.5.3'
Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
です
/home/ec2-user/.rvm/gems/ruby-2.5.3:/home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0はopenできなく
調べてみたところ
rm -rf /home/ec2-user/.rvm/gems/ruby-2.5.3:/home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0
をしてからbundle installしようと考えているのですが、ファイルを削除してしまうコマンドなのでご助言いただきたいですmm
Traceback (most recent call last): 22: from /home/ec2-user/.rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `<main>' 21: from /home/ec2-user/.rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `eval' 20: from /home/ec2-user/.rvm/gems/ruby-2.5.3/bin/rails:23:in `<main>' 19: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:304:in `activate_bin_path' 18: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:304:in `synchronize' 17: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:305:in `block in activate_bin_path' 16: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1417:in `activate' 15: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `activate_dependencies' 14: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `each' 13: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1449:in `block in activate_dependencies' 12: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1417:in `activate' 11: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `activate_dependencies' 10: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `each' 9: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1449:in `block in activate_dependencies' 8: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1417:in `activate' 7: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `activate_dependencies' 6: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `each' 5: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1449:in `block in activate_dependencies' 4: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1417:in `activate' 3: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `activate_dependencies' 2: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1435:in `each' 1: from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1446:in `block in activate_dependencies' /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'nokogiri' (>= 1.5.9) among 69 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/home/ec2-user/.rvm/gems/ruby-2.5.3:/home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0', execute `gem env` for more information
回答1件
あなたの回答
tips
プレビュー