International PHP Conference 2015

Installation

To install the AMQP PHP extension, you must first install the » librabbitmq library. Use the following steps to download and install the library:

# Download the rabbitmq-c library
  hg clone http://hg.rabbitmq.com/rabbitmq-c/rev/3c549bb09c16
  cd rabbitmq-c
  # Add the codegen requirement
  hg clone http://hg.rabbitmq.com/rabbitmq-codegen/rev/f8b34141e6cb codegen
  # Configure, compile and install
  autoreconf -i && ./configure && make && sudo make install

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here:

Note to Windows users: This extension does not currently support Windows since the librabbitmq library does not yet support Windows.

add a note add a note

User Contributed Notes 13 notes

up
1
zhenyi2697 at gmail.com
2 years ago
@ pomaxa at gmail dot com

Totally agree. I've followed the instruction and I've successfully intalled this extension.
up
1
pomaxa at gmail dot com
3 years ago
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
up
1
alejandronat at gmail dot com
7 months ago
As for 2015y, previous install FAQ fails, current installation process is next:

apt-get install aptitude
aptitude install libtool
aptitude install pkg-config
cd /tmp
rm -rf rabbitmq-c
git clone -b v0.5.2 git://github.com/alanxz/rabbitmq-c.git
cd rabbitmq-c
autoreconf -i && ./configure && make && make install
pecl install amqp-1.4.0
up
1
Anonymous
1 year ago
simply installing via pecl does the trick:

sudo pecl install amqp
up
0
lorenzosjb at gmail dot com
4 months ago
They changed the repositories, please change the installation procedure to this:

git clone https://github.com/alanxz/rabbitmq-c
cd rabbitmq-c/
git clone http://hg.rabbitmq.com/rabbitmq-codegen/
autoreconf -i && ./configure && make && sudo make install
up
0
Anonymous
1 year ago
For ubuntu ,install AMQP need use the cmake way to do that.
up
0
nathan at nathanjohnson dot info
2 years ago
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.
up
0
maik penz
2 years ago
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
up
0
rgagnon
3 years ago
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
up
0
soham
4 years ago
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 ..'
up
0
brian dot ngure at gmail dot com
4 years ago
Have a look at the installation instructions on the Google Code site, found here: http://code.google.com/p/php-amqp/

Brian
up
-1
sheershoff
2 years ago
As for windows: i just googled 'php_amqp windows php 5.4' and found a link to http://windows.php.net/downloads/pecl/releases/amqp/1.0.9/

As Nathan notes in his post - the rabbitmq library should reside in windows folder for the libraries.
up
-1
LilaeaMedia
3 years ago
Make sure you are using http://pecl.php.net/get/amqp
To Top