我刚刚使用自制软件安装了 ruby,并执行了一个 gem 安装 rails。
虽然它说已经安装了 rails,但当我在终端上输入 rails 时,我得到以下输出:
/Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': dlopen(/Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin11.4.0/digest/md5.bundle, 9): Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib (LoadError)
Referenced from: /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin11.4.0/digest/md5.bundle
Reason: image not found - /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin11.4.0/digest/md5.bundle
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators/app_base.rb:1:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators/rails/app/app_generator.rb:1:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/application.rb:24:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/cli.rb:15:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/bin/rails:7:in `<top (required)>'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/rails:19:in `load'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/rails:19:in `<main>'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
有解决这些错误的方法吗?