linux - 安装 DSPACE6 - mirage2 本地自定义失败

标签 linux centos dspace

我在centos 6下安装DSPACE 我已经安装了所有必需的依赖项并成功执行了 mvn 包。

现在我在这一步遇到了问题:启用和构建 Mirage 2 主题。 下一个命令工作正常:mvn package -Dmirage2.on=true 但是这个: mvn package -Dmirage2.on=true -Dmirage2.deps.included=false 不起作用。下一个错误显示:

<p>npm WARN package.json Mirage2@0.1.2 No description<br>
  npm WARN package.json Mirage2@0.1.2 No repository field.<br>
  npm WARN package.json Mirage2@0.1.2 No README data<br>
  npm WARN package.json string_decoder@1.0.3 string_decoder is also the name of a node core module.<br>
  npm WARN prefer global coffee-script@1.10.0 should be installed with -g<br>
  npm WARN cannot run in wd Mirage2@0.1.2 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`

最佳答案

下面的警告让我怀疑没有安装 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​​ 安装吗?在命令行中执行以下命令会得到什么输出?

ruby -v

如果上面的命令没有输出ruby版本,那么ruby没有安装。您可以通过在命令行中执行以下命令来安装ruby:

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

关于linux - 安装 DSPACE6 - mirage2 本地自定义失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45240941/

相关文章:

java - 如何从 DSpace-CRIS 中的不同元数据中收集有关 CHRIS 实体的数据?

java - 为 DS-2542(XOAI 日期粒度)修补 Dspace 不会导致行为发生变化

log4j - 在管理任务中写入自己的日志文件

linux - ldd 报告的库是否解析输入库的所有 undefined reference ?

linux - 如何禁用 X (Xlib) 中的自动鼠标中键事件?

python - celeryd 已死但 subsys 已锁定

c# - 如何在 CentOS 上的 .Net-Core 2 中忽略 SSL 证书验证

python - 无法在 CentOS v8 上通过 yum 安装 mod_wsgi

r - 在 R 上运行 CellNet 时未加载 dyld

linux - 在端口 8080 上阻止对 Jira 的访问