Wie installiere ich Ameisen & Efeu?

17064
Ziggy

Ich habe Ant installiert ... und ich habe Efeu installiert (beide von Synaptic), aber Ameise kann keinen Efeu finden!

Wenn ich am ant laufe, um 'oktober-Schach-Engine' zu bauen , bekomme ich Folgendes:

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 

Ich bin nicht sicher, wie ich vorgehen soll! Ich habe diese Frage ausgecheckt, aber mein Problem wurde nicht angesprochen.

Vielen Dank,

8

3 Antworten auf die Frage

10
pol3waf

This seems to be a common issue, as I had the same problem. After installing ivy with apt-get, it didn't show up in the desired folders, but in:

[...] /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 [...] 

(You may have to update your mlocate database with updatedb and then use locate ivy to find it.)

To solve this: create a link in the /usr/share/ant/lib/

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

Note, that /usr/share/java/ivy.jar is a link itself.

Danke, das hat für mich funktioniert. Ich bekomme zwar eine Warnung zu einer "nicht offiziellen Version" RobAu vor 10 Jahren 1
7
Matteo

How did you install ivy? In any case you need to put ivy.jar (from http://ant.apache.org/ivy/download.html) in any of the listed directories

  • /usr/share/ant/lib
  • $/.ant/lib (in your case /home/zeigfreid/.ant/lib)

You can check what and is loading if you execute it with the -v option (verbose)

Das hat es geschafft, danke! Ich habe gerade in $ /. Ant / lib einen symbolischen Link auf die Datei ivy.jar gesetzt. Ziggy vor 11 Jahren 0
1
Jose Miguel

Ich fand es sehr nützlich, dass ant Efeu installieren ließ, siehe automatische Installation .

Auf diese Weise ist ant die einzige Betriebssystemabhängigkeit, und es ist nicht erforderlich, zusätzliche Konfigurationen wie ANT_OPTS oder classpath hinzuzufügen.