cvs: peardoc /en/chapters/installation getting.xml

From: Date: Mon, 31 Mar 2008 01:40:35 +0000
Subject: cvs: peardoc /en/chapters/installation getting.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10597@lists.php.net to get a copy of this message
saltybeagle Mon Mar 31 01:40:35 2008 UTC Modified files: /peardoc/en/chapters/installation getting.xml Log: Move Windows notes to the top. Add section for Mac OS X. http://cvs.php.net/viewvc.cgi/peardoc/en/chapters/installation/getting.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/chapters/installation/getting.xml diff -u peardoc/en/chapters/installation/getting.xml:1.3 peardoc/en/chapters/installation/getting.xml:1.4 --- peardoc/en/chapters/installation/getting.xml:1.3 Sun Dec 2 04:18:12 2007 +++ peardoc/en/chapters/installation/getting.xml Mon Mar 31 01:40:35 2008 @@ -1,9 +1,39 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <sect1 id="installation.getting"> <title>Getting the manager</title> <sect2> + <title>Windows</title> + + <para> + After you have downloaded and installed PHP, you have to manually + execute the batch file located in e.g. + <filename>c:\php\go-pear.bat</filename>. The setup will ask you + some questions and afterwards the PEAR Package Manager will be + installed in the path, which you have specified during installation. + Finally you have to add that installation path to your + <literal>PATH</literal> environment. Either do this manually (Start &gt; + Control Panel &gt; System &gt; Environment) or run (double-click) the + newly generated <filename>PEAR_ENV.reg</filename> that's now found in the + PHP source directory. After that you can access the PEAR Package Manager + by running the command <literal>pear</literal> in a Windows Command + Prompt. + </para> + <para> + To update your PEAR installation from go-pear.org, request + &url.pear.go; in your browser and save the output to a local + file <filename>go-pear.php</filename>. You can then run + <screen> + <userinput> +php go-pear.php + </userinput> + </screen> + in a Windows Command Prompt to start the update process. + </para> + </sect2> + + <sect2> <title>Unix/Linux/BSD</title> <para> When using PHP &gt;= 4.3.0, the PEAR Package Manager is already @@ -47,34 +77,33 @@ </sect2> <sect2> - <title>Windows</title> - + <title>Mac OS X</title> <para> - After you have downloaded and installed PHP, you have to manually - execute the batch file located in e.g. - <filename>c:\php\go-pear.bat</filename>. The setup will ask you - some questions and afterwards the PEAR Package Manager will be - installed in the path, which you have specified during installation. - Finally you have to add that installation path to your - <literal>PATH</literal> environment. Either do this manually (Start &gt; - Control Panel &gt; System &gt; Environment) or run (double-click) the - newly generated <filename>PEAR_ENV.reg</filename> that's now found in the - PHP source directory. After that you can access the PEAR Package Manager - by running the command <literal>pear</literal> in a Windows Command - Prompt. + On Mac OS 10.4 and earlier, the PEAR Package Manager is already + installed in <filename>/usr/bin/pear</filename>. </para> <para> - To update your PEAR installation from go-pear.org, request - &url.pear.go; in your browser and save the output to a local - file <filename>go-pear.php</filename>. You can then run + If you would like to install a new copy, or re-install the PEAR + Package Manager use the following command: <screen> <userinput> -php go-pear.php +&dollar; sudo curl &url.pear.go; | php </userinput> </screen> - in a Windows Command Prompt to start the update process. </para> + <note> + <para> + You can also save &url.pear.go; as <filename>go-pear.php</filename> + and run it with: + <screen> + <userinput> +php go-pear.php + </userinput> + </screen> + </para> + </note> </sect2> + <sect2> <title>PEAR in hosting environments</title>

« previous php.pear.doc (#10597) next »