macOS php71 est devenu [email protected] avec brew
Un jour, j'ai eu la normale php71 installé avec brew avec la commande brew install php71
J'ai essayé d'installer gmp extension comme brew install php71-gmp
mais ça n'a pas fonctionné, j'ai donc utilisé une sorte de code de la recherche google et fait mon php71 pour devenir [email protected] et à présent, aucun des extensions (comme le redis/php71-redis) ne sont pas de travail.
maintenant tryng pour installer php71, mais il reste installe [email protected].. trouvé homebrew/php/php71 et en essayant de l'installer, mais ensuite eu ce message:
Warning: Use [email protected] instead of deprecated homebrew/php/php71
Warning: [email protected] 7.1.15 is already installed`
Tout en essayant de se faire php71 avec redis mcryt imagic bpf et ainsi de suite..
brew config:
HOMEBREW_VERSION: 1.5.13
ORIGIN: https://github.com/Homebrew/brew
HEAD: 0f4e22e28d3b65a6c8dbb0f270bb6d262a2429d6
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a59f6d2736fdd1acb3c71380e1e46b861146b609
Core tap last commit: 65 minutes ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.14.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Java: 1.8.0_162
macOS: 10.13.3-x86_64
Xcode: 9.3
CLT: 9.2.0.0.1.1510905681
X11: N/A
brew doctor dump
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/Users/pauliuslukosiunas/.composer/vendor/squizlabs/php_codesniffer/scripts/
Warning: Some keg-only formulae are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries
with other strange results.
You may wish to `brew unlink` these brews:
[email protected]
php -v décharges
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-gmp/gmp.so' - dlopen(/usr/local/opt/php71-gmp/gmp.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-gmp/gmp.so' - dlopen(/usr/local/opt/php71-gmp/gmp.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-igbinary/igbinary.so' - dlopen(/usr/local/opt/php71-igbinary/igbinary.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-igbinary/igbinary.so' - dlopen(/usr/local/opt/php71-igbinary/igbinary.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-pdo-pgsql/pdo_pgsql.so' - dlopen(/usr/local/opt/php71-pdo-pgsql/pdo_pgsql.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-pdo-pgsql/pdo_pgsql.so' - dlopen(/usr/local/opt/php71-pdo-pgsql/pdo_pgsql.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-redis/redis.so' - dlopen(/usr/local/opt/php71-redis/redis.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-redis/redis.so' - dlopen(/usr/local/opt/php71-redis/redis.so, 9): image not found in Unknown on line 0
PHP 7.1.15 (cli) (built: Mar 29 2018 09:21:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.15, Copyright (c) 1999-2018, by Zend Technologies
**php -i |grep gmp
de vidage **
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-gmp/gmp.so' - dlopen(/usr/local/opt/php71-gmp/gmp.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-pdo-pgsql/pdo_pgsql.so' - dlopen(/usr/local/opt/php71-pdo-pgsql/pdo_pgsql.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-gmp/gmp.so' - dlopen(/usr/local/opt/php71-gmp/gmp.so, 9): image not found in Unknown on line 0
Configure Command => './configure' '--prefix=/usr/local/Cellar/[email protected]/7.1.15' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/7.1' '--with-config-file-path=/usr/local/etc/php/7.1' '--with-config-file-scan-dir=/usr/local/etc/php/7.1/conf.d' '--enable-bcmath' '--enable-calendar' '--enable-dba' '--enable-dtrace' '--enable-exif' '--enable-ftp' '--enable-fpm' '--enable-intl' '--enable-mbregex' '--enable-mbstring' '--enable-mysqlnd' '--enable-opcache-file' '--enable-pcntl' '--enable-phpdbg' '--enable-phpdbg-webhelper' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-zip' '--with-apxs2=/usr/local/opt/httpd/bin/apxs' '--with-bz2' '--with-fpm-user=_www' '--with-fpm-group=_www' '--with-freetype-dir=/usr/local/opt/freetype' '--with-gd' '--with-gettext=/usr/local/opt/gettext' '--with-gmp=/usr/local/opt/gmp' '--with-icu-dir=/usr/local/opt/icu4c' '--with-jpeg-dir=/usr/local/opt/jpeg' '--with-kerberos' '--with-layout=GNU' '--with-ldap' '--with-ldap-sasl' '--with-libedit' '--with-libzip' '--with-mcrypt=/usr/local/opt/mcrypt' '--with-mhash' '--with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-ndbm' '--with-openssl=/usr/local/opt/openssl' '--with-pdo-dblib=/usr/local/opt/freetds' '--with-pdo-mysql=mysqlnd' '--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc' '--with-pdo-pgsql=/usr/local/opt/libpq' '--with-pgsql=/usr/local/opt/libpq' '--with-pic' '--with-png-dir=/usr/local/opt/libpng' '--with-pspell=/usr/local/opt/aspell' '--with-unixODBC=/usr/local/opt/unixodbc' '--with-webp-dir=/usr/local/opt/webp' '--with-xmlrpc' '--with-xsl' '--with-zlib' '--with-curl'
/usr/local/etc/php/7.1/conf.d/ext-gmp.ini,
gmp
gmp support => enabled
P. S. je suis nouveau sur mac
brew doctor
? Aussi, qu'est-ce que la sortie de php -v
.ajouté à ma question 🙂 @Sarcastron
Il dit
gmp support => enabled
de sorte qu'il ressemble GMP a été installé avec une base PHP. Vous pouvez sauvegarder, puis supprimer le lien symbolique dans /usr/local/etc/php/7.1/conf.d
quoi et comment je peux la sauvegarde? :O j'ai été à la recherche pour savoir comment restaurer macbook toutes les données pour 1jour (maintenant besoin de 2 jours) mais rien trouvé :/
OriginalL'auteur Scorpioniz | 2018-03-30
Vous devez vous connecter pour publier un commentaire.
J'ai eu un problème similaire mais avec des extensions différentes.
Le problème semblait souches à partir d'anciens liens étant retiré après j'ai couru une mise à niveau. Dans mon cas, cela a provoqué le stock de la version de PHP à être utilisé. Vous pouvez le vérifier avec la commande CLI:
which php
.Pour le fixer, j'ai réinstallé et réédités en php à l'aide de Homebrew:
Qu'est-ce qui a fonctionné pour moi. J'espère que cela vous aide.
/usr/local/opt/[email protected]/bin/php
et avec réinstaller php71-gmp seError: No available formula with the name "php71-gmp"
Ressemble GMP a été ajouté à la base pour 7.1.15 hier. (braumeister.org/repos/Homebrew/homebrew-php/formula/php71-gmp). Quel est le résultat de
php -i |grep gmp
?ajouté décharges à ma question.. 🙂 vraiment, je ne comprends pas ce que signifie-t-il ajouté à la base? parce que j'ai lu que php71 ajouté à la base.. et a trouvé comme php formule.. mais l'installation php72 version.. pas 71 aussi ne peut pas installer gmp de l'extension et de ne jamais php-v est de travailler à cause de cela.. ou aop....
Cela signifie que vous n'avez pas besoin d'installer GMP, car il est maintenant livré avec PHP 7.1 (lorsqu'il est installé avec Homebrew de toute façon). Vous avez probablement déjà. Mais il ne ressemble votre
php
exécutable n'est pas correctement relié.Qu'est-ce que la sortie de
brew link --overwrite --force --dry-run [email protected]
OriginalL'auteur Sarcastron
Depuis
php71
a été déplacé dehomebrew/php
àhomebrew/core
(environ 31 Mars), il a été appelé[email protected]
.La chose intéressante est que la plupart de toutes les extensions php sont déjà installés avec
[email protected]
. Donc j'ai vérifié et legmp
extension est également dans le package par défaut. Donc pas besoin de l'installer manuellement (vous ne pouvez même pas le faire), parce qu'il est déjà emballé avec les[email protected]
formule.Pull request:
https://github.com/Homebrew/homebrew-php/pull/4798
Vous pouvez l'installer avec la commande PECL. Mais assurez-vous d'utiliser le pecl livré avec l'infusion de php.
Je veux installer imagick maintenant, mais c'est une grande douleur que de l'installer avec "pecl install imagick" veut mettre le fichier dans /usr/include/php/ext/imagick qui est protégé par Mac OS
utilisez-vous le
pecl
fourni par brew lors de l'installation de[email protected]
? Je pense que vous essayez d'utiliser lepecl
de php livré avec MacOS. Pour être sûr d'exécuterwhich pecl
, il devrait ressembler à ceci/usr/local/opt/[email protected]/bin/pecl
Pour installer php extension à l'aide de pecl, vous devez lier votre paquet php première. Il devrait être en les reliant dans /usr/local/bin, vous devez également Vous assurer que votre CHEMIN /usr/local/bin vient avant /usr/bin Exécuter
env
pour vérifier cela.brew install [email protected]
brew link --force --overwrite [email protected]
which pecl
Réponse doit être "/usr/local/bin/pecl"pecl install mongodb
(ou quelle que soit l'extension que vous souhaitez installer) Pour vérifier qu'il est installé, vous pouvez utiliser:php -i | grep -i mongo
OriginalL'auteur remi