Link to home
Start Free TrialLog in
Avatar of tinoza2004
tinoza2004

asked on

Permission Denide in usr/local

Hi Expert,

I am new to linux. I install some  programs from website just to test out.
I do the following according to instruction:

./configure --prefix=/usr/local
make
make check
and last one "make install"

After doing "make install " in command line, I obtain the following errors:

cannot create regular file `/usr/local/........etc': Permission denied.

I was wondering how could i fix that. I also try to copy the source code and put in /usr/local/ , and it 's not allowed me to do so, Permission Denied again.

Normally it might cause of securiy reason or something?





Avatar of gripe
gripe

You need to install as root or install to a directory that you have permissions to install to. (Such as your home directory) The installer is trying to create directories (and subsequently install to directories) in /usr/local and failing because the user you're logged in as does not have write permissions to the directory.

The root (administrative) user has permissions to write/remove/overwrite/create/change ownership/change permissions on every file and hence will be able to install to /usr/local.

Here's a good tutorial on permissions in Linux & UNIX in general:

http://www.perlfect.com/articles/chmod.shtml
ASKER CERTIFIED SOLUTION
Avatar of nedvis
nedvis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tinoza2004

ASKER

Thank you for reply.