简体   繁体   English

rvm,ubuntu 11.10 gem阻止服务器启动

[英]rvm, ubuntu 11.10 gem preventing server from starting up

I've been banging my head up against a wall on this problem for the past day or two. 在过去的一两天里,我一直在努力解决这个问题。 (I have only been using Linux for a week, and Ruby for 7 months so go easy on me, but I asked a few developers, and no dice, so it sounds like its a real issue). (我只使用Linux一周,而使用Ruby七个月,所以对我来说很轻松,但是我问了几个开发人员,没有求助,所以听起来像是一个真正的问题)。

I have rvm installed with Ruby 1.9.2, and Rails 3.1.1 on Ubuntu 11.10. 我在Ruby 1.9.2上安装了rvm,在Ubuntu 11.10上安装了Rails 3.1.1。 Everything worked fine while I was coding in windows 7. 在Windows 7中进行编码时,一切工作正常。

Here's the issue: When I run rails server , I get the following: 问题出在:运行rails server ,我得到以下信息:

$ rails server
 /usr/share/ruby-rvm/gems/ruby-1.9.2-p318/gems/bundler-1.1.1/lib/bundler/runtime.rb:74:in `require': no such file to load -- twilio/ruby (LoadError)
from /usr/share/ruby-rvm/gems/ruby-1.9.2-p318/gems/bundler-1.1.1/lib/bundler/runtime.rb:74:in `rescue in block in require'

this goes on for a while. 这持续了一段时间。 This is weird to me, because, I searched my app for the line "twilio/ruby" and I couldn't find it. 这对我来说很奇怪,因为我在我的应用中搜索了“ twilio / ruby​​”行,但找不到。

I found these links, where it looks like people had similar issues, but I either couldn't understand what they were saying, or was too afraid to adopt their suggestion to my use in fear of messing up my environment further. 我找到了这些链接,看起来人们有类似的问题,但是我要么听不懂他们在说什么,要么因为害怕进一步破坏环境而太害怕采纳他们的建议。

Also, one developer told me to do the following: 另外,一位开发人员告诉我要执行以下操作:

  1. cd to my project directory cd到我的项目目录
  2. rvm use 1.9.2
  3. bundle install
  4. rails server

But that didn't work either. 但这也不起作用。

在应用程序中搜索“ twilio-ruby”或只是“ twilio”。将其视为捆绑程序,它将在其中抛出异常……否则它可能是另一个gem的依赖项。如果您执行“ gem list -d twilio” '你还得到什么?

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

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