install apache 2.2.x on mac

Hi, I'm having some troulbe compiling apache on the mac 10.4.

This is what I tried:

make clean
./configure --prefix=/usr/local/apache2 \
                    --enable-module=so \
                    --enable-module=rewrite \
            --enable-module=most \
sudo make install

Upon sudo make install I receive this error:

I don't know why the lib was moved.

When I type in httpd -V I receive this (from an already installed apache). Just fyi I'm recompiling since I couldn't get the apache to work on my mac so this info is gleaned from a prior apache install:
Server version: Apache/2.2.11 (Unix)
Server built:   Feb  8 2009 09:09:57
Server's Module Magic Number: 20051115:21
Server loaded:  APR 1.3.3, APR-Util 1.3.4
Compiled using: APR 1.3.3, APR-Util 1.3.4
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D HTTPD_ROOT="/apache2"
 -D SUEXEC_BIN="/apache2/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

However, I noticed the HTTPD ROOT is pointing to "/apache" and not "/usr/local/apache2".
How do I fix this?

Much thanks.

Making install in srclib
Making install in pcre
Making install in os
Making install in unix
Making install in server
Making install in mpm
Making install in prefork
Making install in modules
Making install in aaa
Making install in filters
Making install in loggers
Making install in metadata
Making install in http
Making install in generators
Making install in mappers
Making install in support
/usr/local/apache2/build/libtool --silent --mode=link gcc -g -O2        -o htpasswd  htpasswd.lo    /Users/victorkimura/documents/downloads/computing/development/apache/httpd-2.2.11/srclib/pcre/ /usr/local/apache2/lib/ -lexpat -liconv /usr/local/apache2/lib/ -lpthread
libtool: link: warning: library `/usr/local/apache2/lib/' was moved.
libtool: link: warning: library `/usr/local/apache2/lib/' was moved.
libtool: link: warning: library `/usr/local/apache2/lib/' was moved.
libtool: link: cannot find the library `/apache2/lib/' or unhandled argument `/apache2/lib/'
make[2]: *** [htpasswd] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Open in new window

Victor KimuraSEO, Web DeveloperAsked:
Who is Participating?
Well if you're setting up a development box, I'd suggest the easy path and surf to:

and install XAMPP for Mac.

"XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start."

Victor KimuraSEO, Web DeveloperAuthor Commented:
Hi davidsperling,

Thank you for the link. Didn't know this existed? I'd still like to know how to change the HTTPD ROOT though just for my info. I'll have to search online for it.

You have to edir httpd.conf !

(the apache conf file)

Google for more advanced topics like setting up multiple virtual hosts.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.