Railstutorial 13章です。
ImageMagickのインストールを行ったところ
panmac:sample_app panmamkoki$ rails s Traceback (most recent call last): 18: from bin/rails:3:in `<main>' 17: from bin/rails:3:in `load' 16: from /Users/panmamkoki/environment/sample_app/bin/spring:15:in `<top (required)>' 15: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70:in `require' 14: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70:in `require' 13: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>' 12: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load' 11: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/bin/spring:48:in `<top (required)>' 10: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 9: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 8: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:4:in `<top (required)>' 7: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 6: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 5: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:1:in `<top (required)>' 4: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 3: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 2: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/env.rb:3:in `<top (required)>' 1: from /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': dlopen(/Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-darwin17/digest/md5.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError) Referenced from: /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-darwin17/digest/md5.bundle Reason: image not found - /Users/panmamkoki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-darwin17/digest/md5.bundle
このようにrails sもrails cも全て動かなくなってしまったため、パニックになってしまい
brew update && brew upgrade
上記のコードを意味も理解せずに打ったところ
rails s /Users/panmamkoki/.rbenv/shims/rails: line 21: /usr/local/Cellar/rbenv/1.1.1/libexec/rbenv: No such file or directory
このようになってしまいました。これ以上自分でいじることが怖いため、こちらで質問させていただきました。ご回答のほどよろしくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/04/19 08:20
2020/04/19 11:47
2020/04/19 11:53
2020/04/19 14:23