I was testing CloudFlare with a web site on my Ubuntu 10.04 server today and encountered the same problem carol reported.
I installed apxs2:
Quote:
$ sudo apt-get install apache2-prefork-dev
I then attempted to build the CloudFlare mod but received an error.
Quote:
$ sudo apxs2 -iac mod_cloudflare.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i686-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -c -o mod_cloudflare.lo mod_cloudflare.c && touch mod_cloudflare.slo
/usr/share/apr-1.0/build/libtool: line 978: i686-linux-gnu-gcc: command not found
apxs:Error: Command failed with rc=65536
.
I wrongly assumed libtool was installed and working correctly. It wasn't. So I did the following.
Install libtool (even though it's already on the server):
Quote:
$ sudo apt-get install libtool
Build and install extenstion module:
Quote:
$ apxs2 -iac mod_cloudflare.c
Restart apache2:
Quote:
$ sudo /etc/init.d/apache2 restart
Check the access log to confirm that the mod is working.
Hope this helps.
thx for the info.