Problem with install DSpace V6.3/Mirage2 - ¿compass?

253 views
Skip to first unread message

Jose Texier

unread,
Aug 21, 2021, 1:53:22 PM8/21/21
to DSpace Technical Support
Hello everybody

I'm trying to install DSpace V6.3 on my "production server" with the Mirage2 theme but I get a problem. In the installation of the "production server" without Mirage 2 I had no problems.

The installation in the "development server" went well, both in the DSpace with Mirage2 and the normal one.

The error that I get on the production server is this:
Running "compass: prod" (compass) task
Warning: Command failed: compass --version
/usr/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe ': can't find gem compass (> = 0.a) with executable compass (Gem :: GemNotFoundException)
        from /usr/lib/ruby/2.7.0/rubygems.rb:294:in `activate_bin_path '
        from/usr/local/bin/compass: 23: in `<main> '
 Use --force to continue.

Aborted due to warnings.
...
...
[INFO] ----------------------------------------------- -------------------------
[INFO] Reactor Summary for DSpace Parent Project 6.3:
[INFO]
[INFO] DSpace Parent Project .............................. SUCCESS [0.660 s]
[INFO] DSpace Services Framework :: API and Implementation SUCCESS [2,503 s]
[INFO] DSpace Kernel :: API and Implementation ............ SUCCESS [9,842 s]
[INFO] DSpace Addon Modules ............................... SUCCESS [0.005 s]
[INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [0.241 s]
[INFO] DSpace XML-UI (Manakin) ............................ SUCCESS [4.729 s]
[INFO] DSpace XML-UI Mirage2 Theme ........................ SUCCESS [0.127 s]
[INFO] DSpace XML-UI Mirage2 Theme :: Local Customizations FAILURE [20,789 s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SKIPPED
[INFO] DSpace JSP-UI ...................................... SKIPPED
...
...
[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]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf: xmlui-mirage2



The command in linux that I am using is:
mvn clean package -Dmirage2.on=true -Dmirage2.deps.included=false

And the versions of the packages I have are:
nvm --version
0.38.0
npm -v
7.20.3
node -v
V16.6.2
nodejs -v
V10.19.0
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
bower 1.8.12
Sass 3.3.14 (Maptastic Maple)
Compass 1.0.1 (Polaris)
grunt-cli v1.4.3
grunt v1.0.4

The pom.xml in "dspace/modules/xmlui-mirage2/pom.xml" has this:
        <sass.version>3.3.14</sass.version>
        <compass.version>1.0.1</compass.version>
        <node.version>16.6.2</node.version>
        <npm.version>7.20.3</npm.version>



Also try installing with Dmirage2.deps.included to true:
mvn clean package -Dmirage2.on=true -Dmirage2.deps.included=false

And I get this error:
...
...
[WARNING] ERROR: Error installing /home/ubuntu/.m2/repository/rubygems/chunky_png/1.4.0/chunky_png-1.4.0.gem:
[WARNING] chunky_png requires Ruby version> = 2.0.
[INFO] Successfully installed rb-fsevent-0.11.0
[WARNING] ERROR: Error installing /home/ubuntu/.m2/repository/rubygems/rb-inotify/0.10.1/rb-inotify-0.10.1.gem:
[WARNING] rb-inotify requires Ruby version> = 2.2.
[WARNING] ERROR: Error installing /home/ubuntu/.m2/repository/rubygems/ffi/1.15.3/ffi-1.15.3.gem:
[WARNING] ffi requires Ruby version> = 2.3.
[INFO] 6 gems installed


Any suggestions to be able to do the installation on the "production server" for DSpace V6.3 with Mirage2.

Thanks.
Jose Texier

Jose Texier

unread,
Sep 2, 2021, 10:56:55 PM9/2/21
to DSpace Technical Support
Hi there. I was able to solve the problem.

I had to do the manual installation of all the software components with the versions indicated in the pom.xml

Thanks

Sengo Muramasa

unread,
Sep 17, 2021, 6:52:11 AM9/17/21
to DSpace Technical Support
I have the same problem and this is what I get:
[WARNING]
[WARNING] You can use the sass-convert command to automatically fix most cases.
[WARNING]
[WARNING] DEPRECATION WARNING on line 92 of /usr/local/gery-5.10-src/dspace/modules/xmlui-mirage2/target/rubygems/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss:
[WARNING] #{} interpolation near operators will be simplified in a future version of Sass.
[WARNING] To preserve the current behavior, use quotes:
[WARNING]
[WARNING]   unquote('"$ie6-"#{$legacy-support-for-ie6} "$ie7-"#{$legacy-support-for-ie7} "$ie8-"#{$legacy-support-for-ie8}')
[WARNING]
[WARNING] You can use the sass-convert command to automatically fix most cases.
[WARNING]
[INFO]     error styles/main.scss (Line 16: File to import not found or unreadable: ../vendor/bootstrap-sass-official/assets/stylesheets/bootstrap.
[INFO] Load paths:
[INFO]   Compass::SpriteImporter
[INFO]   /usr/local/gery-5.10-src/dspace/modules/xmlui-mirage2/target/themes/MirageProjekat/styles
[INFO]   /usr/local/gery-5.10-src/dspace/modules/xmlui-mirage2/target/rubygems/gems/compass-core-1.0.3/stylesheets)
[INFO] Compilation failed in 1 files.
[WARNING]
[INFO]
[ERROR] PluginManagerException:
org.apache.maven.plugin.PluginExecutionException: Execution null of goal de.saumya.mojo:gem-maven-plugin:1.0.6:exec failed: Java returned: 1
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
    at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo (ExecutorMojo.java:302)
    at com.soebes.maven.plugins.iterator.ExecutorMojo.execute (ExecutorMojo.java:235)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.tools.ant.BuildException: Java returned: 1

How did you install those dependencies manually?
Reply all
Reply to author
Forward
0 new messages