Chinaunix首页 | 论坛 | 博客
  • 博客访问: 465671
  • 博文数量: 122
  • 博客积分: 1403
  • 博客等级: 中尉
  • 技术积分: 1668
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-11 13:31
文章分类

全部博文(122)

文章存档

2018年(5)

2017年(12)

2014年(15)

2013年(33)

2012年(4)

2011年(53)

分类: Python/Ruby

2011-03-10 11:40:09

1、下载apache-ant-1.8.2-bin.tar.gz 到/usr
路径:,具体过程不表
 
2、解压、改名
[root@localhost ant]# tar xvf apache-ant-1.8.2-bin.tar.gz
[root@localhost usr]# mv apache-ant-1.8.2 ant

3、修改环境变量
 
[root@localhost ~]# vi /etc/profile
在末尾增加下面两行:
export ANT_HOME=/usr/ant
export PATH=/usr/ant/bin:$PATH
 
保存对profile的修改,然后reboot或者source一下
[root@localhost ~]# source /etc/profile

 
4、测试
 
[[root@localhost ~]# ant
Buildfile: build.xml does not exist!
Build failed
 
ok,安装成功,可以正常工作了
 
阅读(524) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~