![]() |
|||
SRM - Documentation |
|||
|
^ SRM Documentation ^ Compiling - Files - Compiling |
CompilingThis section discusses all the steps needed to compile SRM, and PHP as a running machine. It is necessary to compile PHP twice to have a fully working system. Both an SRM module and an Apache (or other webserver) module using the SRM extension are required. Compiling SRMFirst change to the SRM source directory (in our example: cd /home/user/install/srm), then select the configure options you want to compile. The full list with options to configure can be found here. For this example we use the following configure line:
Please remember that any --prefix additions here will also need to be manually entered into the srm.ini file once installation is finished. After running configure, it is posisble to make SRM by doing:
If you are encountering problems with make (especially on FreeBSD) you might want to try gmake (GNU Make) instead of make to compile SRM. Compiling the PHP module for SRMIf using a cvs checkout of PHP, the first step is to recreate the PHP configure file. Change into the php4 directory, remove the existing configure script, and run buildconf like so:
If using a release version of PHP this step will not be necessary. It is now possible configure PHP with a clean configure script. To find out what options are needed for compiling with SRM, type:
If the lines below are shown everything is fine, otherwise have a look at the troubleshooting section of this file.
Compiling the PHP module for SRMIf not already there, change to the PHP source directory, and configure PHP as necessary. This example uses just the essentials srm needs to run:
You also might want to add --disable-cli to the configure line, as compiling a CLI version with the module does not make much sense. Now the PHP module for SRM is ready to be built. The following lines will build the PHP module for SRM and place the module in the /usr/local/srm/lib directory, or in the /lib directory of the install prefix that was specified at configure time.
After the make install is completed, the PHP module for SRM should be in the proper place. It is now possible to start the SRM Daemon by running the command /usr/local/srm/bin/srmd (see the section on command line options). Compiling the Apache module with the SRM extensionsCompiling PHP with the SRM extension is not difficult. Using any normal mixture of configure options for PHP, add the --with-srm[=DIR] option. Replacing the [DIR] with the path to the prefix that was set in the configure options to SRM. In this example the path is --with-srm=/usr/local/srm. Configure options for SRMThis section lists all the available options to configure. Configure options for modules
Debugging related options
|
||
| Prev: Compiling | Next: Installation | ||
|
© 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by The Vulcan Logic Group |
|||