LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing apache ANT, can't create /usr/local/ant folder per ANT's manual (https://www.linuxquestions.org/questions/linux-newbie-8/installing-apache-ant-cant-create-usr-local-ant-folder-per-ants-manual-918087/)

jclark978 12-10-2011 05:11 PM

installing apache ANT, can't create /usr/local/ant folder per ANT's manual
 
Hello all,

I am trying to install ant (from binary) per the directions in the user manual. It says to create a folder called ant at /usr/local/ant. However when I try to create the directory I am given an insufficient privileges error. I am the sole user and administrator of my system so I am somewhat surprised by this. But this is the newbie forum after all...

I am using the newest openSUSE distro on a MacBook. I just finished the install last night. I have been using openSUSE at my university computer lab for about a year, but I am new to actually administrating a system. I looked at previous threads regarding ant installs but could not find the answer.

Any help would be greatly appreciated!

Jon

John VV 12-11-2011 02:00 AM

Quote:

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 ""

Code:

su -
--- type in THE root password when asked ---
mkdir /usr/local/ant

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

HOWEVER
using "zypper " is the BEST way to install a prebuilt binary program
use the rpm in the repos !
Code:

su -
zypper se ant
--- then from that list ....
zypper in ant

--- or ---
the yast2 gui


All times are GMT -5. The time now is 11:08 AM.