现在的位置: 首页 > 综合 > 正文

rails 安装出错

2018年09月10日 ⁄ 综合 ⁄ 共 545字 ⁄ 字号 评论关闭

gem install bundler rails

menxu@debian:~/文档/ruby$ bundle -v

ERROR: Gem bundler is not installed, run `gem install bundler` first.
menxu@debian:~/文档/ruby$ gem install bundler rails
Successfully installed bundler-1.3.4
Parsing documentation for bundler-1.3.4
Successfully installed rails-3.2.13
Parsing documentation for rails-3.2.13
2 gems installed
menxu@debian:~/文档/ruby$ bundle -v

ERROR: Gem bundler is not installed, run `gem install bundler` first.

在终端里运行 source ~/.rvm/scripts/rvm 
然后运行 type rvm | head -n 1
如果提示你 
rvm is a function 或者 rvm 是一个函数 
那么就代表你安装成功了
执行 rails -v 就会提示你rails 的版本信息
参考 https://rvm.io/rvm/install/

抱歉!评论已关闭.