jruby、glassfish gem 和捆绑器
我想知道是否有人有以下问题:
在 jruby 环境中,我可以这样做:
gem install glassfish
没问题
但是如果我添加
gem 'glassfish'
到我的 Gemfile 中并执行
bundle install
它,总是抱怨找不到玻璃鱼宝石。
有什么办法解决这个问题吗?谢谢
I wonder if anybody has the following issue:
in a jruby environment, I can do:
gem install glassfish
no problem
But if I add
gem 'glassfish'
to my Gemfile and do
bundle install
it always complain glass fish gem cannot be found.
Any solution to this? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的 Gemfile 中有
源代码“http://rubygems.org”
吗?我刚刚测试过很好:
话虽如此,请记住 glassfish gem 目前尚未维护。有关替代方案,请查看此博客文章:http:// www.engineyard.com/blog/2011/take-stock-jruby-web-servers/
Do you have
source "http://rubygems.org"
in your Gemfile? I just testedand it was fine:
Having said that, please keep in mind that glassfish gem is not maintained at this time. For the alternatives, please check this blog post: http://www.engineyard.com/blog/2011/taking-stock-jruby-web-servers/
结果发现是 Gemfile.lock 出了问题。删除该文件并重新安装修复了该问题。
It turned out to be something wrong with the Gemfile.lock. deleted the file and reinstall fixed the issue.