cvs: peardoc /en/chapters faq.xml
| From: | Pierre-Alain Joye | Date: | Thu, 09 Mar 2006 13:41:12 +0000 |
| Subject: | cvs: peardoc /en/chapters faq.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7654@lists.php.net to get a copy of this message | ||
pajoye Thu Mar 9 13:41:12 2006 UTC
Modified files:
/peardoc/en/chapters faq.xml
Log:
- add an entrey about installing pear in your home and have it in the path
summary of my explanations done by Florian (fa@php.net)
http://cvs.php.net/viewcvs.cgi/peardoc/en/chapters/faq.xml?r1=1.23&r2=1.24&diff_format=u
Index: peardoc/en/chapters/faq.xml
diff -u peardoc/en/chapters/faq.xml:1.23 peardoc/en/chapters/faq.xml:1.24
--- peardoc/en/chapters/faq.xml:1.23 Tue Jan 10 23:02:48 2006
+++ peardoc/en/chapters/faq.xml Thu Mar 9 13:41:12 2006
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.23 $ -->
+<!-- $Revision: 1.24 $ -->
<!-- [mj] The FAQ needs some heavy revision - don't translate it right
now -->
<chapter id="faq">
@@ -12,6 +12,55 @@
This is described <link linkend="introduction">here</link>.
</para>
</sect1>
+ <sect1 id="faq.pearinhomedir">
+ <title>
+ I've got an old installation of PEAR and don't have the permissions to install a new
version - what now?
+ </title>
+ <titleabbrev>
+ Installing PEAR in your home directory
+ </titleabbrev>
+ <para>
+ If <command>$ which pear</command> gives you something like
<filename>/usr/local/bin/pear</filename>
+ and <command>$ pear -v</command> shows a very old version or if you don't want
+ to use it for other reasons, you have to install PEAR in your home directory.
+ </para>
+ <para>
+ Go to http://go-pear.org, save as
<filename>gopear.php</filename> and do
+ <command>$ php gopear.php</command> or try
+ <command>$ lynx -source http://pear.php.net/go-pear | php -q</command>.
+ <para>
+ Use <filename>/home/user/pear<filename> as prefix while installing PEAR, where user
is your
+ username.
+ </para>
+ <para>
+ Once the installation is done, edit your PATH variable to include your planned new PEAR
directory
+ <strong>before</strong> the old one.
+ </para>
+ <para>
+ For example put a <command>export PATH=/home/user/pear/bin:$PATH</command>
+ at the end of your <filename>~/.bashrc</filename> or
<filename>~/.profile</filename>
+ under Linux. <command>$ echo $PATH</command> should give you now
+ <filename>/home/user/pear/bin:[...]</filename>
+ </para>
+ <para>
+ <command>$ which pear</command> should result in
<filename>/home/user/pear/bin/pear</filename>
+ and <command>$ pear -v</command> something like "PEAR Version: 1.4.8"
+ (at the time of writing) or newer. Check the latest stable version at
+ http://pear.php.net/package/PEAR under
<strong>Current Release</strong>.
+ </para>
+ <para>
+ Now all you need is to set your <strong>include_path</strong> correctly, most
+ likely via
+ <programlisting role="php">
+ <![CDATA[
+ <?php
+ $path = ini_get('include_path');
+ ini_set('include_path', '/home/user/pear;'.$path);
+ ?>
+ ]]>
+ </programlisting>
+ </para>
+ </sect1>
<sect1 id="faq.noreleasesfound">
<title>
How do I install a package when I get the error message