When I try to compile PHP I get this error:
configure: error: xml2-config not found. Please check your libxml2 installation.
I then do apt-get install libxml2 (which works) and still get the error. Anyone know what I need to install? There is no libxml2-devel package (at least it does not find one).
Try:
It should find that, if not you may need to update your repos.Code:# apt-get install libxml2-dev
Yes this would work surely..
Lyf come without guarantees, except that smiling will brighten ur face, laughing will enhance ur eyes, and falling in luv will change ur lyf
You need the development packages as Tor suggests. Install that and PHP should work.
I just had the same problem, and this solution worked for me. However, since I was compiling php with mysql, I also kept getting this error:
To fix that I simply did aCode:configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore!
and it worked fineCode:sudo apt-get install libmysqlclient-dev
Thanks guys! That worked fine.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks