PHP compile error on CentOS Install

July 15, 2007 – 9:13 pm

I installed CentOS 5 on my VMWare a few days ago. I installed gcc via yum, compiled and installed libxml2. I then tried to install PHP 5.2.3 and received this error:

configure: error: installation or configuration problem: C++ compiler cannot create executables.

It took me forever to figure this out, but I had to install the g++ library, then it compiled fine.

yum install gcc-c++

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  1. 2 Responses to “PHP compile error on CentOS Install”

  2. Thanks. This entry saved me an ass-load of time…had the same problem, and like you said, gcc-c++ fixed it. Owe some props to google, too.

    By A-non-e-mus on Aug 30, 2007

  3. thanks :-)

    By Rick on Feb 16, 2008

Post a Comment