• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1223
  • Last Modified:

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-mods-shared=all\
            --enable-proxy=shared\
            --enable-proxy_http=shared\
            --enable-ssl=shared\
            --enable-module=most \
            --enable-shared=max\
                    --with-layout=Apache
...
make
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_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/apache2"
 -D SUEXEC_BIN="/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -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.
Vkimura

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/libpcre.la /usr/local/apache2/lib/libaprutil-1.la -lexpat -liconv /usr/local/apache2/lib/libapr-1.la -lpthread
libtool: link: warning: library `/usr/local/apache2/lib/libaprutil-1.la' was moved.
libtool: link: warning: library `/usr/local/apache2/lib/libapr-1.la' was moved.
libtool: link: warning: library `/usr/local/apache2/lib/libaprutil-1.la' was moved.
libtool: link: cannot find the library `/apache2/lib/libexpat.la' or unhandled argument `/apache2/lib/libexpat.la'
make[2]: *** [htpasswd] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Open in new window

0
Victor Kimura
Asked:
Victor Kimura
  • 2
1 Solution
 
davidsperlingCommented:
Well if you're setting up a development box, I'd suggest the easy path and surf to:

http://www.apachefriends.org

and install XAMPP for Mac.
http://www.apachefriends.org/en/xampp-macosx.html

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




0
 
Victor KimuraAuthor 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.

Cordially,
vkimura
0
 
davidsperlingCommented:
You have to edir httpd.conf !

(the apache conf file)

Google for more advanced topics like setting up multiple virtual hosts.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now