手动安装ant - binary

下载二进制包:
https://ant.apache.org/bindow...
例如,apache-ant-1.10.11
【手动安装ant - binary】解压到/usr目录下
/usr/apache-ant-1.10.11
配置环境变量
/etc/profile

export ANT_HOME=/usr/apache-ant-1.10.11 export PATH=$ANT_HOME/bin:$PATH

source /etc/profile
which ant

    推荐阅读