shell_session_update: command not found
2016-08-10 20:21
791 查看
最近在mac上安装pod的时候,提示ruby的版本必须>=ruby-2.2.2,所以只能先使用rvm升级ruby的版本。所以得先安装rvm,过程如下:
通过rvm -v查看是否安装成功,发现显示如下:
虽然rvm是安装成功了,但是提示了一个错误:/Users/tgs/.rvm/bin/rvm: line 66:shell_session_update: command not found。由于刚开始忽略了这个错误,导致更新ruby的时候,一直在安装的过程中报shell_session_update:
command not found而升级失败。后来才发现是由于安装rvm的命令比较早期,从而导致在下载的过程中缺少了部分文件,在使用了新的命令时,安装成功。命令如下:
附带ruby更新命令:
$ curl -L get.rvm.io | bash -s stable//等待一段时间下载文件 $ source ~/.bashrc $ source ~/.bash_profile
通过rvm -v查看是否安装成功,发现显示如下:
rvm 1.27.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] /Users/tgs/.rvm/bin/rvm: line 66: shell_session_update: command not found
虽然rvm是安装成功了,但是提示了一个错误:/Users/tgs/.rvm/bin/rvm: line 66:shell_session_update: command not found。由于刚开始忽略了这个错误,导致更新ruby的时候,一直在安装的过程中报shell_session_update:
command not found而升级失败。后来才发现是由于安装rvm的命令比较早期,从而导致在下载的过程中缺少了部分文件,在使用了新的命令时,安装成功。命令如下:
$ curl -sSL https://get.rvm.io | bash $ source ~/.bashrc $ source ~/.bash_profile解决方案原文出处:http://superuser.com/questions/1044130/why-am-i-having-how-can-i-fix-this-error-shell-session-update-command-not-f
附带ruby更新命令:
#查看当前ruby版本 $ ruby -v ruby 2.0.0[-p648] #列出已知的ruby版本 $ rvm list known #安装 ruby-2.3.0 $ rvm reinstall ruby-2.3.0
相关文章推荐
- Mac Sublime Text complie python .py error /bin/bash: shell_session_update: command not found
- linux环境变量 shell变量 command not found解决方法
- sublime text 3编写shell脚本执行报$'\r': command not found
- shell脚本执行错误 $'\r':command not found
- shell---解决shell脚本中回车换行导致command not found
- ansible执行shell模块和command模块报错| FAILED | rc=127 >> /bin/sh: lsof: command not found和| rc=2 >> [Errno 2] No such file or directory
- linux系统中shell中执行命令是报:bash: ifconfig: command not found错误的解决办法
- linux环境变量 shell变量 command not found解决方法(转)
- 日常潜水-20160930-Mac执行shell脚本报错_command not found
- The session of user SCOTT receives the following error after executing an UPDATE command on the EMP
- shell 脚本 “bc: command not found ” 解决
- linux环境变量 shell变量 command not found解决方法
- Mac执行shell脚本提示command not found的一种解决方案
- shell脚本中的bash错误:$'\r': command not found [caca]
- shell脚本if语法错误:if[ 20 == 10 ]: command not found
- shell脚步错误“command not found 2:”
- ubuntu终端执行shell脚本报command not found解决方法
- g++: command not found的解决 G++没有装或却没有更新 以下方法都可以试试: centos: yum -y update gcc yum -y install gcc+
- 172.The session of user SCOTT receives the following error after executing an UPDATE command on the
- shell find: command not found