Como instalar o PHP 5.6 na última versão do Manjaro
por Pedro Resende em 03/08/2017 às 13:30:00
Hoje, passado alguns meses sem nada dizer, resolvi deixar aqui um pequeno tutorial de como instalar a versão do php 5.6 na última versão do Manjaro. Para quem não sabe, o Manjaro é uma distribuição de linux baseada no Arch.
Para instalar a última versão do PHP é fácil, bastando executar
pacman -S php```
Contudo, para uma versão anterior é necessário utilizar o AUR (ArchLinux User Repository).
Vamos começar por instalar os pacotes de desenvolvimento
```bash
pacman -S --needed base-devel```
uma vez instalados, é a vez de ir buscar o "pacote" do php 5.6 que ainda não está compilado
```$ git clone https://aur.archlinux.org/php56.git
$ cd php56
$ makepkg -si```
Após algum tempo têm o php5.6 instalado, para tal necessitam apenas de executar
```$ php56 -v```
e terão o seguinte
```PHP 5.6.31 (cli) (built: Aug 3 2017 14:40:38)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies```
Caso tenham dúvidas não hesitem em deixa um comentário

Pedro Resende
With over two decades of experience as a Full Stack Developer, I have journeyed through diverse facets of software development. Commencing with the creation of compact institutional websites, I progressed to crafting portals for insurance brokers and contributed to substantial projects for renowned companies such as MS Amlin. My expertise expanded further by delving into product development for Advertiser Kwanko and collaborating with startups in their pivotal ramp-up stages. Notably, I've been involved in architecting extensive e-commerce solutions for global enterprises like Wayfair.
I currently serve as the Tech Lead at Emergn, contributing to the establishment and advancement of the Strategyzer client.