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.

🍻

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

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

Okay