Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 904107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:59:45+00:00 2026-05-15T15:59:45+00:00

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

  • 0

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.
  2. I moved the file to /usr/local/ using this commands : sudo sh and mv apache-ant-1.8.1-bin.tar.gz /usr/local/

Now I want to use cd /usr/local/ but it’s not working, I get back “No such file or directory”.

Then I used cd /usr/ and ls commands and it seems that the local folder is there. If I try to access it I get the same error.

Since I already used sudo su why I can’t access it? Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:59:46+00:00Added an answer on May 15, 2026 at 3:59 pm

    Ant is already installed on some older versions of Mac OS X, so you should run ant -version to test if it is installed before attempting to install it.

    If it is not already installed, then your best bet is to install Homebrew (brew install ant) or MacPorts (sudo port install apache-ant), and use those tools to install Apache Ant.

    Alternatively, though I would highly advise using Homebrew or MacPorts instead, you can install Apache Ant manually. To do so, you would need to:

    1. Decompress the .tar.gz file.
    2. Optionally put it somewhere.
    3. Put the "bin" subdirectory in your path.

    The commands that you would need, assuming apache-ant-1.8.1-bin.tar.gz (replace 1.8.1 with the actual version) were still in your Downloads directory, would be the following (explanatory comments included):

    cd ~/Downloads # Let's get into your downloads folder.
    tar -xvzf apache-ant-1.8.1-bin.tar.gz # Extract the folder
    sudo mkdir -p /usr/local # Ensure that /usr/local exists
    sudo 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 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
    # Verify new version of ant
    ant -version
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to install pygtk on mac. I downloaded the pygtk file, opened up
Today i tried to install Apache CXF in JBOSS-WS. I followed the instructions from
I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get
I've tried install Apache, PHP, MySQL, and PHPMyAdmin manually and got the error. Then
I have installed PHP and its not working in the Apache Webserver. Steps followed
Has anyone tried to install HUE on Apache Hadoop? We are using hadoop 0.20.2
I am trying to install Apache on my Mac (OSX 10.8.2). I am using
I need to install this library: org.apache.commons.httpclient. I we tried unsing Help -> Install
Machine: Mac OSX 10.5.8 32-bit. Goal: To install apache maven per its websites instructions
Tried to install some program, it gives above message requiring 1.1.4322. BUT as the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.