Last active
November 28, 2018 09:55
-
-
Save fabianofa/8493c01e404639b3eaadc8333756dd96 to your computer and use it in GitHub Desktop.
Compilando extensões Pecl com a versão certa do PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# São utilizadas dois bins para definir destino e parâmetros de compilação: /usr/bin/php-config e /usr/bin/phpize. | |
# Considerando que php7.1-dev e php7.2-dev estejam instalados, para confirmar que irá ser compilado para PHP 7.1: | |
# considerando que ppa:ondrej esteja instalado: | |
$ sudo apt install php7.1-dev php7.2-dev | |
$ sudo update-alternatives --set php-config /usr/bin/php-config7.1 | |
$ sudo update-alternatives --set phpize /usr/bin/phpize7.1 | |
$ sudo php-config | |
$ sudo phpize -v | |
$ sudo pecl install libsodium |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment