Magento 1.7.0.2 - cannot install SUPEE 2629 (PHP 5.4 patch)

by Bengall   Last Updated March 23, 2016 08:03 AM

I have downloaded fresh copy of Magento 1.7.0.2 and PHP 5.4 patch for 1.7.0.2 version, problem is I can't install patch via SSH, working with Magento on local disk! I have found similar problems, other people had HUNK fail problem, my problem is somewhat different, as shown on picture, tried with "sh" and "bash" commands, same problem.

For SSH client, I'm using MobaXterm, not sure if that is relevant. I'm new in coding, maybe I'm doing something wrong.

UPDATE: I have installed Cygwin, started the Cygwin shell and tried to execute patch and then it shows

Error! Some required system tools, that are utilizied in this sh script, are not installed: Tool(s) 'patch' is(are) missed, please install it(them).

I searched on Cygwin page, under Cygwin Package Search, and for 'patch' it finds 2546 matches. What now?

enter image description here



Answers 1


It looks like MobaXterm uses some kind of Unix shell emulator (BusyBox) when run on localhost (a Windows computer that normally would not have the Unix commands).

The patch scripts use the patch Unix command with the --dry-run parameter, but the BusyBox implementation does not know this parameter.

For Windows I can recommend Cygwin instead. You don't need to SSH into localhost with it, just start the Cygwin shell and execute the patch there.


I searched on Cygwin page, under Cygwin Package Search, and for 'patch' it finds 2546 matches. What now?

Install the package patch-2.7.4-1 with the cygwin installer. I found it by searching "patch.exe"

fschmengler
fschmengler
March 22, 2016 10:37 AM

Related Questions



Magento Cron is not run on windows

Updated March 20, 2016 08:03 AM


magento test framework composer install issue

Updated September 27, 2016 09:03 AM