install amqp && pecl info amqp returned 1 instead of one of [0]
<p>I'm trying to install php 5.6 and RabbitMQ using PuPHPet. During vagrant up or provision get this message: "install amqp &amp;&amp; pecl info amqp returned 1 instead of one of [0]". It tells me about failed installation of dependecy for php library for working with RabbitMQ.</p>

<pre><code>==&gt; local: Running provisioner: shell...
    local: Running: inline script
==&gt; local: Running provisioner: shell...
    local: Running: C:/Users/stani/AppData/Local/Temp/vagrant-shell20160116-7940-w3o755.sh
==&gt; local: 
==&gt; local:  ____        ____  _   _ ____      _      generated using
==&gt; local: |  _ \ _   _|  _ \| | | |  _ \ ___| |_   ___ ___  _ __ ___
==&gt; local: | |_) | | | | |_) | |_| | |_) / _ \ __| / __/ _ \| '_ ` _ \
==&gt; local: |  __/| |_| |  __/|  _  |  __/  __/ |_ | (_| (_) | | | | | |
==&gt; local: |_|    \__,_|_|   |_| |_|_|   \___|\__(_)___\___/|_| |_| |_|
==&gt; local: Running provisioner: shell...
    local: Running: C:/Users/stani/AppData/Local/Temp/vagrant-shell20160116-7940-o3z5lf.sh
==&gt; local: Pre-existing private key found at 'puphpet/files/dot/ssh/root_id_rsa'
==&gt; local: Pre-existing private key found at 'puphpet/files/dot/ssh/id_rsa'
==&gt; local: Adding generated root key to /root/.ssh/id_rsa
==&gt; local: Adding generated root key to /root/.ssh/id_rsa.pub
==&gt; local: Adding generated root key to /root/.ssh/authorized_keys
==&gt; local: Adding generated key to /home/vagrant/.ssh/id_rsa
==&gt; local: Adding generated key to /home/vagrant/.ssh/id_rsa.pub
==&gt; local: Adding generated key to /home/vagrant/.ssh/authorized_keys
==&gt; local: Running provisioner: shell...
    local: Running: C:/Users/stani/AppData/Local/Temp/vagrant-shell20160116-7940-1l93v6w.sh
==&gt; local: Running provisioner: shell...
    local: Running: C:/Users/stani/AppData/Local/Temp/vagrant-shell20160116-7940-124sxxr.sh
==&gt; local: Successfully installed deep_merge-1.0.1
==&gt; local: Successfully installed i18n-0.7.0
==&gt; local: Successfully installed minitest-5.8.3
==&gt; local: Successfully installed thread_safe-0.3.5
==&gt; local: Successfully installed tzinfo-1.2.2
==&gt; local: Successfully installed activesupport-4.2.5
==&gt; local: Successfully installed vine-0.2
==&gt; local: 7 gems installed
==&gt; local: Running provisioner: shell...
    local: Running: C:/Users/stani/AppData/Local/Temp/vagrant-shell20160116-7940-1e03li9.sh
==&gt; local: Running files in files/exec-preprovision
==&gt; local: Finished running files in files/exec-preprovision
==&gt; local: To run again, delete hashes you want rerun in /.puphpet-stuff/exec-preprovision-ran or the whole file to rerun all
==&gt; local: Running files in files/
==&gt; local: Finished running files in files/
==&gt; local: Running provisioner: puppet...
==&gt; local: Running Puppet with ...
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Info: Loading facts
==&gt; local: Warning: Scope(Apt::Source[nginx]): $key_source is deprecated and will be removed in the next major release, please use $key =&gt; { 'source' =&gt; http://nginx.org/keys/nginx_signing.key } instead.
==&gt; local: Warning: Scope(Apt::Source[rabbitmq]): $include_src is deprecated and will be removed in the next major release, please use $include =&gt; { 'src' =&gt; false } instead
==&gt; local: Warning: Scope(Apt::Source[rabbitmq]): $key_source is deprecated and will be removed in the next major release, please use $key =&gt; { 'source' =&gt; http://www.rabbitmq.com/rabbitmq-signing-key-public.asc } instead.
==&gt; local: Warning: Scope(Apt::Key[Add key: 7BD9BF62 from Apt::Source nginx]): $key_source is deprecated and will be removed in the next major release. Please use $source instead.
==&gt; local: Warning: Scope(Apt::Key[Add key: F78372A06FF50C80464FC1B4F7B8CEA6056E8E56 from Apt::Source rabbitmq]): $key_source is deprecated and will be removed in the next major release. Please use $source instead.
==&gt; local: Notice: Compiled catalog for rabbitmq in environment production in 6.21 seconds
==&gt; local: Warning: Found multiple default providers for vcsrepo: bzr, cvs, dummy, git, hg, svn; using bzr
==&gt; local: Warning: /Apt_key[Add key: 7BD9BF62 from Apt::Source nginx]: The id should be a full fingerprint (40 characters), see README.
==&gt; local: Info: Applying configuration version '1452966264'
==&gt; local: Notice: /Stage[main]/Puphpet_php/Exec[mkdir -p /var/lib/php/session]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Exec[mkdir -p /var/lib/php/session]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_nginx/File[/var/www]/owner: owner changed 'www-data' to 'root'
==&gt; local: Notice: /Stage[main]/Puphpet_php/File[/var/lib/php/session]/owner: owner changed 'root' to 'www-data'
==&gt; local: Notice: /Stage[main]/Puphpet_php/File[/var/lib/php/session]/group: group changed 'root' to 'www-data'
==&gt; local: Notice: /Stage[main]/Puphpet_server/Exec[dotfiles]/returns: executed successfully
==&gt; local: Notice: /Stage[main]/Puphpet::Php::Repos/Apt::Ppa[ppa:ondrej/php5-5.6]/Exec[add-apt-repository-ppa:ondrej/php5-5.6]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet::Php::Repos/Apt::Ppa[ppa:ondrej/php5-5.6]/Exec[add-apt-repository-ppa:ondrej/php5-5.6]: Scheduling refresh of Class[Apt::Update]
==&gt; local: Info: Class[Apt::Update]: Scheduling refresh of Exec[apt_update]
==&gt; local: Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 events
==&gt; local: Notice: /Stage[main]/Php/Package[php5-fpm]/ensure: created
==&gt; local: Notice: /Stage[main]/Php/File[php.conf]/ensure: created
==&gt; local: Notice: /Stage[main]/Php::Devel/Package[php5-dev]/ensure: created
==&gt; local: Notice: /Stage[main]/Puphpet_php/Exec[set php session path owner/group]/returns: executed successfully
==&gt; local: Notice: /Stage[main]/Composer/Exec[download_composer]/returns: executed successfully
==&gt; local: Notice: /Stage[main]/Composer/File[/usr/local/bin/composer]/ensure: defined content as '{md5}26090dfc90836ff664a091c371895f5b'
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Ini[error_log: /var/log/php-fpm.log]/Augeas[global/error_log: /var/log/php-fpm.log]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Ini[error_log: /var/log/php-fpm.log]/Augeas[global/error_log: /var/log/php-fpm.log]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Ini[pid: /run/php-fpm.pid]/Augeas[global/pid: /run/php-fpm.pid]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Ini[pid: /run/php-fpm.pid]/Augeas[global/pid: /run/php-fpm.pid]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Pool_ini[www/listen: 127.0.0.1:9000]/Augeas[www/listen: 127.0.0.1:9000]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Pool_ini[www/listen: 127.0.0.1:9000]/Augeas[www/listen: 127.0.0.1:9000]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Pool_ini[www/security.limit_extensions: .php]/Augeas[www/security.limit_extensions: .php]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Pool_ini[www/security.limit_extensions: .php]/Augeas[www/security.limit_extensions: .php]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Pool_ini[www/user: www-user]/Augeas[www/user: www-user]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Fpm::Pool_ini[www/user: www-user]/Augeas[www/user: www-user]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[cgi.fix_pathinfo]/File[/etc/php5/mods-available/zzzz_custom.ini]/ensure: created
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[cgi.fix_pathinfo]/File[/etc/php5/conf.d]/ensure: created
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[cgi.fix_pathinfo]/File[/etc/php5/fpm/conf.d/zzzz_custom.ini]/ensure: created
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[cgi.fix_pathinfo]/File[/etc/php5/cli/conf.d/zzzz_custom.ini]/ensure: created
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[cgi.fix_pathinfo]/Augeas[CUSTOM/cgi.fix_pathinfo: 1]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[cgi.fix_pathinfo]/Augeas[CUSTOM/cgi.fix_pathinfo: 1]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[display_errors]/Augeas[CUSTOM/display_errors: On]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[display_errors]/Augeas[CUSTOM/display_errors: On]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[error_reporting]/Augeas[CUSTOM/error_reporting: -1]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[error_reporting]/Augeas[CUSTOM/error_reporting: -1]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[session.save_path]/Augeas[CUSTOM/session.save_path: /var/lib/php/session]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[session.save_path]/Augeas[CUSTOM/session.save_path: /var/lib/php/session]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[date.timezone]/Augeas[CUSTOM/date.timezone: UTC]/returns: executed successfully
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Ini[date.timezone]/Augeas[CUSTOM/date.timezone: UTC]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Pyenv/Vcsrepo[/usr/local/pyenv]/revision: revision changed '3cde540ca00208fbfd0a5e7708c3053bc8cca9f5' to 'v0.4.0-20140404'
==&gt; local: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Module[intl]/Php::Module[intl]/Package[PhpModule_intl]/ensure: created
==&gt; local: Info: /Stage[main]/Puphpet_php/Puphpet::Php::Module[intl]/Php::Module[intl]/Package[PhpModule_intl]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Info: Puphpet::Php::Module[intl]: Scheduling refresh of Service[php5-fpm]
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: downloading amqp-1.6.1.tgz ...
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: Starting to download amqp-1.6.1.tgz (61,998 bytes)
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: ................done: 61,998 bytes
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: 18 source files, building
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: running: phpize
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: Configuring for:
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: PHP Api Version:         20131106
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: Zend Module Api No:      20131226
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: Zend Extension Api No:   220131226
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: building in /tmp/pear/temp/pear-build-defaultuserMJPDGs/amqp-1.6.1
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: running: /tmp/pear/temp/amqp/configure
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for grep that handles long lines and -e... /bin/grep
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for egrep... /bin/grep -E
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for a sed that does not truncate output... /bin/sed
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for cc... cc
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking whether the C compiler works... yes
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for C compiler default output file name... a.out
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for suffix of executables...
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking whether we are cross compiling... no
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for suffix of object files... o
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking whether we are using the GNU C compiler... yes
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking whether cc accepts -g... yes
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for cc option to accept ISO C89... none needed
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking how to run the C preprocessor... cc -E
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for icc... no
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for suncc... no
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking whether cc understands -c and -o together... yes
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for system library directory... lib
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking if compiler supports -R... no
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking if compiler supports -Wl,-rpath,... yes
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking build system type... x86_64-unknown-linux-gnu
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking host system type... x86_64-unknown-linux-gnu
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking target system type... x86_64-unknown-linux-gnu
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for PHP prefix... /usr
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for PHP extension directory... /usr/lib/php5/20131226
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for PHP installed headers prefix... /usr/include/php5
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking if debug is enabled... no
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking if zts is enabled... no
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for re2c... no
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for gawk... gawk
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for amqp support... yes, shared
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for amqp... yes, shared
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: yes
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: checking for amqp files in default path... not found
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: configure: error: Please reinstall the librabbitmq distribution itself or (re)install librabbitmq development package if it available in your system
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: ERROR: `/tmp/pear/temp/amqp/configure' failed
==&gt; local: Notice: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: No information found for `amqp'
==&gt; local: Error: printf "\n" | pecl -d preferred_state=stable install amqp &amp;&amp; pecl info amqp returned 1 instead of one of [0]
==&gt; local: Error: /Stage[main]/Puphpet_rabbitmq/Puphpet::Php::Pecl[amqp]/Php::Pecl::Module[amqp]/Exec[pecl-amqp]/returns: change from notrun to 0 failed: printf "\n" | pecl -d preferred_state=stable install amqp &amp;&amp; pecl info amqp returned 1 instead of one of [0]
==&gt; local: Notice: /Stage[main]/Puphpet_php/Service[php5-fpm]: Dependency Exec[pecl-amqp] has failures: true
==&gt; local: Warning: /Stage[main]/Puphpet_php/Service[php5-fpm]: Skipping because of failed dependencies
==&gt; local: Info: /Stage[main]/Puphpet_php/Service[php5-fpm]: Unscheduling all events on Service[php5-fpm]
==&gt; local: Info: Class[Puphpet_php]: Unscheduling all events on Class[Puphpet_php]
==&gt; local: Info: Stage[main]: Unscheduling all events on Stage[main]
==&gt; local: Notice: Applied catalog in 84.30 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
</code></pre>

<p>If I login to server via ssh and try to reinstall amqp throught pecl get this sudo pecl install amqp:</p>

<pre><code>Starting to download amqp-1.6.1.tgz (61,998 bytes)
................done: 61,998 bytes
18 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
building in /tmp/pear/temp/pear-build-rootAvukIj/amqp-1.6.1
running: /tmp/pear/temp/amqp/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20131226
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for amqp support... yes, shared
checking for amqp... yes, shared
yes
checking for amqp files in default path... not found
configure: error: Please reinstall the librabbitmq distribution itself or (re)install librabbitmq development package if it available in your system
ERROR: `/tmp/pear/temp/amqp/configure' failed
</code></pre>

<p>Ok... Then I am trying to install librabbitmq development package: <code>sudo apt-get install librabbitmq-dev</code></p>

<pre><code>Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  librabbitmq1
The following NEW packages will be installed:
  librabbitmq-dev librabbitmq1
0 upgraded, 2 newly installed, 0 to remove and 43 not upgraded.
Need to get 62.0 kB of archives.
After this operation, 280 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main librabbitmq1 amd64 0.4.1-1 [35.2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main librabbitmq-dev amd64 0.4.1-1 [26.9 kB]
Fetched 62.0 kB in 0s (66.6 kB/s)
Selecting previously unselected package librabbitmq1.
(Reading database ... 73073 files and directories currently installed.)
Preparing to unpack .../librabbitmq1_0.4.1-1_amd64.deb ...
Unpacking librabbitmq1 (0.4.1-1) ...
Selecting previously unselected package librabbitmq-dev.
Preparing to unpack .../librabbitmq-dev_0.4.1-1_amd64.deb ...
Unpacking librabbitmq-dev (0.4.1-1) ...
Setting up librabbitmq1 (0.4.1-1) ...
Setting up librabbitmq-dev (0.4.1-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
</code></pre>

<p>Ok, trying to install pecl amqp once again: <code>sudo pecl install amqp</code></p>

<pre><code>downloading amqp-1.6.1.tgz ...
Starting to download amqp-1.6.1.tgz (61,998 bytes)
................done: 61,998 bytes
18 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
building in /tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1
..............
libtool: compile:  cc -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/include -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/main -I/tmp/pear/temp/
amqp -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/
temp/amqp/amqp.c  -fPIC -DPIC -o .libs/amqp.o
/bin/bash /tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/libtool --mode=compile cc  -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/include -I/tmp/pe
ar/temp/pear-build-rooteCZHWZ/amqp-1.6.1/main -I/tmp/pear/temp/amqp -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr
/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/amqp/amqp_exchange.c -o amqp_exchange.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/include -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/main -I/tmp/pear/temp/
amqp -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/
temp/amqp/amqp_exchange.c  -fPIC -DPIC -o .libs/amqp_exchange.o
/bin/bash /tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/libtool --mode=compile cc  -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/include -I/tmp/pe
ar/temp/pear-build-rooteCZHWZ/amqp-1.6.1/main -I/tmp/pear/temp/amqp -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr
/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/amqp/amqp_queue.c -o amqp_queue.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/include -I/tmp/pear/temp/pear-build-rooteCZHWZ/amqp-1.6.1/main -I/tmp/pear/temp/
amqp -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/
temp/amqp/amqp_queue.c  -fPIC -DPIC -o .libs/amqp_queue.o
In file included from /tmp/pear/temp/amqp/amqp_queue.c:51:0:
/tmp/pear/temp/amqp/amqp_queue.c: In function 'convert_amqp_envelope_to_zval':
/tmp/pear/temp/amqp/amqp_queue.c:299:51: error: 'AMQP_DELIVERY_NONPERSISTENT' undeclared (first use in this function)
   AMQP_SET_LONG_PROPERTY(envelope-&gt;delivery_mode, AMQP_DELIVERY_NONPERSISTENT);
                                                   ^
/tmp/pear/temp/amqp/php_amqp.h:253:14: note: in definition of macro 'AMQP_SET_LONG_PROPERTY'
  (object) = (value);
              ^
/tmp/pear/temp/amqp/amqp_queue.c:299:51: note: each undeclared identifier is reported only once for each function it appears in
   AMQP_SET_LONG_PROPERTY(envelope-&gt;delivery_mode, AMQP_DELIVERY_NONPERSISTENT);
                                                   ^
/tmp/pear/temp/amqp/php_amqp.h:253:14: note: in definition of macro 'AMQP_SET_LONG_PROPERTY'
  (object) = (value);
              ^
make: *** [amqp_queue.lo] Error 1
ERROR: `make' failed
</code></pre>

<p>So?... Please help me to resolve this issue and install pecl package for amqp.</p>