在ubuntu下安装ant
可以通过:sudo apt-get install ant安装,不过要附带安装一堆东西。
建议手工安装,先下载ant
然后,解压缩:
tar xvf apache-ant-1.7.1-bin.tar.gz
然后,移动到比如/opt目录下:
sudo mv apache-ant-1.7.1 /opt/
设置环境变量:
sudo gedit /etc/profile
在umask 022下加上以下内容:
export ANT_HOME=/opt/apache-ant-1.7.1
PATH=$PATH:/opt/apache-ant-1.7.1/bin
让配置生效:
source /etc/profile
检查一下是否安装成功:
wen@ubuntu:~/桌面$ ant -version
显示:Apache Ant version 1.7.1 compiled on June 27 2008
则表示成功!
相关推荐
BitsPlayer 2020-05-29
roygbip 2020-02-16
BitsPlayer 2020-02-13
lrcoop 2020-02-03
chichichi0 2020-01-06
BitsPlayer 2019-12-19
BitsPlayer 2019-12-14
xueliangEmail 2013-07-22
cailianren 2010-04-15
wugang0 2019-11-09
lustdevil 2011-08-28
evilvoid 2008-04-17
leonranri 2019-11-05
leeccr 2019-10-31
evilvoid 2010-02-02