Skip to content

Instantly share code, notes, and snippets.

@yang-wei
Last active August 8, 2018 01:19
Show Gist options
  • Save yang-wei/e91bce60bf903d38543067b8a803596d to your computer and use it in GitHub Desktop.
Save yang-wei/e91bce60bf903d38543067b8a803596d to your computer and use it in GitHub Desktop.
PHP extension ext-memcached * is missing from your system
➜  admin git:(master) phpbrew --version
phpbrew - 1.23.1
cliframework core: 2.5.4
➜  admin git:(master) php -v
PHP 5.6.30 (cli) (built: Aug  7 2018 17:48:36)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
➜  admin git:(master) which php
/Users/l-wei/.phpbrew/php/php-5.6.30/bin/php
make install
make[1]: `Sexp.php' is up to date.
/Users/l-wei/.phpbrew/php/php-5.6.30/bin/php ../composer.phar --prefer-dist install
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
    - The requested PHP extension ext-memcached * is missing from your system. Install or enable PHP's memcached extension.

make: *** [install] Error 2

phpbrew --debug ext install github:php-memcached-dev/php-memcached 2.2.0 -- --disable-memcached-sasl


===> Installing...
Installing shared extensions:     /Users/l-wei/.phpbrew/php/php-5.6.30/lib/php/extensions/no-debug-non-zts-20131226/
Installed extension library: /Users/l-wei/.phpbrew/php/php-5.6.30/lib/php/extensions/no-debug-non-zts-20131226/memcached.so
===> Extension is installed.
===> Creating config file /Users/l-wei/.phpbrew/php/php-5.6.30/var/db/memcached.ini.disabled
/Users/l-wei/.phpbrew/php/php-5.6.30/var/db/memcached.ini.disabled is created.
===> Enabling extension memcached
[*] memcached extension is enabled.
Done.
...

http://xuwenzhi.com/2017/11/21/%E4%BD%BF%E7%94%A8phpbrew%E7%AE%A1%E7%90%86php%E7%89%88%E6%9C%AC/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment