簡體   English   中英

Sencha Cmd build - 創建后台進程失敗

[英]Sencha Cmd build - Failed creating background process

我正在嘗試使用 Cmd v5.0.0.160 構建 extjs5 應用程序。

我在我的 PATH var 上安裝了 ruby​​2.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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM