Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm applying an API from maxmind. They require additional an module for Apache. Now they recommend the command:

apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
  • -I/usr/local/include specifies wherethe GeoIP.h header file is installed
  • -L/usr/local/lib specifies where the libGeoIP library is located

This doesn't look like Debian command, so I guess I will need to look for command that will include those files in the environment so I can run them on the localhost server.

An equivalent command on Debian would be appreciated.

share|improve this question
    
There is already libapache2-mod-geoip in Debian which is basically this module. If you don't need another version or want to change anything you should probably use the provided debian package instead of compiling it yourself. –  Ulrich Dangel Jul 6 '12 at 16:13
add comment

1 Answer

What this command does is compile the mod_geoip module and link it against the headers of the version of apache you're using.

If you're using the stock Debian package of Apache then you simply need to install the apache-dev package (you will of course also need build-essential if you don't have it already). You may need to adjust that command for paths that Debian uses (if they differ) but otherwise that command should work fine.

share|improve this answer
add comment

Your Answer

 
discard

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.