[ https://issues.apache.org/jira/browse/MNG-7485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17555782#comment-17555782 ]
Michael Osipov commented on MNG-7485: ------------------------------------- As documented default on CentOS does not have this setting. Since you require this non default config, modify Jansi's library path or install Jansi into your loader's default PATH. > Failed To Load JANSI Native Library > ----------------------------------- > > Key: MNG-7485 > URL: https://issues.apache.org/jira/browse/MNG-7485 > Project: Maven > Issue Type: Bug > Components: Errors > Affects Versions: 3.8.5 > Reporter: Mark > Priority: Minor > > Hi All > Wondering if anyone else has experienced a similar issue. I have recently > upgraded to JDK 8 and Maven 3.8.5 and when i try mvn --version i get an error > as such: > {color:#505f79}Failed to load native > library:jansi-2.4.0-bbb285ac9ffab828-libjansi.so. The native library file at > /tmp/jansi-2.4.0-bbb285ac9ffab828-libjansi.so is not executable, make sure > that the directory is mounted on a partition without the noexec flag, or set > the jansi.tmpdir system property to point to a proper location. osinfo: > Linux/x86_64{color} > {color:#505f79}java.lang.UnsatisfiedLinkError: > /tmp/jansi-2.4.0-bbb285ac9ffab828-libjansi.so: > /tmp/jansi-2.4.0-bbb285ac9ffab828-libjansi.so: failed to map segment from > shared object: Operation not permitted{color} > {color:#505f79}Apache Maven 3.8.5 > (3599d3414f046de2324203b78ddcf9b5e4388aa0){color} > {color:#505f79}Maven home: /opt/apache-maven-3.8.5{color} > {color:#505f79}Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: > /opt/jdk1.8.0_251/jre{color} > {color:#505f79}Default locale: en_US, platform encoding: UTF-8{color} > {color:#505f79}OS name: "linux", version: "3.10.0-1160.49.1.el7.x86_64", > arch: "amd64", family: "unix"{color} > {color:#505f79}java version "1.8.0_251"{color} > {color:#505f79}Java(TM) SE Runtime Environment (build 1.8.0_251-b08){color} > {color:#505f79}Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed > mode){color} > I have also tried installing JANSI through yum and that does not seem to > resolve it. sudo yum -y install jansi-native > Any help or guidance on how to resolve this would be greatly appreciated. > CentOS Linux release 7.9.2009 (Core) > apache-maven-3.8.5 > jdk1.8.0_251 > -- This message was sent by Atlassian Jira (v8.20.7#820007)