加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

linux系统, shell脚本中的source命令不执行

(2013-06-18 10:11:20)
标签:

linux

source

it

分类: 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


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有