DSpace Mirage2 Errors

23 views
Skip to first unread message

Anis

unread,
Feb 3, 2020, 3:41:47 AM2/3/20
to DSpace Technical Support
Hi, I'm trying to compile DSpace 5 with the following command mvn package -Dmirage2.on=true

The error I get is the following,
ERROR:  Error installing ../.m2/repository/rubygems/ffi/1.12.2/ffi-1.12.2.gem:
 ERROR: Failed to build gem native extension.

     current directory: /source-dspace/dspace/modules/xmlui-mirage2/target/rubygems/gems/ffi-1.12.2/ext/ffi_c
 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -cp :/source-dspace/dspace/modules/xmlui-mirage2/target/test-classes:/source-dspace/dspace/modules/xmlui-mirage2/target/classes org.jruby.Main -r ./siteconf20200203-5637-783ftr.rb extconf.rb
 Error: Could not find or load main class org.jruby.Main

 extconf failed, exit code 1

this is crippling our deployment right now, so I'd be grateful of any help.

Anis

unread,
Feb 3, 2020, 3:51:29 AM2/3/20
to DSpace Technical Support
Seems like the newest ffi (1.12.2) is causing some problems, downgrading to 1.12.1 seems to work.

so adding the following lines to dspace/modules/xmlui-mirage2/pom.xml

<dependency>
    <groupId>rubygems</groupId>
    <artifactId>ffi</artifactId>
    <version>1.12.1</version>
    <type>gem</type>
</dependency>

- Anis
Reply all
Reply to author
Forward
0 new messages