DEV Community

loading...

Install PHP 8 on Arch Linux | Manjaro Linux

Muhajirin
・Updated on ・1 min read

PHP 8 release on November 27, 2020 but Arch Linux official package didn't upgrade it in their official repository yet. It's because so many package that require PHP as their dependency didn't compatible yet with PHP 8. But as an Arch or Manjaro Linux users, we can install it via AUR.

1. Install missing dependencies

sudo pacman -S hspell nuspell libvoikko
Enter fullscreen mode Exit fullscreen mode

as addressed in this comment

2. Insall PHP 8 via AUR

  • using yay
yay -S php80
Enter fullscreen mode Exit fullscreen mode

all is well πŸ‘Œ

  • not using aur helper
git clone https://aur.archlinux.org/php80.git
cd php80
makepkg -Si
Enter fullscreen mode Exit fullscreen mode

all is well πŸ‘Œ


FYI, we can't install xdebug for PHP 8 from package manager neither AUR. If you need xdebug follow these instruction here

when you arrive in step to run ./configure don't forget to add --with-php-config=/usr/bin/php-config80. XDebug wizard doesn't warn us about it.

🍻

Discussion (0)