在這個項目上工作:https://github.com/cucumber/bool如何在Makefile中使用rvm?
有一個makefile來構造各種項目,我想使用RVM能夠爲東西紅寶石目錄內的紅寶石之間進行切換,但是,當我給makefile文件命令,切換紅寶石,我得到一個討厭的錯誤
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
當然,如果我發出rvm use 1.9.3
在命令行上它工作得很好,所以這是別的東西的症狀,但我不知道是什麼。
問題和答案也適用於nvm。你可以添加nvm標籤,讓nvm的人可以找到答案嗎? –