doc:phd:install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:phd:install [2009/03/14 23:23] – link to phd docs cweiske | doc:phd:install [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
==== Using the PEAR Channel ==== | ==== Using the PEAR Channel ==== | ||
- | Using a PEAR channel first requires | + | 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: | ||
< | < | ||
- | $ pear channel-discover | + | $ pear install |
- | </code> | + | |
- | Next, install | + | |
- | < | + | |
- | $ pear install doc.php.net/ | + | |
</ | </ | ||
And for upgrading: | And for upgrading: | ||
< | < | ||
- | $ pear upgrade doc.php.net/ | + | $ pear upgrade doc.php.net/ |
</ | </ | ||
If by chance you already installed PhD by other means then be sure to uninstall that version first. | If by chance you already installed PhD by other means then be sure to uninstall that version first. | ||
+ | |||
+ | To list all available packages: | ||
+ | < | ||
+ | $ pear remote-list -c doc.php.net | ||
+ | </ | ||
+ | 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 ==== | ==== Using PEAR directly ==== | ||
Installing by using a specific tarball is possible too, but is not recommended. | Installing by using a specific tarball is possible too, but is not recommended. | ||
< | < | ||
- | $ pear install http:// | + | $ pear install http:// |
</ | </ | ||
+ | ==== Using GIT ==== | ||
+ | NOTE: Using PhD from GIT is not recommended. | ||
- | ==== Using CVS ==== | + | |
- | Getting the code: | + | Getting the code (anonymous checkout): |
< | < | ||
- | $ cvs -d:pserver:cvsread@cvs.php.net/repository co phd | + | $ git clone git:// |
+ | </ | ||
+ | For developers: | ||
+ | < | ||
+ | $ git clone git@git.php.net:/phd.git | ||
</ | </ | ||
- | Install and run from CVS: | + | |
+ | Install and run from GIT. There are several package_*.xml files, but in the very least you'll need: | ||
< | < | ||
$ cd phd | $ cd phd | ||
- | $ pear channel-discover doc.php.net | + | $ pear install package.xml package_generic.xml |
- | $ pear install | + | </ |
+ | |||
+ | To then install the " | ||
+ | < | ||
+ | $ pear install | ||
</ | </ | ||
- | Alternately you can (although not recommended) | + | Alternately you can run PhD directly from GIT, without needing to install it. The same holds true if using the tarball, because all the phd command really does is execute " |
< | < | ||
$ cd phd | $ cd phd | ||
- | $ php build.php -d/ | + | $ php render.php --docbook |
</ | </ | ||
Now go on and read the [[http:// | Now go on and read the [[http:// |
doc/phd/install.1237073017.txt.gz · Last modified: 2017/09/22 13:28 (external edit)