错误:“/ app / etc /”必须存在适当的工具工作magento 1.9 [英] ERROR: "/app/etc/" must exist for proper tool work magento 1.9

查看:260
本文介绍了错误:“/ app / etc /”必须存在适当的工具工作magento 1.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装magento 1.9的最新发布的安全补丁。我正在处理窗口系统。



我得到以下错误。

  D:\xampp\htdocs\magento> sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10 -08-18-32.sh 
错误:/ app / etc /必须存在才能正常工具工作。

我正在运行命令CMD和 SH





我也尝试过Git。但收到相同的错误



/ p>

在Linux上也不行。





任何人都可以告诉我什么是确切的问题以及如何解决。



感谢

解决方案

可以在Windows机器上使用PATCH_SUPEE- 5344_CE_1 .8.0.0_v1-2015-02-10-08-10-38.sh。



问题是:CURRENT_DIR = $ PWD_BIN /(第60行),并且$ PWD_BIN的值在同一个文件PWD_BIN = 中定义,其中pwd (第35行)我们需要替换此值。


  1. 打开bash

  2. 您当前的目录应该是根目录

  3. 运行命令'pwd'

  4. 它将给出当前目录的out路径:检查屏幕截图

  5. 复制此路径并编辑文件,第67行替换为



    CURRENT_DIR = $ PWD_BIN / to CURRENT_DIR = / d / xampp / htdocs / magento / / p>


使用同一个comm运行补丁 sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02- 10-08-10-38.sh



注意:请务必将'/ d / xampp / htdocs / magento /'目录根目录。



它会像一个魅力一样工作。


I am trying to install the newly release security patch for magento 1.9. I am working on window system.

and I am getting the following error.

D:\xampp\htdocs\magento>sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh
ERROR: "/app/etc/" must exist for proper tool work.

I am running command by CMD and SH is working fine too

I tried with Git too. but getting same error

Not working on Linux too

can anyone tell me what is the exact issue and how it could be fixed.

Thanks

解决方案

Able to make it works on windows machine as well for PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh.

Problem was: CURRENT_DIR=$PWD_BIN/ (line 60) and the value of $PWD_BIN is defined in same file PWD_BIN=which pwd (line 35) as which doesn't wok on windows so we will need to replace this value.

  1. Open bash
  2. Your current directory should be the root of magento.
  3. Run command 'pwd'
  4. It will give the out path of your current directory: Check screenshot
  5. Copy this path and edit file, on line 67 replace:

    CURRENT_DIR=$PWD_BIN/ to CURRENT_DIR=/d/xampp/htdocs/magento/

Run patch with same commnd sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh

Note: Make sure you replace '/d/xampp/htdocs/magento/' with your directory root.

and it will work like a charm!!

这篇关于错误:“/ app / etc /”必须存在适当的工具工作magento 1.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆