No librabbitmq, while installing rabbitmq pecl brew php - php

After deprecating homebrew-php, there is no amqp extension in brew native taps. I can't install amqp extension now.
PECL shows me this kind of error
librabbitmq not found
Where it can be found?

This is rabbitmq-c also available in brew.
Thanks

Related

XAMPP intl problem on mac Catalina version10.15.1

I have tried installing using pecl command but still getting the same issue. Enabled the extension in the php.ini but again of new use
Unable to load dynamic library '/usr/local/Cellar/php70-intl/7.0.27_24/intl.so'
I am trying to install CakePHP. PHP version is 7.2 and intl present on mac /usr/local/Cellar/php70-intl . Please help me with the same. I have tried almost everything.
brew install icu4c
root$: sudo pecl update-channels
root$: sudo pecl install intl
tried everything mentioned above but still of no use

installing amqp on mac with brew

I wanted to install amqp with pecl for my mac sierra.
I installed php with brew, with pecl install amqp I receive an error: checking for amqp using pkg-config... configure: error: librabbitmq not found
I installed with brew the librabbitmq-c package but I still get this error. I think it's somehow not synced with the pkg-config.
Does someone have an idea what to do here?
First install rabbitmq-c with brew:
brew search librabbitmq
No formula or cask found for "librabbitmq".
Closed pull requests:
Add rabbitmq-c (aka librabbitmq) formula (https://github.com/Homebrew/legacy-homebrew/pull/13437)
brew install rabbitmq-c
Then install amqp with pecl:
pecl install amqp
Set the path to librabbitmq:
Set the path to librabbitmq install prefix [autodetect] : /usr/local/Cellar/rabbitmq-c/0.9.0
Verify that amqp is now installed:
php -i|grep amqp
Thanks for this walk through, it was super helpful. Just a quick note, in Mac OS 12.0.1 Monterey, the default install path for rabbitmq in homebrew is:
/opt/homebrew/Cellar/rabbitmq-c/0.11.0
I'm on MacOS High Sierra. I installed the Command_line_Tools_macOS_10.13_for_Xcode_10.1.dmg from developer.apple.com and brew installed php 8.
For the amqp extension, I used:
brew install rabbitmq-c
pecl install amqp-1.11.0beta
at the prompt
Set the path to librabbitmq install prefix [autodetect] :
I entered:
Set the path to librabbitmq install prefix [autodetect] : /usr/local/Cellar/rabbitmq-c/0.11.0
The issue lies with pkg-config not being able to generate libs/cflags for librabbitmq.
$ pkg-config librabbitmq --cflags
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'librabbitmq', not found
What I did was to add both rabbitmq-c and openssl to $PKG_CONFIG_PATH as below:
export PKG_CONFIG_PATH="/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl#1.1/lib/pkgconfig"
Then the build will succeed. (Note: I built mine with phpbrew rather than pecl, but should work).
Brew doesn't add the file to the pkg-config path, so it needed a command:
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/Cellar/rabbitmq-c/0.9.0/lib/pkgconfig"
Before installing make sure the taps are up-to-date:
brew update
Then, install RabbitMQ server with:
brew install rabbitmq
In case that directory is not in PATH it's recommended to append it:
export PATH=$PATH:/usr/local/sbin
It's a combination of question and both previous answers which worked for me.
First install RabbitMQ through brew as rabbitmq-c. Then with PECL but add the config path when asked: /usr/local/Cellar/rabbitmq-c/0.10.0
Needs to be adjusted with your installed brew version of RabbitMQ.
On my M1 Mac Pro, PHP 8.2.1 the PECL install amqp rabbbitmq path it wanted is /opt/homebrew/Cellar/rabbitmq-c/0.11.0/
Hope this helps someone.

How to install php-memcached extension on Mac OS High Sierra

I installed successfully memcached-server, but got an error in my php-script:
Class 'Memcached' not found
I should to install php-memcached extension to fix it, but i dont know how.
I searched howto's, but all what i found is about installing php5*-memcached with brew. But i need an extension for php7.1,
brew install php71-memcached doesnt work
This should help:
pecl install memcached
Memcached extension is available for PHP 7.0.0 or newer.

Can't upgrade SSH2 with pecl

My current version of pecl SSH2 is 0.12 and I am trying to upgrade it to 0.13.
I tried both:
pecl upgrade ssh2-0.13
and
pecl install ssh2-0.13
and got
ERROR: pecl.php.net/ssh2 not installed
Not much feedback, what else can I try?
using php 5.6 and PEAR 1.9.5
I am using CentOS and following helped me to upgrade, might help you too
yum install gcc php-devel php-pear libssh2 libssh2-devel
// or in ubuntu(deb) sudo apt-get install ...............
pecl install -f ssh2
Actually i removed my old version and did above. And i installed all the packages that require. Please make sure you have installed all the required packages (gcc, php-devel, php-pear, libssh2, libssh2-devel) and then try to install or upgrade again.

pecl install intl gives no releases available?

I'm using mac and xampp and trying to install php package intl for using phpdocumentor as required.
I follow this instruction to install:
Installing Intl package on your mac with xampp
But when I was trying to install intl with pecl, it gave me error:
No releases available for package "pecl.php.net/intl"
install failed
I have searched for solution and try to upgrade pear/pecl but it turned to "unsupported protocol". I also tried to changes /PEAR/REST.php as one solution but it also didn't work. Did anyone face the same problem and solved. Can you help me T_T
Probably some problem with old channels and/or old protocols.
First look at the log (as cweiske said).
pecl -vvv install intl
Then you can simply try to upgrade PEAR, PECL and update channels
pear upgrade
pecl upgrade
pecl channel-update
And install intl again
pecl install intl

Categories