Это сводит меня с ума, и все онлайн-уроки не помогли.
Я только что обновился до нового Mac с MacOS Sierra (10.12.1) и пытаюсь настроить свою среду разработки. Однако всякий раз, когда я запускаю обновление композитора или установку композитора в своем проекте, я получаю следующее сообщение:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so, 9): image not found in Unknown on line 0
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for laravel/framework v5.0.35 -> satisfiable by laravel/framework[v5.0.35].
- laravel/framework v5.0.35 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
Problem 2
- laravel/framework v5.0.35 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- tom-lingham/searchy 2.0.10 requires illuminate/support 5.* -> satisfiable by laravel/framework[v5.0.35].
- Installation request for tom-lingham/searchy 2.0.10 -> satisfiable by tom-lingham/searchy[2.0.10].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php.ini
Я запустил brew install mcrypt, и он уже установлен.
Warning: mcrypt-2.6.8 already installed
В системе работает php 7.1, поэтому я также запустил brew install php71-mcrypt.
extension=mcrypt.so был включен в файлы php.ini, как на моей машине, так и на бродячей машине.
Любая помощь будет высоко оценена, так как я занимаюсь этим уже 2 дня!