doc:phd:install
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
doc:phd:install [2008/03/10 11:45] – imported, originally written by Philip felipe | doc:phd:install [2011/06/19 18:07] – updated instructions, phd is no longer beta philip | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Installing PhD ===== | ===== Installing PhD ===== | ||
+ | The preferred method is using the pear channel, but all methods are documented below. | ||
- | ==== Using PEAR ==== | + | ==== Using the PEAR Channel |
+ | At the time of this writing the latest version of PhD is in beta so the -beta tag is used below. | ||
+ | PhD is chunked into multiple sub-packages (currently " | ||
+ | |||
+ | To install just the PhD core and the Generic package, type: | ||
< | < | ||
- | bjori@lindsay: | + | $ pear install doc.php.net/ |
- | downloading PhD-0.2.0.tgz ... | + | |
- | Starting to download PhD-0.2.0.tgz (23,669 bytes) | + | |
- | .......done: | + | |
- | install ok: channel:// | + | |
- | bjori@lindsay: | + | |
- | bjori@lindsay: | + | |
</ | </ | ||
+ | And for upgrading: | ||
+ | < | ||
+ | $ pear upgrade doc.php.net/ | ||
+ | </ | ||
+ | If by chance you already installed PhD by other means then be sure to uninstall that version first. | ||
- | ==== Using CVS ==== | + | To list all available packages: |
< | < | ||
- | # cvs -d: | + | $ pear remote-list -c doc.php.net |
- | # cd phd | + | |
- | # vim config.php # Edit the xml_root to point to your phpdoc checkout and remove the die() line | + | |
- | # pear install -f package.xml | + | |
- | # phd -d/ | + | |
</ | </ | ||
+ | and to install optional packages: | ||
+ | < | ||
+ | $ pear install doc.php.net/ | ||
+ | $ pear install doc.php.net/ | ||
+ | </ | ||
+ | |||
+ | Note that since the optional packages depend on the PhD core package they will pull down and automatically install the required packages if missing. That means it enough to simply write: | ||
+ | < | ||
+ | $ pear install doc.php.net/ | ||
+ | </ | ||
+ | to install everything that is required. | ||
+ | |||
+ | ==== Using PEAR directly ==== | ||
+ | Installing by using a specific tarball is possible too, but is not recommended. | ||
+ | < | ||
+ | $ pear install http:// | ||
+ | </ | ||
+ | ==== Using SVN ==== | ||
+ | NOTE: Using PhD from SVN is not recommended. | ||
+ | |||
+ | |||
+ | Getting the code: | ||
+ | < | ||
+ | $ svn co http:// | ||
+ | </ | ||
+ | |||
+ | Install and run from SVN. There are several package_*.xml files, but in the very least you'll need: | ||
+ | < | ||
+ | $ cd phd | ||
+ | $ pear install package.xml package_generic.xml | ||
+ | </ | ||
+ | |||
+ | To then install the " | ||
+ | < | ||
+ | $ pear install package_php.xml | ||
+ | </ | ||
+ | |||
+ | Alternately you can run PhD directly from SVN, without needing to install it. The same holds true if using the tarball, because all the phd command really does is execute "php render.php" | ||
+ | < | ||
+ | $ cd phd | ||
+ | $ php render.php --docbook / | ||
+ | </ | ||
+ | |||
+ | |||
+ | Now go on and read the [[http:// |
doc/phd/install.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1