pear2 / pear2.php.net

PEAR2 website
http://pear2.php.net/
Other
19 stars 9 forks source link

Pyrus Problem during installing of packages on WIndows #25

Closed grv87 closed 11 years ago

grv87 commented 11 years ago

Good time of day! I have a problem using Pyrus in Windows. I want to install some PEAR packages, but I get the following error:

C:\root\php>php pyrus.phar install pear/PEAR Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52 Using PEAR installation found at C:\root\php Downloading pear.php.net/PEAR Mime-type: application/octet-stream Downloading pear.php.net/Archive_Tar=================================================================>] 100% (289/289 kb) Mime-type: application/octet-stream Downloading pear.php.net/Structures_Graph============================================================>] 100% (17/17 kb) Mime-type: application/octet-stream Downloading pear.php.net/Console_Getopt==============================================================>] 100% (29/29 kb) Mime-type: application/octet-stream Downloading pear.php.net/XML_Util====================================================================>] 100% ( 3/ 3 kb) Mime-type: application/octet-stream Pyrus\Installer\Exception: Installation failed=======================================================>] 100% (17/17 kb) Pyrus\AtomicFileTransaction\MultiException: ERROR: commit failed Pyrus\IOException: CRITICAL - unable to complete transaction, rename of actual to backup path failed Pyrus\AtomicFileTransaction\RuntimeException: Cannot rollback - not in a transaction

In C:\root\php I have PHP 5.4.9. I've also tried to install pear/MDB2, but I've got the same error. I've found some similar cases, but there was a problem in file permissions on Linux. I see that it isn't applicable for Windows. Where could be a problem?

grv87 commented 11 years ago

php log says: [22-Dec-2012 00:20:16 UTC] PHP Warning: rename(C:\root\php,C:\root.old-php): Процесс не может получить доступ к файлу, так как этот файл занят другим процессом. (code: 32) in phar://C:/root/php/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/AtomicFileTransaction/Transaction/TwoStage.php on line 82. (Process can't get access to file since file is used by another process).

Why pyrus tries to rename entire php directory?

saltybeagle commented 11 years ago

This is a bug in Pyrus, not the pear2 website.