如何在基于机架的服务器上更新 Ruby 版本
我在我的服务器上使用 Rack。 我在我的服务器上使用 Passenger。 我在我的服务器上使用 Capistrano。 我尚未在我的服务器上使用 RVM。 我目前在服务器上安装了 ruby 1.8.7,但由于 gem 的原因想更新到 1.9.2。从技术上讲,我想我两者都有,但 ruby -v 产生 1.9.2。
如何更新服务器上的 Ruby,以便 Rack 使用新版本?
我在系统上更新了 Ruby,但 Rack 仍然使用 1.8 ie 的 gems。 “家/USER/shared/bundle/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependency.rb”
I use Rack on my server.
I use Passenger on my server.
I use Capistrano on my server.
I do not yet use RVM on my server.
I currently have ruby 1.8.7 install on the server, but would like to update to 1.9.2 because of a gem. Technically, I think I have both, but ruby -v yields 1.9.2.
How do I update Ruby on the server so that Rack will use the new version?
I updated Ruby on the system, but Rack still uses gems from 1.8 ie.
"home/USER/shared/bundle/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我明白了。您必须编辑 /etc/apache2/apache2.conf 并将 PassengerRuby 的值更改为 ruby 的新位置。就我而言,由于我还安装了 RVM,因此新目录是 /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby
I figure it out. You must edit /etc/apache2/apache2.conf and change the value of PassengerRuby to the new location of ruby. In my case, since I also installed RVM, the new dir was /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby