mac 安装 apache ant

来源:互联网 发布:人工智能产业链分层图 编辑:程序博客网 时间:2024/06/01 15:55
cd ~/Downloads # Let's get into your downloads folder.tar -xvzf apache-ant-1.8.1-bin.tar.gz # Extract the foldersudo mkdir -p /usr/local # Ensure that /usr/local existssudo cp -rf apache-ant-1.8.1-bin /usr/local/apache-ant # Copy it into /usr/local# Add the new version of Ant to current terminal sessionexport PATH=/usr/local/apache-ant/bin:"$PATH"# Add the new version of Ant to future terminal sessionsecho 'export PATH=/usr/local/apache-ant/bin:"$PATH"' >> ~/.profile# Verify new version of antant -version
0 0