last day (14 days later) » 

3:58 PM
0
Q: -bash: ant: command not found on mac os x El Capitan

AdelaI try to integrate zxing on my android studio project and I need Apache Ant for it. I followed this steps for Apache Ant install: http://www.mkyong.com/ant/how-to-apache-ant-on-mac-os-x/ but when I finish to follow all those steps from link, I receive this message: -bash: ant: command not fou...

 
it doesn't work for me come on! I know you can explain better. Even if this question is a perfect fit for Ask Different
 
I edited my question.:)
 
Thanks! What's the output of echo $PATH?
 
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/mkyong/gradle/bin:/Users/mky‌​‌​ong/apache-maven-3.1.1/bin:/Users/mkyong/apache-ant-1.9.6/bin
 
it's better if you edit the question :) What's the output of ls /Users/ ?
 
3:58 PM
Here you have details about ls command: linuxcommand.org/man_pages/ls1.html . I know what ls /../../ is doing
 
In fact, I need to get your username to help you fix this issue, I'm not testing your knowledge ;)
So if you could give me the output of ls /Users/ or running "whoami" it could help a lot
 
you refer to username of my mac?
 
Yes
 
no, I will not give it to you. Thanks
 
You're a bit too suspicious... Anyway, see my answer and good luck :)
 
4:11 PM
I considered you too suspicious, but thanks, hope it works :)
 
Don't forget to re-source your path
Check it with running again echo $PATH
 
aha, I will
now I'm working on it
 
4:36 PM
Did it worked?
 
I have another problem:
Adelas-MBP:~ adela$ sudo ~/.bash_profile
sudo: /Users/adela/.bash_profile: command not found
 
It's a file, not a command :)
 
I have to create my bash profile. Now you have my username of mac
I'm not suspicious anymore :))
I know what you say
that text is copy paste from mac terminal
 
5:20 PM
What did you try to acheive?
 

last day (14 days later) »