phpbrew icon indicating copy to clipboard operation
phpbrew copied to clipboard

centos6 & phpbrew

Open aolko opened this issue 7 years ago • 1 comments

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.

aolko avatar Apr 27 '18 08:04 aolko

I've the same problem with UBUNTU 16.04 (WLE) when trying to phpbrew install --old 5.2.13 +mysql +small

nor4a avatar Aug 29 '19 10:08 nor4a

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 :).

peter279k avatar Nov 30 '22 03:11 peter279k