Cannot call bundle by jruby-complete-1.7.21.jar

喜夏-厌秋 提交于 2019-12-24 02:57:14

问题


I've read http://spin.atomicobject.com/2013/04/24/bundler-jruby-complete/ and installed faraday, rspec and bundler gems with commands like:

export GEM_HOME=/var/lib/tomcat6/shared/gems
export GEM_PATH=/var/lib/tomcat6/shared/gems
java -jar jruby-complete-1.7.21.jar -S gem install bundler

And I see these gems in the list provided by

java -jar jruby-complete-1.7.21.jar -S gem list

I also can require files from these gems in inline jruby script, called through JSR223 from Activiti BPM, which is written in java.

But I failed to run gem binaries, e.g. bundle such way:

export BUNDLE_GEMFILE=/var/lib/tomcat6/shared/gems
java -jar jruby-complete-1.7.21.jar -S bundle

How can I use bundler to manage jruby-complete gems?

来源:https://stackoverflow.com/questions/31317687/cannot-call-bundle-by-jruby-complete-1-7-21-jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!