从 rails 开始,我遇到了 'rails s' 的问题,并出现以下错误:
/usr/bin/ruby1.8: symbol lookup error: /var/lib/gems/1.8/gems/therubyracer-0.11.0beta5-x86_64-linux/lib/v8/init.so: undefined symbol: rb_intern2
从 rails 开始,我遇到了 'rails s' 的问题,并出现以下错误:
/usr/bin/ruby1.8: symbol lookup error: /var/lib/gems/1.8/gems/therubyracer-0.11.0beta5-x86_64-linux/lib/v8/init.so: undefined symbol: rb_intern2
You should consider updating to the latest version of Ruby and Rails (1.9.2 and 3.2.7, respectively). Also, you should make sure you have the latest version of the gem by running
gem uninstall therubyracer
gem install therubyracer
Note that servers such as WEBrick need to be restarted after installing gems; you can't just install the gem, include it in your code, and refresh the page like you can with new JS or CSS.
我遇到了这个问题,但似乎我的本地版本需要 therubyracer 的 beta 版(支持 libv8,因为它在 OS X 10.8 上没有它会引发编译错误),但我的生产系统不需要(CentOS)。
我尝试在我的包中指定 group :production do ,但它抛出一个错误,说我已经调用了两次 gem。http://gembundler.com/rationale.html是让我尝试的。