我对 Ubuntu 完全陌生,我正在尝试完成 Ruby On Rails 的安装,到目前为止,我已经安装了 Ruby 1.9.3 并将其设置为默认值,当我打开一个新终端时,我安装了 Rails 3.2.8无法识别我的 Rails 安装,我通过寻求帮助了解到我需要在 bashrc 文件中设置路径。
我遇到的 2 个问题是试图了解我的路径是什么以及如何将其输入到 bashrc 文件中(如何找到该文件或在终端中使用命令来设置路径)
这是我的 Ruby 和 Rails 安装位置
andrew@andrew-laptop:~$ sudo updatedb
[sudo] password for andrew:
andrew@andrew-laptop:~$ locate rails|grep -e "bin/rails$"
/home/andrew/.rvm/gems/ruby-1.9.3-p286/bin/rails
/home/andrew/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.8/bin/rails
我试过了,但没有任何改变
andrew@andrew-laptop:~$ export PATH=$PATH:/home/andrew/.rvm/gems/ruby-1.9.3-p286/bin