我正在使用 rvm 来管理 ruby 版本。我也在使用特立尼达。当我trinidad -e production
从任何路径运行时,它就会运行,但是当我通过 shell 脚本运行它时,它给出了错误
Gem::LoadError: Could not find 'trinidad' (>= 0) among 14 total gem(s)
to_specs at /usr/local/rvm/rubies/jruby-1.7.13/lib/ruby/shared/rubygems/dependency.rb:298
to_spec at /usr/local/rvm/rubies/jruby-1.7.13/lib/ruby/shared/rubygems/dependency.rb:309
gem at /usr/local/rvm/rubies/jruby-1.7.13/lib/ruby/shared/rubygems/core_ext/kernel_gem.rb:47
at /usr/local/rvm/gems/jruby-1.7.13/bin/trinidad:22
eval at org/jruby/RubyKernel.java:1101
(root) at /usr/local/rvm/gems/jruby-1.7.13/bin/jruby_executable_hooks:15