Skip to content

Instantly share code, notes, and snippets.

@fabianofa
Last active November 28, 2018 09:55
Show Gist options
  • Save fabianofa/8493c01e404639b3eaadc8333756dd96 to your computer and use it in GitHub Desktop.
Save fabianofa/8493c01e404639b3eaadc8333756dd96 to your computer and use it in GitHub Desktop.
Compilando extensões Pecl com a versão certa do PHP
# 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