简体   繁体   English

我的RVM红宝石版本不正确吗?

[英]Is my RVM ruby version incorrect?

I deployed a web app today to my production server, I had an error and in my passenger backtrace I noticed this: 我今天在我的生产服务器上部署了一个Web应用程序,出现了一个错误,在我的乘客回溯中,我注意到了这一点:

/var/www/sites/exampleapp/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_specification.rb

This repeats a few times so I won't paste the entire backtrace. 这重复了几次,所以我不会粘贴整个回溯。

However, I made sure that on my server ruby 1.9.2 was the default for rvm: 但是,我确保在服务器上ruby 1.9.2是rvm的默认值:

jeff@bigbox:/var/www/sites$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

At the bottom of my backtrace I have this: 在我的回溯的底部我有这个:

/home/jeff/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb

Is my app in fact using 1.9.2, if so what is this 1.9.1 stuff and can I safely ignore it? 我的应用程序实际上是否在使用1.9.2,如果是,那么1.9.1是什么,我可以放心地忽略它吗? I don;t even have 1.9.1 on this box nor do I have a system ruby installed. 我什至没有此盒子上的1.9.1,也没有安装系统红宝石。

Per the 1.9.2 release announcement : 根据1.9.2发布公告

Standard library is installed in /usr/local/lib/ruby/1.9.1 标准库安装在/usr/local/lib/ruby/1.9.1中

This version is a "library compatible version." 此版本是“库兼容版本”。 Ruby 1.9.2 is almost 1.9.1 compatible, so the library is installed in the 1.9.1 directory. Ruby 1.9.2几乎与1.9.1兼容,因此该库安装在1.9.1目录中。

Even though you still see stuff installed in a 1.9.1 directory, it is using 1.9.2 即使您仍然看到安装在1.9.1目录中的内容,它仍在使用1.9.2

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

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