Permission denied during make install

Joined
Jul 16, 2009
Messages
31
Reaction score
0
Points
6
Hi guys,

I always have problem when installing from scratch.

I am trying to install Apache 2.2 on my Macbook (which I bought start of 2008).

I am just following the regular instructions provided on the website...

When it comes to the $make install, I get a lot of errors.

Code:
Making install in srclib
Making install in apr
make[3]: Nothing to be done for `local-all'.
/Users/yannickli/Downloads/httpd-2.2.14/srclib/apr/build/mkdir.sh /usr/local/apache2/lib /usr/local/apache2/bin /usr/local/apache2/build \
		     /usr/local/apache2/lib/pkgconfig /usr/local/apache2/include
mkdir /usr/local/apache2/lib
mkdir: /usr/local/apache2/lib: Permission denied
mkdir /usr/local/apache2/bin
mkdir: /usr/local/apache2/bin: Permission denied
mkdir /usr/local/apache2/build
mkdir: /usr/local/apache2/build: Permission denied
mkdir /usr/local/apache2/lib
mkdir: /usr/local/apache2/lib: Permission denied
mkdir /usr/local/apache2/lib/pkgconfig
mkdir: /usr/local/apache2/lib: No such file or directory
mkdir /usr/local/apache2/include
mkdir: /usr/local/apache2/include: Permission denied
make[2]: *** [install] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

I am, of course, logged in as admin. I tried "sudo chmod 775" on the "/usr/local/" directory. That was not really helpful.

Same problem when I tried to install Mplayer.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Are you doing a 'sudo make install' ?
You need to do install as root, not change dir ownership.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top