GVM不会在linux mint上安装产品

时间:2014-07-10 03:00:15

标签: grails groovy gradle installation gvm

我有一个最新版本的GVM - 实际上,我的整个机器是最近的,因为我擦掉了Windows并在5月底或6月初安装了Linux Mint 17。 GVM不安装软件,甚至不创建目录(在示例中,没有2.4.2目录 - 如您所见, mv 因此失败)。我不得不手动安装产品。如果我没有这样做,“当前”指向不存在的实例。这对Grails,Groovy和Gradle来说都是如此。

以下是一个例子:

worldwidewilly@hal9000 ~ $ gvm install grails 2.4.2

Downloading: grails 2.4.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:00:05 --:--:--     0
100  131M  100  131M    0     0  1208k      0  0:01:51  0:01:51 --:--:-- 2092k

Installing: grails 2.4.2
mv: target ‘/home/worldwidewilly/.gvm/grails/2.4.2’ is not a directory
Done installing!

Do you want grails 2.4.2 to be set as default? (Y/n): y

Setting grails 2.4.2 as default.

我需要做什么才能在安装上失败? Linux中是否存在需要安装的依赖项?

编辑#1 - 添加请求的ls

worldwidewilly@hal9000 ~ $ \ls -la ~/.gvm
total 64
drwxr-xr-x 16 worldwidewilly worldwidewilly 4096 Jun 15 12:27 .
drwxr-xr-x 53 worldwidewilly worldwidewilly 4096 Jul  9 22:11 ..
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jul  9 07:58 archives
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 bin
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 crash
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 etc
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 ext
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 gaiden
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 glide
drwxr-xr-x  3 worldwidewilly worldwidewilly 4096 Jun 28 20:54 gradle
drwxr-xr-x  3 worldwidewilly worldwidewilly 4096 Jul  9 08:11 grails
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 griffon
drwxr-xr-x  3 worldwidewilly worldwidewilly 4096 Jun 15 12:27 groovy
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 src
drwxr-xr-x  6 worldwidewilly worldwidewilly 4096 Jul  9 08:00 tmp
drwxr-xr-x  2 worldwidewilly worldwidewilly 4096 Jun 15 12:27 var

编辑#2 - 添加第二秒ls

worldwidewilly@hal9000 ~ $ ls -la ~/.gvm/grails
total 12K
  524305 drwxr-xr-x  3 worldwidewilly worldwidewilly 4.0K Jul  9 08:11 .
59776162 drwxr-xr-x 16 worldwidewilly worldwidewilly 4.0K Jun 15 12:27 ..
19138378 drwxr-xr-x 10 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 2.4.1
  524458 lrwxrwxrwx  1 worldwidewilly worldwidewilly   38 Jul  9 08:11 current -> /home/worldwidewilly/.gvm/grails/2.4.2

编辑#3 - 显示2.4.1目录的内容

worldwidewilly@hal9000 ~ $ ls -la ~/.gvm/grails/2.4.1
total 284K
19138378 drwxr-xr-x 10 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 .
  524305 drwxr-xr-x  3 worldwidewilly worldwidewilly 4.0K Jul  9 08:11 ..
19267975 drwxr-xr-x  2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 bin
19138379 -rw-r--r--  1 worldwidewilly worldwidewilly   22 Jun 17 09:30 build.properties
19267980 drwxr-xr-x  2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 conf
19267984 drwxr-xr-x  2 worldwidewilly worldwidewilly  64K Jun 17 10:10 dist
19138380 -rw-r--r--  1 worldwidewilly worldwidewilly  117 Jun 17 09:20 INSTALL
19138382 drwxr-xr-x 62 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 lib
19138381 -rw-r--r--  1 worldwidewilly worldwidewilly 171K Jun 17 09:20 LICENSE
19267653 drwxr-xr-x  4 worldwidewilly worldwidewilly 4.0K Jun 17 09:20 media
19267952 drwxr-xr-x  2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 plugins
19138931 -rw-r--r--  1 worldwidewilly worldwidewilly 2.5K Jun 17 09:20 README
19267876 drwxr-xr-x  2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 scripts
19267676 drwxr-xr-x  5 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 src

编辑#4 - 添加拉链信息

worldwidewilly@hal9000 ~ $ which zip
/usr/bin/zip
worldwidewilly@hal9000 ~ $ zip -h
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
Zip 3.0 (July 5th 2008). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
  The default action is to add or replace zipfile entries from list, which
  can include the special name - to compress standard input.
  If zipfile and list are omitted, zip compresses stdin to stdout.
  -f   freshen: only changed files  -u   update: only changed or new files
  -d   delete entries in zipfile    -m   move into zipfile (delete OS files)
  -r   recurse into directories     -j   junk (don't record) directory names
  -0   store only                   -l   convert LF to CR LF (-ll CR LF to LF)
  -1   compress faster              -9   compress better
  -q   quiet operation              -v   verbose operation/print version info
  -c   add one-line comments        -z   add zipfile comment
  -@   read names from stdin        -o   make zipfile as old as latest entry
  -x   exclude the following names  -i   include only the following names
  -F   fix zipfile (-FF try harder) -D   do not add directory entries
  -A   adjust self-extracting exe   -J   junk zipfile prefix (unzipsfx)
  -T   test zipfile integrity       -X   eXclude eXtra file attributes
  -y   store symbolic links as the link instead of the referenced file
  -e   encrypt                      -n   don't compress these suffixes
  -h2  show more help

1 个答案:

答案 0 :(得分:0)

问题在于我对 mv 命令进行了不正确的混淆,导致 mv 中断。有关更深入的解释,请参阅http://forums.linuxmint.com/viewtopic.php?f=90&t=174548