How can I install Apache Ant on Mac OS X?

后端 未结 8 1280
难免孤独
难免孤独 2020-12-22 15:22

I tried to install Apache Ant on my Mac and I followed the next steps :

  1. I downloaded apache-ant-1.8.1-bin.tar.gz into my Downloads folder.
8条回答
  •  醉话见心
    2020-12-22 15:31

    To get Ant running on your Mac in 5 minutes, follow these steps.

    Open up your terminal.

    Perform these commands in order:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    brew install ant

    If you don't have Java installed yet, you will get the following error: "Error: An unsatisfied requirement failed this build." Run this command next: brew cask install java to fix this.

    The installation will resume.

    Check your version of by running this command:

    ant -version

    And you're ready to go!

提交回复
热议问题