我已经为 bash、curl 等安装了带有最新二进制文件的 cygwin。
每次我运行命令curl -L https://get.rvm.io | bash -s stable
,我得到相同的结果:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 114 0 0:00:01 0:00:01 --:--:-- 136
100 22726 100 22726 0 0 12556 0 0:00:01 0:00:01 --:--:-- 157k
Downloading https://github.com/wayneeseguin/rvm/archive/1.26.3.tar.gz
Downloading https://github.com/wayneeseguin/rvm/releases/download/1.26.3/1.26.3.tar.gz.asc
bash: line 400: /cygdrive/c/Program: No such file or directory
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).
GPG signature verification failed for '/home/euser/.rvm/archives/rvm-1.26.3.tgz' - 'https://github.com/wayneeseguin/rvm/releases/download/1.26.3/1.26.3.tar.gz.a sc'!
try downloading the signatures:
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
or if it fails:
command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
the key can be compared with:
https://rvm.io/mpapis.asc
https://keybase.io/mpapis
我认为主要问题是“没有这样的文件或目录”,但它可能是一个转移注意力的问题。我已经按照上面的命令安装了所有的证书。由于“bash”程序是一个可执行文件,我不知道如何追踪导致此错误的文件路径 - 可能是任何东西。
有人知道我该如何解决这个问题吗?
最佳答案
这里有两个问题
他们没有引用变量
${rvm_gpg_command}
gpg
的路径中有一个空格
其中一个需要修复。快速解决方法是安装 Cygwin
包 gnupg
.
此外,我 did you a solid .
由@mpapis 更新: 并合并,要使用它运行:
curl -L https://get.rvm.io | bash
-s stable
部分必须从命令中删除
(它尚未合并到 stable)。
关于ruby - 在 bash : no such file or directory 中安装 rvm 结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27139387/