centos6 & phpbrew
phpbrew won't find my installation of php 5.6.33, showing nothing in the list
while trying to install 5.6.33
./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/php-5.6.33' '--with-config-file-path=/root/.phpbrew/php/php-5.6.33/etc' '--with-config-file-scan-dir=/root/.phpbrew/php/php-5.6.33/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--enable-pcntl' '--with-pcre-regex' '--enable-pdo' '--enable-phar' '--enable-posix' '--with-readline' '--enable-sockets' '--enable-tokenizer' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-curl' '--enable-zip' '--with-openssl=yes' '--enable-opcache' >> /root/.phpbrew/build/php-5.6.33/build.log 2>&1
Error: Configure failed:
The last 5 lines in the log file:
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
I've the same problem with UBUNTU 16.04 (WLE) when trying to phpbrew install --old 5.2.13 +mysql +small
The compiling issue is about the libXML and it should compile or install the libxml before running the phpbrew command.
For the CentOS 6, it should run the sudo yum install libxml2-develfirstly. For the Ubuntu 16.04, it should run thesudo apt-get install libxml2-dev` firstly.
And it seems that the CentOS 6 and Ubuntu 16.04 are too old and EOL(end of life) now.
I will close the issue. If having related issue in the newer Linux distributions, please feel free to create another issue :).