在bash中安装rvm结果:没有这样的文件或目录

cod*_*het 2 ruby windows bash cygwin rvm

我已经为cygwin安装了最新的二进制文件,用于bash,curl等.

每次运行命令时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
Run Code Online (Sandbox Code Playgroud)

我认为主要问题是"没有这样的文件或目录",但它可能是一个红色的鲱鱼.我已经根据上面的命令安装了所有证书.由于'bash'程序是一个可执行程序,我不知道如何跟踪导致此错误的文件路径 - 可能是任何东西.

有人知道如何解决这个问题吗?

小智 5

这里有两个问题

  1. 他们没有引用变量 ${rvm_gpg_command}

  2. 你的路径gpg有一个空间

其中一个需要修复.快速解决方法是安装Cygwin软件包gnupg.

而且,我给你一个坚实的.


由@mpapis更新:并且它被合并,使用它运行:

curl -L https://get.rvm.io | bash

-s stable必须从命令中删除该部分(它尚未合并为稳定).

  • ++用于快速公关. (2认同)