[英]Sencha Cmd build - Failed creating background process
我正在尝试使用 Cmd v5.0.0.160 构建 extjs5 应用程序。
我在我的 PATH var 上安装了 ruby2.0 和 sencha cmd。
这是我在运行sencha app build
时遇到的错误:
...
[INF] Capturing theme image
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: Failed creating background process
[ERR] at com.sencha.command.plugin.PluginManager.executeRe
[ERR] verseFirst(PluginManager.java:134)
[ERR]
[ERR] Total time: 9 seconds
[ERR] The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/build-impl.xml:326: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:239: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:240: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:111: com.sencha.exceptions.ExProcess: Failed creating background process
该应用程序在开发模式下工作正常(sencha app watch)。
因为它看起来像是关于主题的,所以我没有使用自定义主题,而是使用 ext-theme-neptune。
有没有人知道它是关于什么的? 我会很感激任何想法!
解决方案:
调试模式显示问题出在缺少目录Cmd/5.0.0.160/bin/linux-x64
中。 但是有Cmd/5.0.0.160/bin/linux
目录,因此将linux
软链接到linux-x64
解决了这个问题。
EXT5.0 + EXT CMD Vers 的问题相同。 5.1.2.52
(导致 EXT CMD 无法启动 RUBY)
它挂起错误:
[ERR] com.sencha.exceptions.ExProcess: Failed creating background process
我在 Windows 上的解决方案(这里是 Win7,64 位):
1)安装Ruby(在我的案例1.9.3中)
2) 将系统设置中的 %PATH% 设置为 Ruby 的 EXE。 (在我的情况下是 c:\ruby193\bin)
3)重启CMD窗口
4) 再试一次
这解决了我的问题。
这是 Sencha CMD 5 中一个非常烦人的错误——它们吞噬了它们启动的任何进程的输出。
或者,更准确地说,它们将输出路由到调试日志。 因此,如果您打开调试日志记录,您可以看到发生了什么。 试试sencha -d app build
- 准备好浏览大量的输出。
Sencha cmd 需要 ruby,这可能是它为什么不能创建某种(ruby)后台构建器的问题。
在 Linux 上:请确保已安装缺少的库(ruby、rubygems、freetype、fontconfig)
版本7.5.1
存在类似问题,导致相同的错误消息; 运行sencha -d upgrade
时,它会下载 ZIP,但无法在/tmp
目录中找到 shell 脚本。 所以我尝试手动下载它。 包含的版本号不是7.5.1
,但实际上是7.5.1.20
...这意味着安装程序刚刚损坏:
cd ./Downloads
wget http://cdn.sencha.com/cmd/7.5.1/no-jre/SenchaCmd-7.5.1-linux-amd64.sh.zip
unzip SenchaCmd-7.5.1-linux-amd64.sh.zip
./SenchaCmd-7.5.1.20-linux-amd64.sh
Starting Installer ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.