简体   繁体   English

Sencha Cmd build - 创建后台进程失败

[英]Sencha Cmd build - Failed creating background process

I'm trying to build extjs5 application with Cmd v5.0.0.160.我正在尝试使用 Cmd v5.0.0.160 构建 extjs5 应用程序。

I have ruby2.0 installed and sencha cmd on my PATH var.我在我的 PATH var 上安装了 ruby​​2.0 和 sencha cmd。

Here is the error that I get when running sencha app build :这是我在运行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

The application is working OK in development mode (sencha app watch).该应用程序在开发模式下工作正常(sencha app watch)。

Since it looks like it's about themes, I'm not using custom theme but ext-theme-neptune.因为它看起来像是关于主题的,所以我没有使用自定义主题,而是使用 ext-theme-neptune。

Does anybody have a clue what is it about?有没有人知道它是关于什么的? I will appreciate any idea!我会很感激任何想法!

Solution:解决方案:

The debug mode showed that the problem was in missing directory Cmd/5.0.0.160/bin/linux-x64 .调试模式显示问题出在缺少目录Cmd/5.0.0.160/bin/linux-x64中。 However there was Cmd/5.0.0.160/bin/linux dir, therefor soft-linking linux to linux-x64 fixed the issue.但是有Cmd/5.0.0.160/bin/linux目录,因此将linux软链接到linux-x64解决了这个问题。

Same issues with EXT5.0 + EXT CMD Vers. EXT5.0 + EXT CMD Vers 的问题相同。 5.1.2.52 5.1.2.52

(causing EXT CMD cannot start RUBY) (导致 EXT CMD 无法启动 RUBY)

It hangs with Error:它挂起错误:

[ERR] com.sencha.exceptions.ExProcess: Failed creating background process

My Solution on Windows (Here Win7, 64Bit):我在 Windows 上的解决方案(这里是 Win7,64 位):

1) install Ruby (in my Case 1.9.3) 1)安装Ruby(在我的案例1.9.3中)

2) Set %PATH% in System Settings to Ruby´s EXE. 2) 将系统设置中的 %PATH% 设置为 Ruby 的 EXE。 (in my case c:\ruby193\bin) (在我的情况下是 c:\ruby193\bin)

3) Restart CMD window 3)重启CMD窗口

4) Try again 4) 再试一次

That solves my problem.这解决了我的问题。

It's a really annoying bug in Sencha CMD 5 - they swallow the output of any processes they launch.这是 Sencha CMD 5 中一个非常烦人的错误——它们吞噬了它们启动的任何进程的输出。

Or, more accurately, they route the output to the debug logs.或者,更准确地说,它们将输出路由到调试日志。 So you can see what's going on if you turn debug logging on.因此,如果您打开调试日志记录,您可以看到发生了什么。 Try sencha -d app build - just be prepared to trawl through a lot of output.试试sencha -d app build - 准备好浏览大量的输出。

Sencha cmd 需要 ruby​​,这可能是它为什么不能创建某种(ruby)后台构建器的问题。

在 Linux 上:请确保已安装缺少的库(ruby、rubygems、freetype、fontconfig)

A similar issue exists with version 7.5.1 , which is resulting in the same error message;版本7.5.1存在类似问题,导致相同的错误消息; when running sencha -d upgrade it downloads the ZIP, but then it cannot locate the shell script within the /tmp directory.运行sencha -d upgrade时,它​​会下载 ZIP,但无法在/tmp目录中找到 shell 脚本。 So I tried to manually download it.所以我尝试手动下载它。 The version number contained isn't 7.5.1 , but it's actually 7.5.1.20 ...which means the installer is just broken:包含的版本号不是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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM