我的配置:
- 操作系统:Ubuntu 12.04
- rvm版本:1.25.14
- ruby版本:2.1.0p0
-
gem版本:2.2.1
$ which ruby /home/tauhidul35/.rvm/rubies/ruby-2.1.0/bin/ruby $ which rvm /home/tauhidul35/.rvm/bin/rvm $其中 /home/tauhidul35/.rvm/rubies-2.1.0/bin/gem $捆绑 /home/tauhidul35/.rvm/gems /ruby-2.1.0@global/bin/bundle
现在当我运行命令时,出现错误:
$ gem install rails 错误:执行gem时(NoMethodError)未定义方法`ord 'for nil:NilClass如果我运行命令,则会收到错误消息:
$ sudo apt-get install rails E:无法找到软件包导轨我是 Ubuntu 和 on Rails 中的新成员。请帮助我。
解决方案感谢所有人的帮助。 最后解决了这个问题,当我更新我的电脑使用Ubuntu更新管理器。 我不知道为什么更新后解决了问题。 但我相信它可以通过更新所有方法来解决。 特别感谢majioa。
My configuration:
- Operating System: Ubuntu 12.04
- rvm version: 1.25.14
- ruby version: 2.1.0p0
gem version: 2.2.1
$ which ruby /home/tauhidul35/.rvm/rubies/ruby-2.1.0/bin/ruby $ which rvm /home/tauhidul35/.rvm/bin/rvm $ which gem /home/tauhidul35/.rvm/rubies/ruby-2.1.0/bin/gem $ which bundle /home/tauhidul35/.rvm/gems/ruby-2.1.0@global/bin/bundle
Now when I run command, I get error:
$ gem install rails ERROR: While executing gem ... (NoMethodError) undefined method `ord' for nil:NilClassIf I run command, I get error:
$ sudo apt-get install rails E: Unable to locate package railsI am new in Ubuntu and also Ruby on Rails. Please help me.
解决方案Thanks to all for your help. At last this problem is solved, when I update my computer using Ubuntu Update Manager. I don't know why solved the problem after updates. But I am sure it is solved by Updating all. Specially thanks to majioa.
更多推荐
运行“gem install rails”时出错
发布评论