Rails 奇怪,rails 安装后不能运行 (解决)

chenge · February 22, 2013 · Last by chenge replied at February 22, 2013 · 2551 hits

ubuntu 1210,虚拟机

chenge@chenge-mac:~$ gem install bundler rails Successfully installed bundler-1.2.4 Successfully installed rails-3.2.12 2 gems installed Installing ri documentation for bundler-1.2.4... Installing ri documentation for rails-3.2.12... Installing RDoc documentation for bundler-1.2.4... Installing RDoc documentation for rails-3.2.12... chenge@chenge-mac:~$ bundle ERROR: Gem bundler is not installed, run gem install bundler first. chenge@chenge-mac:~$ rails The program 'rails' can be found in the following packages:

  • rails
  • ruby-railties-3.2 Try: sudo apt-get install

环境变量没对! 找出 rails bin 文件的位置,加到 ~/.bashrc 的 PATH 变量里面,然后 source ~/.bashrc

#1 楼 @huacnlee 找出 rails bin 文件的位置,这个怎么做?

source ~/.rvm/scripts/rvm

You need to Sign in before reply, if you don't have an account, please Sign up first.