我設置RVM(和.rvmrc文件)不正確,所以每當我走我的回報率的項目和種類rails s
或任何其他rails
命令的目錄,我會得到的如何修復rvmrc文件?
The program 'rails' can be found in the following packages:
* rails
* ruby-railties-3.2
Try: sudo apt-get install <selected package>
和我的錯誤必須鍵入rvm use 1.9.3-p392
來修復它。
.rvmrc文件包含
environment_id="[email protected]"
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
then
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
do
if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
then \. "${__hook}" || true
fi
done
unset __hook
else
# If the environment file has not yet been created, use the RVM CLI to select.
rvm --create "$environment_id" || {
echo "Failed to create RVM environment '${environment_id}'."
return 1
}
fi
你能發佈.rvmrc文件的內容嗎? –