sh rbenv-update的调试日志
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh rbenv-update的调试日志相关的知识,希望对你有一定的参考价值。
$ rbenv --debug update
+ [rbenv:15] enable -f /Users/jasonkarns/.rbenv/bin/../libexec/rbenv-realpath.dylib realpath
+ [rbenv:21] '[' -n '' ']'
++ [rbenv:25] type -p greadlink readlink
++ [rbenv:25] head -1
+ [rbenv:25] READLINK=/usr/local/bin/greadlink
+ [rbenv:26] '[' -z /usr/local/bin/greadlink ']'
+ [rbenv:50] '[' -z '' ']'
+ [rbenv:51] RBENV_ROOT=/Users/jasonkarns/.rbenv
+ [rbenv:55] export RBENV_ROOT
+ [rbenv:57] '[' -z '' ']'
++ [rbenv:58] pwd
+ [rbenv:58] RBENV_DIR=/Users/jasonkarns
+ [rbenv:67] export RBENV_DIR
+ [rbenv:70] shopt -s nullglob
++ [rbenv:72] abs_dirname /Users/jasonkarns/.rbenv/bin/rbenv
+++ [rbenv:36] pwd
++ [rbenv:36] local cwd=/Users/jasonkarns
++ [rbenv:37] local path=/Users/jasonkarns/.rbenv/bin/rbenv
++ [rbenv:39] '[' -n /Users/jasonkarns/.rbenv/bin/rbenv ']'
++ [rbenv:40] cd /Users/jasonkarns/.rbenv/bin
++ [rbenv:41] local name=rbenv
+++ [rbenv:42] resolve_link rbenv
+++ [rbenv:32] /usr/local/bin/greadlink rbenv
++ [rbenv:42] path=../libexec/rbenv
++ [rbenv:39] '[' -n ../libexec/rbenv ']'
++ [rbenv:40] cd ../libexec
++ [rbenv:41] local name=rbenv
+++ [rbenv:42] resolve_link rbenv
+++ [rbenv:32] /usr/local/bin/greadlink rbenv
+++ [rbenv:42] true
++ [rbenv:42] path=
++ [rbenv:39] '[' -n '' ']'
++ [rbenv:45] pwd
++ [rbenv:46] cd /Users/jasonkarns
+ [rbenv:72] bin_path=/Users/jasonkarns/.rbenv/libexec
+ [rbenv:73] for plugin_bin in '"${RBENV_ROOT}/plugins/"*/bin'
+ [rbenv:74] PATH='/Users/jasonkarns/.rbenv/plugins/rbenv-update/bin:/Users/jasonkarns/.rbenv/shims:/Users/jasonkarns/.rbenv/bin:/usr/local/var/rbenv/shims:/usr/local/var/nodenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:~/bin'
+ [rbenv:76] export 'PATH=/Users/jasonkarns/.rbenv/libexec:/Users/jasonkarns/.rbenv/plugins/rbenv-update/bin:/Users/jasonkarns/.rbenv/shims:/Users/jasonkarns/.rbenv/bin:/usr/local/var/rbenv/shims:/usr/local/var/nodenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:~/bin'
+ [rbenv:76] PATH='/Users/jasonkarns/.rbenv/libexec:/Users/jasonkarns/.rbenv/plugins/rbenv-update/bin:/Users/jasonkarns/.rbenv/shims:/Users/jasonkarns/.rbenv/bin:/usr/local/var/rbenv/shims:/usr/local/var/nodenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:~/bin'
+ [rbenv:78] RBENV_HOOK_PATH=:/Users/jasonkarns/.rbenv/rbenv.d
+ [rbenv:79] '[' /Users/jasonkarns/.rbenv '!=' /Users/jasonkarns/.rbenv ']'
+ [rbenv:83] RBENV_HOOK_PATH=:/Users/jasonkarns/.rbenv/rbenv.d:/usr/local/etc/rbenv.d:/etc/rbenv.d:/usr/lib/rbenv/hooks
+ [rbenv:87] export RBENV_HOOK_PATH
+ [rbenv:89] shopt -u nullglob
+ [rbenv:92] command=update
+ [rbenv:93] case "$command" in
++ [rbenv:101] command -v rbenv-update
+ [rbenv:101] command_path=/Users/jasonkarns/.rbenv/plugins/rbenv-update/bin/rbenv-update
+ [rbenv:102] '[' -z /Users/jasonkarns/.rbenv/plugins/rbenv-update/bin/rbenv-update ']'
+ [rbenv:107] shift 1
+ [rbenv:108] exec /Users/jasonkarns/.rbenv/plugins/rbenv-update/bin/rbenv-update
+++ [rbenv-update:25] which rbenv
++ [rbenv-update:25] dirname /Users/jasonkarns/.rbenv/libexec/rbenv
+ [rbenv-update:25] cd /Users/jasonkarns/.rbenv/libexec
+ [rbenv-update:26] rbenv_update rbenv
+ [rbenv-update:16] echo -e '\033[1;32mupdating rbenv\033[0m'
[1;32mupdating rbenv[0m
+ [rbenv-update:17] is_rbenv_git_repo
++ [rbenv-update:12] git remote -v
++ [rbenv-update:12] grep -E 'rbenv|ruby-build'
+ [rbenv-update:18] indent_output
+ [rbenv-update:18] git pull --no-rebase --ff
+ [rbenv-update:6] read data
+ [rbenv-update:7] echo -e ' \033[1;32m|\033[0m Already up-to-date.'
[1;32m|[0m Already up-to-date.
+ [rbenv-update:6] read data
+ [rbenv-update:22] echo
+ [rbenv-update:28] cd /Users/jasonkarns/.rbenv
+ [rbenv-update:29] for plugin in 'plugins/*'
+ [rbenv-update:30] pushd plugins/rbenv-update
++ [rbenv-update:31] basename plugins/rbenv-update
+ [rbenv-update:31] rbenv_update rbenv-update
+ [rbenv-update:16] echo -e '\033[1;32mupdating rbenv-update\033[0m'
[1;32mupdating rbenv-update[0m
+ [rbenv-update:17] is_rbenv_git_repo
++ [rbenv-update:12] git remote -v
++ [rbenv-update:12] grep -E 'rbenv|ruby-build'
+ [rbenv-update:18] git pull --no-rebase --ff
+ [rbenv-update:18] indent_output
+ [rbenv-update:6] read data
+ [rbenv-update:7] echo -e ' \033[1;32m|\033[0m Already up-to-date.'
[1;32m|[0m Already up-to-date.
+ [rbenv-update:6] read data
+ [rbenv-update:22] echo
+ [rbenv-update:32] popd
$ RBENV_DEBUG=1 rbenv update | pbcopy
+ [rbenv:15] enable -f /Users/David/.rbenv/bin/../libexec/rbenv-realpath.dylib realpath
+ [rbenv:21] '[' -n '' ']'
++ [rbenv:25] type -p greadlink readlink
++ [rbenv:25] head -1
+ [rbenv:25] READLINK=/usr/bin/readlink
+ [rbenv:26] '[' -z /usr/bin/readlink ']'
+ [rbenv:50] '[' -z '' ']'
+ [rbenv:51] RBENV_ROOT=/Users/David/.rbenv
+ [rbenv:55] export RBENV_ROOT
+ [rbenv:57] '[' -z '' ']'
++ [rbenv:58] pwd
+ [rbenv:58] RBENV_DIR=/Users/David
+ [rbenv:67] export RBENV_DIR
+ [rbenv:70] shopt -s nullglob
++ [rbenv:72] abs_dirname /Users/David/.rbenv/bin/rbenv
+++ [rbenv:36] pwd
++ [rbenv:36] local cwd=/Users/David
++ [rbenv:37] local path=/Users/David/.rbenv/bin/rbenv
++ [rbenv:39] '[' -n /Users/David/.rbenv/bin/rbenv ']'
++ [rbenv:40] cd /Users/David/.rbenv/bin
++ [rbenv:41] local name=rbenv
+++ [rbenv:42] resolve_link rbenv
+++ [rbenv:32] /usr/bin/readlink rbenv
++ [rbenv:42] path=../libexec/rbenv
++ [rbenv:39] '[' -n ../libexec/rbenv ']'
++ [rbenv:40] cd ../libexec
++ [rbenv:41] local name=rbenv
+++ [rbenv:42] resolve_link rbenv
+++ [rbenv:32] /usr/bin/readlink rbenv
+++ [rbenv:42] true
++ [rbenv:42] path=
++ [rbenv:39] '[' -n '' ']'
++ [rbenv:45] pwd
++ [rbenv:46] cd /Users/David
+ [rbenv:72] bin_path=/Users/David/.rbenv/libexec
+ [rbenv:73] for plugin_bin in '"${RBENV_ROOT}/plugins/"*/bin'
+ [rbenv:74] PATH='/Users/David/.rbenv/plugins/rbenv-update/bin:/Users/David/.rbenv/shims:/Users/David/.rbenv/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lib'
+ [rbenv:73] for plugin_bin in '"${RBENV_ROOT}/plugins/"*/bin'
+ [rbenv:74] PATH='/Users/David/.rbenv/plugins/ruby-build/bin:/Users/David/.rbenv/plugins/rbenv-update/bin:/Users/David/.rbenv/shims:/Users/David/.rbenv/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lib'
+ [rbenv:76] export 'PATH=/Users/David/.rbenv/libexec:/Users/David/.rbenv/plugins/ruby-build/bin:/Users/David/.rbenv/plugins/rbenv-update/bin:/Users/David/.rbenv/shims:/Users/David/.rbenv/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lib'
+ [rbenv:76] PATH='/Users/David/.rbenv/libexec:/Users/David/.rbenv/plugins/ruby-build/bin:/Users/David/.rbenv/plugins/rbenv-update/bin:/Users/David/.rbenv/shims:/Users/David/.rbenv/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lib'
+ [rbenv:78] RBENV_HOOK_PATH=:/Users/David/.rbenv/rbenv.d
+ [rbenv:79] '[' /Users/David/.rbenv '!=' /Users/David/.rbenv ']'
+ [rbenv:83] RBENV_HOOK_PATH=:/Users/David/.rbenv/rbenv.d:/usr/local/etc/rbenv.d:/etc/rbenv.d:/usr/lib/rbenv/hooks
+ [rbenv:87] export RBENV_HOOK_PATH
+ [rbenv:89] shopt -u nullglob
+ [rbenv:92] command=sh-update
+ [rbenv:93] case "$command" in
++ [rbenv:101] command -v rbenv-sh-update
+ [rbenv:101] command_path=/Users/David/.rbenv/plugins/rbenv-update/bin/rbenv-sh-update
+ [rbenv:102] '[' -z /Users/David/.rbenv/plugins/rbenv-update/bin/rbenv-sh-update ']'
+ [rbenv:107] shift 1
+ [rbenv:108] exec /Users/David/.rbenv/plugins/rbenv-update/bin/rbenv-sh-update
++ [rbenv-sh-update:5] which rbenv-update
+ [rbenv-sh-update:5] echo -n '/Users/David/.rbenv/plugins/rbenv-update/bin/rbenv-update && '
+ [rbenv-sh-update:6] echo -n 'echo -e "\033[1;32mreloading rbenv\033[0m" && '
+ [rbenv-sh-update:7] echo -n 'eval "$(rbenv init -)" && '
+ [rbenv-sh-update:8] echo -n 'echo -e " \033[1;32m|\033[0m done"'
+ [rbenv-sh-update:10] echo
+++ which rbenv
++ dirname /Users/David/.rbenv/bin/rbenv
+ cd /Users/David/.rbenv/bin
+ rbenv_update rbenv
+ echo -e '\033[1;32mupdating rbenv\033[0m'
+ is_rbenv_git_repo
++ grep rbenv
++ git remote -v
+ git pull --no-rebase --ff
+ indent_output
+ read data
+ echo -e ' \033[1;32m|\033[0m Already up-to-date.'
+ read data
+ echo
+ cd
+ for plugin in 'plugins/*'
+ pushd 'plugins/*'
/Users/David/.rbenv/plugins/rbenv-update/bin/rbenv-update: line 30: pushd: plugins/*: No such file or directory
以上是关于sh rbenv-update的调试日志的主要内容,如果未能解决你的问题,请参考以下文章