Ajinkya Pisal
Ajinkya Pisal

Reputation: 591

error when running trinidad from shell script

I am using rvm to manage ruby versions. Also I am making use of trinidad. When I run trinidad -e production from any path then it runs but when I ran it through the shell script then it given the error

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

Upvotes: 0

Views: 63

Answers (1)

Maxim
Maxim

Reputation: 9961

Use rvm x.x.x do trinidad -e production in your script or specify default rvm ruby version use rvm use x.x.x@global --default.

Update

Probably you problem can be related to current rvm gemset. So, try to specify ruby version with and without @global.

Upvotes: 1

Related Questions