doc:phd:install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
doc:phd:install [2009/03/14 23:23]
cweiske link to phd docs
doc:phd:install [2012/03/07 11:30]
bjori update to git clones
Line 3: Line 3:
  
 ==== Using the PEAR Channel ==== ==== Using the PEAR Channel ====
-Using a PEAR channel first requires the systems PEAR installation to discover itso this only has to be done once.+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 "Generic", "PHP" and "PEAR")the Generic package is installed by default. 
 + 
 +To install just the PhD core and the Generic package, type:
 <code> <code>
-$ pear channel-discover doc.php.net +$ pear install doc.php.net/PhD
-</code> +
-Next, install PhD. At the time of this writing the latest version of PhD is in beta so the -beta tag is used below: +
-<code> +
-$ pear install doc.php.net/phd-beta+
 </code> </code>
 And for upgrading: And for upgrading:
 <code> <code>
-$ pear upgrade doc.php.net/phd-beta+$ pear upgrade doc.php.net/PhD
 </code> </code>
 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:
 +<code>
 +$ pear remote-list -c doc.php.net
 +</code>
 +and to install optional packages:
 +<code>
 +$ pear install doc.php.net/PhD_PHP
 +$ pear install doc.php.net/PhD_IDE
 +</code>
 +
 +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:
 +<code>
 +$ pear install doc.php.net/PhD_PHP
 +</code>
 +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.
 <code> <code>
-$ pear install http://doc.php.net/phd/PhD-0.4.1.tgz+$ pear install http://doc.php.net/get/PhD-1.1.0.tgz
 </code> </code>
 +==== Using SVN ====
 +NOTE: Using PhD from SVN is not recommended.
  
-==== Using CVS ==== + 
-Getting the code:+Getting the code (anonymous checkout):
 <code> <code>
-cvs -d:pserver:cvsread@cvs.php.net/repository co phd+git clone git://git.php.net/phd.git 
 +</code> 
 +For developers: 
 +<code> 
 +$ git clone git@git.php.net:/phd.git
 </code> </code>
  
-Install and run from CVS:+ 
 +Install and run from SVN. There are several package_*.xml files, but in the very least you'll need:
 <code> <code>
 $ cd phd $ cd phd
-$ pear channel-discover doc.php.net +$ pear install package.xml package_generic.xml 
-$ pear install -f package.xml+</code> 
 + 
 +To then install the "PHP" package (needed to render the PHP documentations): 
 +<code> 
 +$ pear install package_php.xml
 </code> </code>
  
-Alternately you can (although not recommended) run PhD directly from CVS, without needing to install it. The same holds true if using the tarball, because all the phd command really does is execute "php build.php" so:+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" so:
 <code> <code>
 $ cd phd $ cd phd
-$ php build.php -d/path/to/phpdoc/.manual.xml+$ php render.php --docbook /path/to/phpdoc/.manual.xml
 </code> </code>
  
  
 Now go on and read the [[http://doc.php.net/phd/docs/|PhD Documentation]] Now go on and read the [[http://doc.php.net/phd/docs/|PhD Documentation]]
doc/phd/install.txt · Last modified: 2017/09/22 13:28 (external edit)