gem install rails
后执行
rails new foobar
提示
zsh: command not found: rails
The program 'rails' can be found in the following package:
* rubygem-railties-3_2 path: /usr/bin/rails, repository: zypp (repo-oss) ]
Try installing with:
sudo zypper install rubygem-railties-3_2
但
gem list
结果为:
rails (4.1.2, 4.1.1)