每当我转到包含 .rvmrc
文件的文件夹时,都会出现警告:
Warning! PATH is not properly set up, '/home/me/.rvm/gems/ruby-2.0.0-p247/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-2.0.0-p247'.
我做了 rvm use ruby-2.0.0-p247
,但警告仍然存在。
注意:没有错误,我可以很好地运行我的应用程序,但警告非常烦人。有什么想法吗?
最佳答案
即使将 RVM 升级到 1.25.16 版后,我也收到了同样的警告。我能够通过运行来修复警告:
rvm reset
然后当我跑的时候:
rvm version
我没有再收到错误。
关于ruby - 警告! PATH 没有设置好,一般是 shell 初始化文件引起的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17968580/