ratcateme Posted June 20, 2008 Share Posted June 20, 2008 I am trying to compile php 5.2.6 on CentOS 5.0 but i don't know how to start. at the moment i have extracted the archive into /tmp/php/ but i don't know if this is right or how to run the configure script with all the dirs it needs any help or a possible tutorial would be great. Scott. Quote Link to comment Share on other sites More sharing options...
trq Posted June 20, 2008 Share Posted June 20, 2008 Any particular reason you want / need to compile from source. It really isn't nessasray these days. Anyway, it doesn't matter where you unpack the source tree, you just need to execute the last command (make install) as root. The basic process is (where $src is the php source tree you just unpacked).... cd $src $ ./configure --help $ ./configure --with-all-options-you-require $ make $ sudo make install Make sure you read the README file within thge source tree, also be sure to check ./configure --help before doing any building. If you get an error while compoiling due to unsatisfied dependencies, install the dependency then come back into the $src directory, clean it and start again. eg; cd $src $ make clean $ sudo make install Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.