
Originally Posted by
Zosi
If you're on a flavor of Linux (or any system with a package manager or ports system), I would strongly advise against manually compiling *anything* yourself unless you know precisely what you will be gaining by doing so, and it sounds like you don't. Distro packages are built with very sensible defaults, PHP in particular is something that's designed to work out of the box when you install it via packages due to its popularity. If packages are available, use them and don't worry about messing with configure flags, they're almost guaranteed to have everything enabled that you need for learning the language.
If you absolutely have to build it yourself, you'll need to run "./configure --help" and examine all the options. Note down which libraries/features you want to enable, make sure you have the appropriate header files installed, then build up a "configure" command line that includes everything you want. If "configure" barfs and says that it can't find the headers, you'll have to manually specify where to find them - this is all explained in the help output. Again, though... if you don't understand what you're enabling with "configure", you should probably be using the package manager.
Good luck!