简体   繁体   English

无法在Rails 3.2 Ruby 1.9.3-p0中安装水银导轨

[英]Could not install mercury-rails in Rails 3.2 Ruby 1.9.3-p0

I'm trying to install Mercury editor: http://jejacks0n.github.com/mercury/ in my rails 3.2.1 application. 我正在尝试在我的Rails 3.2.1应用程序中安装Mercury编辑器: http : //jejacks0n.github.com/mercury/ The problem is, that when the page is loading, and the mercury.js file is in the assets/javascripts it crashes with this message: 问题是,当页面正在加载,并且mercury.js文件在assets / javascripts中时,它崩溃并显示以下消息:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/invoke/MethodHandle

  (in /home/pawelski/.rvm/gems/ruby-1.9.3-p0/bundler/gems/mercury-8cb7ae599c34/vendor/assets/javascripts/mercury/mercury.js.coffee)

I was looking for reason, and found that requiring mercury/mercury in mercury.js file is the problem. 我一直在寻找原因,并发现在cursor.js文件中需要汞/汞是问题所在。 What is wrong? 怎么了? Is the gem not loading correctly? 宝石加载不正确吗?

I tried with an new clean application and the same happened, I guess that it's something wrong in my rails/ruby environment, but where I should start? 我尝试使用新的干净应用程序,但同样发生了,我想这在我的rails / ruby​​环境中是错误的,但是我应该从哪里开始呢?

Unfortunetly it is something wrong with my lib to compile js with coffee-script. 不幸的是,我的lib用咖啡脚本编译js是有问题的。 I changed it to therubyracer, and it works just fine. 我将其更改为therubyracer,并且效果很好。

Temporary solution for this problem, untill I don't come with another. 暂时解决此问题,直到我不再提出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM