Re: Moving PEAR to another Machine
| From: | Gregory Beaver | Date: | Mon, 05 Mar 2007 16:24:28 +0000 |
| Subject: | Re: Moving PEAR to another Machine | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26724@lists.php.net to get a copy of this message | ||
Ian Warner wrote:
> Hi
>
> I just tried to move my WAMP installation from my USB drive to another drive
> - the drive letter was different. I changed all the places this was
> necessary to change. I.e. in PEAR.ini and surprisingly in the pear.bat
> itself.
>
> Also in the php.ini include path
>
> However when I then tried to install a pear package I got an error saying it
> couldn't find the PEAR.php core file.
>
> So where else do I need to change the pathing to allow PEAR to be easily
> moved around?
Hi Ian,
This is a tricky thing to do. It may be easier to re-install.
However, having said that dire thing :), you will need to change the
set_include_path() call in pearcmd.php, which is hard-coded. After you
do this, reinstall all of the packages with "pear upgrade
--register-only --force <Packagename>-<version>" and it will update the
drive letter in the registry. This last step is very important: full
paths are hardcoded for every single file of every package you have
installed, you do *not* want to fix that by hand :)
As always, ask here again if you have more troubles with the move.
Thanks,
Greg