Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting this error when complinng Apache with mod-mime-magic:

--enable-mime-magic ../ line 22:

--enable-mime-magic: command not found

When I look at the output on screen, I see the following:

checking whether to enable mod_mime_magic... no

despite the fact that --enable-mime-magic is passed in the build script. Also, a little later, I see this:

checking whether to enable mod_mime... yes (default)

I googled this error, but not much comes up. Any ideas on what might be causing this?

Here is the build script:


export PATH

set -e
set -x

make distclean || true

./configure --prefix=/app/apache \
        --enable-so \
        --enable-cgi \
        --enable-info \
        --enable-rewrite \
        --enable-speling \
        --enable-usertrack \
        --enable-deflate \
#       --enable-ssl \
#       --with-ssl=/usr/bin \
#make install
#/app/apache/bin/apachectl restart

This is on Apache 2.2.17 and Redhat (RHEL) 5.5.



share|improve this question
up vote 4 down vote accepted

Remove the commented lines from your ./configure list. They are causing --enable-mime-magic to be processed as a separate command.

share|improve this answer
DOUH! Thanks @slillibri! – KM. Mar 23 '11 at 23:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.