开发者

glassfish gem installation issue

开发者 https://www.devze.com 2023-02-20 09:22 出处:网络
When I do a gem install glassfish, I get an error: \"ERROR:Could not find a valid gem \'glassfish\' (>= 0), here is why:

When I do a gem install glassfish, I get an error:

"ERROR:  Could not find a valid gem 'glassfish' (>= 0), here is why:
          Found glassfish (0.1.2), but was for platforms universal-java-1.5 ,universal-java"

What should I do 开发者_JAVA百科to fix this error?


You probably have another (non-JRuby) ruby implementation installed locally, and the gem command you are running uses that other impl. Run:

jruby -S gem install glassfish

Or, if you use rvm, switch back to a JRuby impl:

rvm jruby
gem install glassfish
0

精彩评论

暂无评论...
验证码 换一张
取 消