You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2022/03/22 17:05:00 UTC
[jira] [Resolved] (GROOVY-10541) groovysh can not launch when running on Oracle Linux 8.5(ARM)
[ https://issues.apache.org/jira/browse/GROOVY-10541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun resolved GROOVY-10541.
---------------------------------
Fix Version/s: 5.0.0-alpha-1
Assignee: Daniel Sun
Resolution: Fixed
Fixed by https://github.com/apache/groovy/commit/a2b1157dd1c22fc5fb1cea97fa76a77cba6d51f8
{code:java}
[root@oc3 groovy-5.0.0-SNAPSHOT]# groovysh
Mar 22, 2022 5:01:07 PM org.apache.groovy.groovysh.Main setTerminalType
WARNING: ansi will be disabled because an error occurred while installing ansi: Could not load library. Reasons: [no jansi in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, /tmp/libjansi-64-5829566961227924233.so: /tmp/libjansi-64-5829566961227924233.so: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64 .so on a AARCH64 platform)]
Mar 22, 2022 5:01:07 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.apache.groovy.groovysh.Main (file:/root/lab/groovy-5.0.0-SNAPSHOT/lib/groovy-groovysh-5.0.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.apache.groovy.groovysh.Main
WARNING: System::setSecurityManager will be removed in a future release
Groovy Shell (5.0.0-SNAPSHOT, JVM: 17.0.2)
Type ':help' or ':h' for help.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
groovy:000> println 'Hello, world!'
Hello, world!
===> null
groovy:000>
{code}
> groovysh can not launch when running on Oracle Linux 8.5(ARM)
> -------------------------------------------------------------
>
> Key: GROOVY-10541
> URL: https://issues.apache.org/jira/browse/GROOVY-10541
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 4.0.1
> Reporter: Daniel Sun
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 5.0.0-alpha-1, 4.0.2
>
>
>
> {code}
> [root@oc3 ~]# groovysh
> java.lang.reflect.InvocationTargetException
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:112)
> at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
> Caused by: java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, /tmp/libjansi-64-14886157734275068417.so: /tmp/libjansi-64-14886157734275068417.so: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64 .so on a AARCH64 platform)]
> at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182)
> at org.fusesource.hawtjni.runtime.Library.load(Library.java:140)
> at org.fusesource.jansi.internal.CLibrary.<clinit>(CLibrary.java:42)
> at org.fusesource.jansi.AnsiConsole.wrapOutputStream(AnsiConsole.java:48)
> at org.fusesource.jansi.AnsiConsole.<clinit>(AnsiConsole.java:38)
> at java.base/java.lang.Class.forName0(Native Method)
> at java.base/java.lang.Class.forName(Class.java:467)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.lambda$createCallStaticSite$2(CallSiteArray.java:64)
> at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
> at org.codehaus.groovy.vmplugin.v8.Java8.doPrivileged(Java8.java:628)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:62)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:155)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:46)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
> at org.apache.groovy.groovysh.Main.installAnsi(Main.groovy:249)
> at org.apache.groovy.groovysh.Main.setTerminalType(Main.groovy:235)
> at org.apache.groovy.groovysh.Main.main(Main.groovy:120)
> ... 6 more
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)