Ruby 安装rvm会导致bash:没有这样的文件或目录

Ruby 安装rvm会导致bash:没有这样的文件或目录,ruby,windows,bash,cygwin,rvm,Ruby,Windows,Bash,Cygwin,Rvm,我已经用bash、curl等的最新二进制文件安装了cygwin 每次我运行命令curl-L时https://get.rvm.io |bash-s稳定,我得到了相同的结果: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 18

我已经用bash、curl等的最新二进制文件安装了cygwin

每次我运行命令
curl-L时https://get.rvm.io |bash-s稳定
,我得到了相同的结果:

% 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\u gpg\u command}

  • 您到
    gpg
    的路径中有一个空格

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

    还有我


    由@mpapis:更新,并将其合并,以使用它运行:

    curl -L https://get.rvm.io | bash 旋度-Lhttps://get.rvm.io |猛击 必须从命令中删除
    -s稳定的
    部分
    (尚未合并到稳定版中。

    您可以下载签名并手动导入:

    卷曲-#低

    gpg—导入mpapis.asc


    这将解决您的问题。

    这似乎就是问题所在。将脚本下载到文件中。找到那一行并在其上的
    ${rvm\u gpg\u command}
    周围加上引号。然后再试一次,看看是否有效。如果它真的这样做了,那么向rvm提交一个关于需要修复的bug。你指的是哪个脚本,我在哪里可以找到它?还有,我该如何将其合并回?哦,我刚刚意识到URL就是脚本。。。