如何安装蚂蚁和常春藤?

Zig*_*ggy 11 linux installation ant

我已经安装了 ant...并且我已经安装了 ivy(都来自突触),但是 ant 找不到 ivy!

当我运行 ant 来构建'october-chess-engine' 时,我得到以下信息:

BUILD FAILED
/home/zeigfreid/repos/october-chess-engine/build.xml:32: Problem: failed to create task or type antlib:org.apache.ivy.ant:resolve
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/home/zeigfreid/.ant/lib
        -a directory added on the command line with the -lib argument
Run Code Online (Sandbox Code Playgroud)

我不知道如何继续!我检查了这个问题,但它没有解决我的问题。

谢谢,

小智 11

这似乎是一个常见问题,因为我遇到了同样的问题。用 安装ivyapt-get,它没有出现在所需的文件夹中,而是出现在:

[...]
/usr/share/doc/ivy
/usr/share/doc/ivy/README
/usr/share/doc/ivy/README.Debian
/usr/share/doc/ivy/changelog.Debian.gz
/usr/share/doc/ivy/changelog.gz
/usr/share/doc/ivy/copyright
/usr/share/java/ivy-2.2.0.jar
/usr/share/java/ivy.jar
[...]

(您可能需要更新您的 mlocate 数据库, updatedb 然后使用 locate ivy 它来查找它。)

要解决此问题:在 /usr/share/ant/lib/

sudo ln -s -T /usr/share/java/ivy.jar /usr/share/ant/lib/ivy.jar

请注意,这/usr/share/java/ivy.jar是一个链接本身。


Mat*_*teo 10

你是怎么安装ivy的?在任何情况下,您都需要将 ivy.jar(来自http://ant.apache.org/ivy/download.html)放在任何列出的目录中

  • /usr/share/ant/lib
  • ${HOME}/.ant/lib(在你的情况下/home/zeigfreid/.ant/lib

如果您使用-v选项(详细)执行它,您可以检查什么和正在加载