如何删除蚂蚁?

时间:2014-07-14 14:35:41

标签: java macos apache ant

首先我在终端上运行这些命令来手动安装ant。

# Let's get into your downloads folder.
tar -xvzf apache-ant-1.9.4-bin.tar.gz # Extract the folder
sudo mkdir -p /usr/local # Ensure that /usr/local exists
sudo cp -rf apache-ant-1.9.4-bin /usr/local/apache-ant # Copy it into /usr/local

# Add the new version of Ant to current terminal session
export PATH=/usr/local/apache-ant/bin:"$PATH"

# Add the new version of Ant to future terminal sessions
echo 'export PATH=/usr/local/apache-ant/bin:"$PATH"' >> ~/.profile

# Demonstrate new version of ant
ant --version

当我运行最后一个命令时,它显示错误。然后我用brew来安装有效的蚂蚁。我可以以某种方式删除第一组命令吗?如果是这样的话?或者没关系?

1 个答案:

答案 0 :(得分:0)

您需要重新加载正在使用的shell,因此.profile将被执行。

如果您真的想使用相同的shell,可以手动运行:

source ~/.profile