Windows is supported by the underlying lib, and has been for some time. It's also supported by extension author at their github page.
https://github.com/pdezwart/php-amqp
go there.
I have some precompiled 32 bit windows php 5.3 binaries on my site:
http://www.nathanjohnson.info/?p=77
I've also documented how I went about building the binaries, so 64 bit builds or 5.4 builds should be fairly easy to do following the same recipe.
Installation
Pour installer l'extension AMQP PHP, vous devez tout d'abord installer la bibliothèque » librabbitmq. Vous avez besoin de la bibliothèque cliente rabbitmq-c en version 0-9-1 liée à la version rabbitmq-codegen qui correspond au broker que vous utilisez. Utilisez les étapes suivantes pour télécharger et installer la bibliothèque :
# Télécharge la bibliothèque rabbitmq-c @ version 0-9-1 git clone git://github.com/alanxz/rabbitmq-c.git cd rabbitmq-c # Active et met à jour le sous-module codegen de git git submodule init git submodule update # Configuration, compilation et installation autoreconf -i && ./configure && make && sudo make install
Des informations sur l'installation de ces extensions PECL peuvent être trouvées dans le chapitre du manuel intitulé Installation des extensions PECL. D'autres informations comme les notes sur les nouvelles versions, les téléchargements, les sources des fichiers, les informations concernant les mainteneurs ainsi qu'un CHANGELOG, peuvent être trouvées ici : » http://pecl.php.net/package/amqp.
Note aux utilisateurs de Windows : Cette extension ne supporte pas pour le moment Windows sachant que la bibliothèque librabbitmq ne supporte pas, elle même, Windows.
On a mac os (10.5+) it was necessary to run aclocal prior to autoreconf.
./configure --enable-64-bit was useful too, since it would compile as 32bit by default.
The last line now looks like
aclocal && autoreconf -i && ./configure --enable-64-bit && make && sudo make install
For ubuntu 12.04, the only way to install this extension is to install rabbitmq-c lib prior, and the only working way is to follow instruction on : https://github.com/alanxz/rabbitmq-c
PECL now has stable version 1.0.0 of this code that does compile cleanly with PHP >= 5.0 (as of 15-Feb-2012). I personally had a clean build with no warnings under 5.2.17
Previously the code was not stable, and only compiled nicely under 5.3
I don't know what's up with the extension posted on code.google.com, but the PECL one is the supported extension.
http://pecl.php.net/amqp
If you get these errors:
"error: possibly undefined macro: AM_PROG_LIBTOOL" ===> you need to install 'libtool'.
"Can't exec "aclocal" ===> You need to install 'automake'
Use your linux distro's default providers to install them e.g. on opensuse, I'd use 'zypper install ..'
Have a look at the installation instructions on the Google Code site, found here: http://code.google.com/p/php-amqp/
Brian
