Thursday, September 30, 2010

PEAR 1.9.0 won't upgrade on windows

(9:45:34 PM) lera: Hello, guys! Can anyone help me with pear installer 1.9.1 installation?
(9:47:02 PM) cweiske: just ask your question
(9:47:31 PM) lera: I currently have pear installer of 1.9.0 version, but I need 1.9.1 to upgrade my phpunit to 3.5, so I'm trying 'pear upgrade --force pear' command, but pear keeps saying that its version remains 1.9.0 (to figure out version I use 'pear version' command)
(9:48:11 PM) lera: Though, installation seems to pass successfully
(9:48:44 PM) lera: I use php 5.3.3 zip package and 1.9.0 was installed using go-pear
(9:50:33 PM) lera: Any ideas?
(9:54:30 PM) cweiske: please pastebin the output of "pear upgrade pear"
(9:55:24 PM) lera: Here is it:
(9:56:37 PM) cweiske: pear info pear
(9:56:53 PM) cweiske: what do you get?
(9:59:17 PM) lera: yes, here:
(10:00:35 PM) cweiske: ABOUT PEAR.PHP.NET/PEAR-1.9.1
(10:00:45 PM) cweiske: so we have a difference here
(10:01:13 PM) lera: so, what can I do about it?
(10:01:20 PM) cweiske: which path has the pear executable that you run on command line?
(10:01:59 PM) cweiske: I suppose it is different to the one you get in "pear list-files pear", the "script" one
(10:02:15 PM) lera: C:\Program Files\PHP\pear.bat
(10:03:12 PM) lera: yes, that's true, they are different
(10:03:24 PM) cweiske: then there is your problem
(10:03:30 PM) cweiske: remote the one in PHP
(10:03:33 PM) cweiske: and use the other one
(10:05:33 PM) lera: but with that pear, whose path is equal to that mentioned in pear list-files pear, there is just the same problem - I can't update it either
(10:05:50 PM) cweiske: didn't you say it's different?
(10:05:55 PM) cweiske: what is the 2nd path?
(10:06:00 PM) cweiske: the one from pear list-files pear?
(10:06:28 PM) lera: yes, exactly
(10:07:15 PM) lera: I have PEAR here: C:\Program Files\PHP\pear.bat C:\Program Files\PHP\pear.bat
(10:07:18 PM) lera: And here: D:\PHP\php-5.3.3\pear.bat
(10:07:33 PM) lera: And pear list-files pear points to D:\PHP\php-5.3.3
(10:07:47 PM) cweiske: what do you get if you execute the D one?
(10:07:52 PM) cweiske: (as version)
(10:07:54 PM) lera: just the same
(10:08:07 PM) cweiske: how do you execute it?
(10:08:11 PM) cweiske: the full command line
(10:08:38 PM) lera: I've tried pear upgrade --force pear is went fine
(10:08:50 PM) lera: then i use pear version and it gives 1.9.0
(10:09:06 PM) cweiske: please post the FULL command line how you execute the pear.bat in D
(10:11:16 PM) lera: D:\PHP\php-5.3.3>pear upgrade --force pear
(10:11:31 PM) lera: this is the full command line
(10:12:23 PM) lera: Here is it as well...
(10:12:23 PM) PEARgirl has changed the topic to: | just ask your question | please use a pastebin for long lines of text, eg | 604 open bugs (1.08 bugs/package)
(10:14:34 PM) lera: Ok, the problem is that two pears got mixed up, right?
(10:14:41 PM) cweiske: I suppose so
(10:15:31 PM) cweiske: please pastebin the pear list-files pear from D
(10:16:20 PM) lera: Yes, please:
(10:17:21 PM) cweiske: please pastebin the D pear.bat
(10:18:20 PM) lera: here you are:
(10:21:15 PM) cweiske: it might be that you have some environment variable set, PHP_PEAR_INSTALL_DIR
(10:21:29 PM) cweiske: which points to the old version
(10:21:45 PM) cweiske: the most easy way to "fix it" is to run php scripts/pearcms.php info
(10:21:52 PM) cweiske: instead of using pear.bat
(10:21:58 PM) cweiske: try that and see if you get 1.9.1
(10:23:30 PM) lera: PHP_PEAR_INSTALL_DIR is set to D:\PHP\php-5.3.3\pear
(10:24:02 PM) lera: Where can I find pearcms.php? There is no such file under php root
(10:24:08 PM) cweiske: pearcmd.php
(10:24:10 PM) cweiske: scripts
(10:24:21 PM) cweiske: it should be in the pear list-files pear output
(10:25:12 PM) lera: oh, right
(10:29:26 PM) lera: that's great! It works! Thank you so much!!!
(10:29:40 PM) lera: Sorry, for taking so much of your time!
(10:30:00 PM) cweiske: good to see

No comments: