Homebrew-core: PHP 7.0 - Imap + Imagick libraries

Created on 4 Apr 2018  路  14Comments  路  Source: Homebrew/homebrew-core

**

When I did a brew upgrade this morning it broke my installed PHP configuration.
I need to install php 7.0 with Imap and Imagick support.
How can I install these additional libraries with the new Homebrew PHP formulas?

outdated

Most helpful comment

This php-core decision break so many development environments and was far away from any real life work... and you call others for watch your tone? Sorry, but this is currently time and cost intensiv to rebuild our environments. Are you paying the bills?

All 14 comments

same here. apparently all the extra extensions i need are gone. :(

imagick can/should be installed via pecl install imagick (/usr/local/opt/[email protected]/bin/pecl install imagick for 7.0). Make sure you have the imagemagick dependency installed first from homebrew.

imap has a stability problem and was removed from Homebrew/core at #25579. If you understand the and accept the risk, you can install it from my tap.

But what about the other? php-redis, php-ampq? Can be install via pecl?

Yes, but really these are questions to ask outside of the Homebrew/core issue tracker. Please also review and familiarize yourself with the pecl site.

You can't just deprecate homebrew-php and not migrate all or at least most php extensions. No one uses pecl or pear anymore these days. Most php extensions are installed via a package manager such as apt.

@sschueller most extensions were indeed migrated and are now included statically (see the output php -m). Some that weren't can be found in https://github.com/kabel/homebrew-php-ext

Also, please watch your tone.

@ilovezfs ok, thanks

For anyone who had problems.

  1. Remove all your old brew php packages.
  2. install php brew install [email protected]
  3. Relink with brew link --force [email protected]
  4. update your PECL pecl channel-update pecl.php.net
  5. Reinstall imagemagick and autoconf brew reinstall imagemagick brew reinstall autoconf.
  6. compile image magick pecl install imagick.
  7. Add it to your PHP php.ini (/usr/local/etc/php/7.1/php.ini) extension=imagick.so
  8. make a symlink to the lib (this may differ on your system): cd /usr/local/Cellar/[email protected]/7.1.16/lib/php/20160303 ln -s ../../../pecl/20160303/imagick.so

This php-core decision break so many development environments and was far away from any real life work... and you call others for watch your tone? Sorry, but this is currently time and cost intensiv to rebuild our environments. Are you paying the bills?

@2case are you paying ours?

@SMillerDev are you telling me there is no support from Apple at all for homebrew? Do you have any funding?

A tool which is vital to so many developers and probably used by tons of Apple employees needs to be properly funded.

Let's all remain civil as we work through the pains of shifting priorities, standards, and community policies. Don't forget https://mikemcquaid.com/2018/03/19/open-source-maintainers-owe-you-nothing/

@sschueller I wish. There was an interesting discussion about that at the Free and Open source Software Developers' European Meeting this year. (https://youtu.be/RYsHV-SW0Vw?t=1530)

EDIT: Link actually starts at the funding question now.

This php-core decision break so many development environments and was far away from any real life work... and you call others for watch your tone? Sorry, but this is currently time and cost intensiv to rebuild our environments. Are you paying the bills?

@2case Many volunteers (particularly @kabel @javian @ilovezfs @SMillerDev) have spent their evenings and weekends working on this software that you get to use for free. If that makes it slightly harder for you to earn money with Homebrew because you did not plan for the pre-announced date: that is completely and utterly your problem to deal with.

@sschueller you shouldn't need to perform the last two steps in your guide since pecl should automatically add the line to php.ini and you shouldn't need to create a symlink manually. If this doesn't work by default see https://github.com/Homebrew/homebrew-core/issues/26108#issuecomment-378223868

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gregvirgin picture gregvirgin  路  3Comments

Steffen911 picture Steffen911  路  3Comments

bantl23 picture bantl23  路  3Comments

faraazkhan picture faraazkhan  路  3Comments

yuna9 picture yuna9  路  4Comments