DEV Community

Muhajirin
Muhajirin

Posted on • Edited on

1

Install PHP 8 on Arch Linux | Manjaro Linux

deprecated article

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.

🍻

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay