Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install pecl on ubuntu 18.04

Tags:

php

ubuntu

pecl

I am using ubuntu 18.04 docker image. and install

apt install php

and i want to install xdebug but there is no pecl. how to install pecl?

like image 415
vikke Avatar asked Oct 12 '25 09:10

vikke


2 Answers

I installed pecl on ubuntu 20.04 using apt install php-dev (php7.4). this may be useful.

like image 58
Hariharan Kanakaraja Avatar answered Oct 15 '25 00:10

Hariharan Kanakaraja


Run the command below to install php-pear, then you can use "pecl".

sudo apt install php-pear

like image 42
srDev Avatar answered Oct 14 '25 23:10

srDev