How to fix error with xml2-config not found when installing PHP from sources?

前端 未结 6 879
青春惊慌失措
青春惊慌失措 2021-01-30 04:43

When I try to install php 5.3 stable from source on Ubuntu (downloading compressed installation file from http://www.php.net/downloads.php) and I run ./configure I

6条回答
  •  半阙折子戏
    2021-01-30 05:15

    I had the same issue when I used a DockerFile. My Docker is based on the php:5.5-apache image.

    I got that error when executing the command "RUN docker-php-ext-install soap"

    I have solved it by adding the following command to my DockerFile

    "RUN apt-get update && apt-get install -y libxml2-dev"

提交回复
热议问题