gpt4 book ai didi

rvm - zsh : exec format error: rvm

转载 作者:行者123 更新时间:2023-12-04 21:08:55 27 4
gpt4 key购买 nike

我在 Mac OS 10.10.5 Yosemite 上安装了 zsh 5.2 (x86_64-apple-darwin14.5.0)

我刚刚通过以下方式为我的用户安装了 RVM:

\curl -sSL https://get.rvm.io | bash -s stable

以下:https://rvm.io/rvm/install .所以 RVM 位于/Users/myuser/.rvm。

我将其添加到我的 ~/.zshrc 中:

导出 PATH="$PATH:$HOME/.rvm/bin"

当我在我的 oh-my-zsh shell 中运行 rvm 时,我得到了(我重新启动了我的 shell)

zsh: exec format error: rvm

我不知道如何调试它。我在网上找不到任何东西。我尝试使用包含的 --autodot-files 标志重新安装。没有帮助。

安装RVM的结果

Turning on auto dotfiles mode.
Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc
gpg: Signature made Tue Mar 29 03:49:47 2016 HST using ...
gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: ...
Subkey fingerprint: ...
GPG verified '/Users/myuser/.rvm/archives/rvm-1.27.0.tgz'

Installing RVM to /Users/myuser/.rvm/
Removing rvm PATH line from /Users/myuser/.mkshrc /Users/myuser/.profile /Users/myuser/.bashrc /Users/myuser/.zshrc.
Adding rvm PATH line to /Users/myuser/.profile /Users/myuser/.mkshrc /Users/myuser/.bashrc /Users/myuser/.zshrc.
Removing rvm loading line from /Users/myuser/.profile /Users/myuser/.bash_profile /Users/myuser/.zshrc /Users/myuser/.zlogin.
Adding rvm loading line to /Users/myuser/.profile /Users/myuser/.bash_profile /Users/myuser/.zlogin.
Installation of RVM in /Users/myuser/.rvm/ is almost complete:

* To start using RVM you need to run `source /Users/myuser/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.

# hjelmeir,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

./scripts/notes: line 12: rvm_warn: command not found
./scripts/notes: line 133: __rvm_sed: command not found
./scripts/notes: line 36: rvm_error: command not found
./scripts/notes: line 220: __rvm_get_user_shell: command not found
./scripts/notes: line 254: __rvm_grep: command not found
./scripts/notes: line 255: __rvm_grep: command not found

我运行了 source/Users/myuser/.rvm/scripts/rvm 命令,然后尝试了 rvm,结果出现 exec 格式错误。

补充:

file ~/.rvm/bin/rvm
/Users/myuser/.rvm/bin/rvm: empty

最佳答案

我不得不清理我的系统并重新开始,所以这个没有真正的答案。但我让它工作了,我开始使用 rbenv。

关于rvm - zsh : exec format error: rvm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37476027/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com