Установите DSPACE6 - ошибка локальных настроек mirage2
Я устанавливаю DSPACE под centos 6 Я установил все необходимые зависимости и успешно выполнил пакет 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 "copy:classic_mirage_color_scheme" (copy) task<br>
Copied 1 file</p>
<p>Running "compass:prod" (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) -> [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 <goals> -rf :xmlui-mirage2</p>`enter code here`
1 ответ
Следующее предупреждение заставляет меня подозревать, что 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