I am using the newest openSUSE distro
that would be 12.1 ?
or do you have 11.4
suse uses "sudo " , though i do NOT
use "su -" without the ""
--- type in THE root password when asked ---
then ADD /usr/local to the /etc/bash_local file and to /etc/profile_local ( or just to the profile)
that is to add the non standard system $PATH
usr/local is a somewhat non standard "standard" directory
using "zypper " is the BEST way to install a prebuilt binary program
use the rpm in the repos !
zypper se ant
--- then from that list ....
zypper in ant
--- or ---
the yast2 gui