dsbiw2911188 2017-03-11 18:47
浏览 263
已采纳

yii2“$”不是内部或外部命令,可执行程序或批处理文件。 错误

I am trying to minimize the assets in yii2 test project, but with no result. I used this tutorial: HOW TO MINIMIZE THE ASSETS IN YII 2 FRAMEWORK

I use openserver. In assets directory I created a file named compression. In that file I put yuicompressor.jar(YUI compressor) and compiler.jar(Google Closure compiler). files screenshot

After that, I tried to create configuration file for the compressor, running this command in the openserver console(being in the project root):

$ ./yii asset/template assets/compression/config.php

But here I get the following error:

"$" Is not internal or external
Command, executable program or batch file.

Please help with this!

  • 写回答

1条回答 默认 最新

  • dongyuqi3808 2017-03-14 07:02
    关注

    This is probably a environmental variable / path problem. Try the same command with php in front, possibly without the ./. Could also be that you need to use the entire path to php, like /path/to/php yii asset/template assets/compression/config.php.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度