1

I'm trying to update magento 1.4.0 to 1.7 for a client. first I installed magento from the host server to my local server for test purpose. I have windows 7/cygwin. when I try to execute the command ./pear mage-setup I get the following enter image description here

I have been working around this issue but I haven't found anything yet.

3 Answers3

3

Most likely your problem isn't the file missing/permissions etc. But the fact you are using CygWin and Windows, set PATH may not function the same way as it would on a real Linux system.

Take a closer look into what the ./pear command is actually doing:

Bottom of the code you'll notice the call for pearmage.php:

exec $PHP -C -q $INCARG -d output_buffering=1 -d variables_order=EGPCS \
    -d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" \
    -d auto_prepend_file="" -d auto_append_file="" \
    $INCDIR/pearmage.php -c $PEAR_INI "$@

Validate your include_path in PHP with <?php phpinfo(); ?> and ensure it will include the downloader/pearlib/php/; directory.

Related StackOverflow Question:

For reference of the file missing in question:

Ultimately as Fabian Blechschmidt mentioned, Simply copying the new codebase over the files will be much easier than trying to go through the pear channels. DB Upgrades will trigger after the new files are copied and a front/backend request is made.

Also consider setting up a Virtual Machine on a true Linux stack if your getting down to the Bash/Perl level of things.

B00MER
  • 8,307
  • 2
  • 21
  • 49
  • 1
    Well-said: thank you for a thoughtful answer. – philwinkle Aug 20 '13 at 21:27
  • thank you for such a detailed answer. and please excuse my urge to ask you this but, after copying the core file, what do you mean by the database will trigger the upgrade. Note: the case here is that some programmer 4 years ago did this project and now they asked me to upgrade it. so I copied the files from their server and I'm working on localhost. so might I be missing any files to?! about working on linux. yes I'm a linux user but it's a temporary solution for me to use cygwin due to some mess. thanks again – mamdouh alramadan Aug 20 '13 at 21:51
  • Audit the community & local code pools for any 3rd party modules, diff the existing 1.4.x codebase with a similar vanilla install. This should give you enough insight on what the other developer did. As for the DB upgrade after question: http://goo.gl/bCqFM – B00MER Aug 21 '13 at 04:59
2

The pear command is no longer included in the 1.7 package, this has been replaced by the mage command.

Vladimir Kerkhoff
  • 8,223
  • 1
  • 35
  • 41
  • First thanks for your answer. and yes, I know that. the version I have is 1.4.0 not 1.7 – mamdouh alramadan Aug 15 '13 at 20:42
  • Sorry, thought that this problem occoured after the upgrade. Do you have the file downloader/pearlib/php/pearmage.php? You could try to copy that directory from the original dowload zip file. It looks like that there are some files missing. – Vladimir Kerkhoff Aug 17 '13 at 13:17
  • hey, yes I have the file for sure. and yes I tried copying it from the original one also. it's the same problem. – mamdouh alramadan Aug 17 '13 at 21:49
0

Step by step, did you do the following commands before mage-setup command?

// run the following commands in Magento root directory
$ ./pear upgrade PEAR
$ ./pear update-channels

Also, and BIG also, get rid of cygwin first!