2017-07-21 87 views
0

我在centos下安裝DSPACE 6 我安裝了所有必需的依賴項並執行了mvn包成功。安裝DSPACE6 - mirage2本地定製失敗

現在我遇到了這個問題:啓用和構建Mirage 2主題。 下一個命令工作正常:mvn包-Dmirage2.on = true 但是這個:mvn包-Dmirage2.on = true -Dmirage2.deps.included = false不起作用。下一個錯誤顯示:

<p>npm WARN package.json [email protected] No description<br> 
    npm WARN package.json [email protected] No repository field.<br> 
    npm WARN package.json [email protected] No README data<br> 
    npm WARN package.json [email protected] string_decoder is also the name of a node core module.<br> 
    npm WARN prefer global [email protected] should be installed with -g<br> 
    npm WARN cannot run in wd [email protected] bower install (wd=/home/dspace/dspace-6.1-release/dspace/modules/xmlui-mirage2/target/themes/Mirage2)<br> 
    [INFO] ------ (Mirage2) org.codehaus.mojo:exec-maven-plugin:1.4.0:exec<br> 
    Running &quot;copy:classic_mirage_color_scheme&quot; (copy) task<br> 
    Copied 1 file</p> 
<p>Running &quot;compass:prod&quot; (compass) task<br> 
    Warning: Command failed: /bin/sh: /usr/bin/compass: /usr/bin/ruby: bad interpreter: No such file or directory<br> 
    Use --force to continue.</p> 
<p>Aborted due to warnings.<br> 
</p> 
<p>Execution Time (2017-07-21 10:35:38 UTC-4)<br> 
    loading tasks     692ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 80%<br> 
    copy:classic_...color_scheme 33ms ▇▇ 4%<br> 
    compass:prod     137ms ▇▇▇▇▇ 16%<br> 
    Total 862ms</p> 
<p>[INFO] ------------------------------------------------------------------------<br> 
    [INFO] Reactor Summary:<br> 
    [INFO]<br> 
    [INFO] DSpace Parent Project .............................. SUCCESS [ 1.310 s]<br> 
    [INFO] DSpace Addon Modules ............................... SUCCESS [ 0.008 s]<br> 
    [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ 6.335 s]<br> 
    [INFO] DSpace XML-UI Mirage2 Theme :: Local Customisations FAILURE [ 8.991 s]<br> 
    [INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SKIPPED<br> 
    [INFO] DSpace JSP-UI :: Local Customizations .............. SKIPPED<br> 
    [INFO] DSpace RDF :: Local Customizations ................. SKIPPED<br> 
    [INFO] DSpace REST :: Local Customizations ................ SKIPPED<br> 
    [INFO] DSpace SWORD :: Local Customizations ............... SKIPPED<br> 
    [INFO] DSpace SWORD v2 :: Local Customizations ............ SKIPPED<br> 
    [INFO] DSpace SOLR :: Local Customizations ................ SKIPPED<br> 
    [INFO] DSpace OAI-PMH :: Local Customizations ............. SKIPPED<br> 
    [INFO] DSpace Assembly and Configuration .................. SKIPPED<br> 
    [INFO] ------------------------------------------------------------------------<br> 
    [INFO] BUILD FAILURE<br> 
    [INFO] ------------------------------------------------------------------------<br> 
    [INFO] Total time: 17.472 s<br> 
    [INFO] Finished at: 2017-07-21T10:35:39-04:00<br> 
    [INFO] Final Memory: 36M/355M<br> 
    [INFO] ------------------------------------------------------------------------<br> 
    [ERROR] Failed to execute goal com.soebes.maven.plugins:iterator-maven-plugin:0.3:iterator (default) on project xmlui-mirage2: Command execution failed.: Process exited with an error: 6 (Exit value: 6) -&gt; [Help 1]<br> 
    [ERROR]<br> 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br> 
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.<br> 
    [ERROR]<br> 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:<br> 
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException<br> 
    [ERROR]<br>`enter code here` 
    [ERROR] After correcting the problems, you can resume the build with the command<br> 
    [ERROR] mvn &lt;goals&gt; -rf :xmlui-mirage2</p>`enter code here` 

回答

0

以下警告讓我懷疑沒有安裝ruby。

Warning: Command failed: /bin/sh: /usr/bin/compass: /usr/bin/ruby: bad interpreter: No such file or directory<br> Use --force to continue.</p> 

你能檢查你的紅寶石安裝嗎?在命令行中執行以下命令時,會得到什麼輸出?

ruby -v 

如果上述命令沒有輸出ruby版本,那麼ruby沒有安裝。您可以通過在命令行中執行以下命令來安裝ruby:

curl -sSL https://get.rvm.io | bash -s stable --ruby