linux系统, shell脚本中的source命令不执行
(2013-06-18 10:11:20)
标签:
linuxsourceit |
分类: linux |
rails32.sh中:
source ~/.bash_profile
rvm 1.9.3@rails32
执行: $ ./rails32.sh
输出结果:
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的环境变量初始化失败。
解决办法: 用source命令执行shell
$ source rails32.sh
参考:http://wenku.baidu.com/view/cddffdf20242a8956bece4fb.html
执行:
输出结果:
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的环境变量初始化失败。
解决办法:
参考:http://wenku.baidu.com/view/cddffdf20242a8956bece4fb