I l @ ve RuBoard |
Unlike the JDK deployment, Ant is unpacked using tar rather than installed using rpm. Downloading the DistributionPoint your browser to http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/ and select the binary tar.gz file. Save the file to /tmp. Unpacking the DistributionAs root, cd to /usr/local (or another location where you want to deploy packages such as Ant) and then run this command: [root@linux local]# gunzip -c /tmp/jakarta-ant-1.4.1-bin.tar.gz tar xf - This creates the directory /usr/local/jakarta-ant-1.4.1. Adding Ant to PATHCreate the file /etc/profile.d/ant.sh as root with the following content: PATH="$PATH:/usr/local/jakarta-ant-1.4.1/bin" ANT_HOME=/usr/local/jakarta-ant-1.4.1/ export PATH ANT_HOME Testing AntLog out and then log back in. Type ant at a shell prompt. You should see the following: [turner@linux turner]$ ant Buildfile: build.xml does not exist! Build failed Again, as with Windows, this tells you that the binary for Ant is in place but that it didn't find a build.xml file in the current directory (which is what you would expect). |
I l @ ve RuBoard |