httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dragon" <dra...@crimson-dragon.com>
Subject Re: [users@httpd] [module] how do I compile a module?
Date Wed, 19 Sep 2007 01:36:22 GMT

On Tue, September 18, 2007 18:27, Andrew WC Brown wrote:
> Hi, I'm new to this mailing list (waves).
>
> I'm running OS X.4.10 with Apache 2.2.6
>
> When I installed apache I was sure to --enable-module=shared so I could
> load
> DSOs.
>
> I let apache2 install to /usr/local/apache2. When I run apache it works.
>
> I didn't specify any additional modules on compilation so my modules
> directory is emptied.
>
> I'm going to be using virtual hosting so I want to compile
> mod_vhost_alias.c
>
> I've navigated to the directory in my source folder: httpd-2.2.6
> /modules/mappers/
>
> I've tired to compile using: sudo apxs -c mod_vhost_alias.c
>
> I get the following error:
>
> gcc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os -pipe
> -DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE -I/usr/include/httpd  -c
> mod_vhost_alias.c
> mod_vhost_alias.c:36:17: error: apr.h: No such file or directory
> mod_vhost_alias.c:37:25: error: apr_strings.h: No such file or directory
> mod_vhost_alias.c:38:23: error: apr_hooks.h: No such file or directory
> mod_vhost_alias.c:39:21: error: apr_lib.h: No such file or directory
> mod_vhost_alias.c:42:22: error: apr_want.h: No such file or directory
> In file included from /usr/include/httpd/ap_config.h:1129,
>                  from /usr/include/httpd/httpd.h:29,
>                  from mod_vhost_alias.c:44:


The section of the errors I have kept above tell you where the problem is.

The header files that apxs expects to find in the include directory
specified on the command line with the -I option do not exist where you
are telling apxs they should be.

You need to locate where those files are and change the -I option on the
command line to point to the right place. I don't know if there needs to
be a space between the option specifier and the include path, but if you
do have those files in the specified directory, I would put a space in
there and try again.

Hopefully, that is all you will need to do.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message