Domanda

I am having trouble installing Grails via GVM. I installed GVM via the instructions on GVM's website, and it appears it was installed correctly - restarting the terminal and running gvm help produces a list of possible commands. However, when I go to install Grails (or Groovy), I get the following output in the terminal:

$ gvm install grails

Downloading: grails 2.3.2

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (1) Protocol [http not supported or disabled in libcurl
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/neilpoulin/.gvm/archives/grails-    2.3.2.zip or
        /Users/neilpoulin/.gvm/archives/grails-2.3.2.zip.zip, and cannot find     /Users/neilpoulin/.gvm/archives/grails-2.3.2.zip.ZIP, period.

Stop! The archive was corrupt and has been removed! Please try installing again.

I looked to make sure zip, unzip and curl were found:

    $ which zip
    /usr/bin/zip

    $ which unzip
    /usr/bin/unzip

    $ which curl
    /usr/bin/curl

Prior to this, the only thing I have done with Grails/Groovy is to execute the example project include on the Grails website - http://grails.org/learn > step 2.

What am I missing here? is there some configuration of libcurl I need to change? Any help is much appreciated!

È stato utile?

Soluzione

On investigation, it seems to be down to inconsistent versions (and behaviour) of MongoDB between our dev and prod environments. This was resulting in our prod server returning an array of urls on the download request (ie [theurl]). This was working perfectly on our dev environment, but started serving the array when the release was promoted to prod. Hope this is making sense!

Altri suggerimenti

I was having this problem persist— for me, it turned out that there were corrupt candidates caches by gvm during a previously failed install.

gvm flush candidates

set things back to rights, here.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top