rflynn/imgmin — Issue #12: Can't install on Mac OS X
Author: callum85
Created: 2012-01-19 10:27:16+00:00
State: open

Hi. This looks like an amazing tool. And thanks for the very informative readme.

But I'm having trouble building on Mac OS X Lion...

```
MBP:imgmin callum$ make
make -C src
make -C apache2
apxs2 -I `pwd`/.. `MagickWand-config --cppflags` `MagickWand-config --ldflags --libs|xargs` -Wc,-DIMGMIN_LIB -Wc,-W -Wc,-Wall -Wc,-Wno-unused-parameter -c mod_imgmin.c -c ../imgmin.c
/bin/sh: apxs2: command not found
make[2]: *** [mod_imgmin.la] Error 127
make[1]: *** [mod_imgmin] Error 2
make: *** [all] Error 2
```

OS X does seem to have apxs already:

```
MBP:imgmin callum$ apxs
Usage: apxs -g [-S =] -n
apxs -q [-S =] ...
apxs -c [-S =] [-o ] [-D [=]]
[-I ] [-L ] [-l ] [-Wc,]
[-Wl,] [-p] ...
apxs -i [-S =] [-a] [-A] [-n ] ...
apxs -e [-S =] [-a] [-A] [-n ] ...
```

...but not apxs2.

Googling "mac apxs2" etc. hasn't been very helpful. Any ideas?

Thanks
Callum