[ 
https://issues.apache.org/jira/browse/RANGER-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354436#comment-17354436
 ] 

Martin Tzvetanov Grigorov edited comment on RANGER-3300 at 5/31/21, 12:33 PM:
------------------------------------------------------------------------------

1) does not work because the binary is dynamically linked and it requires extra 
libraries to be pre-installed on the build machines:
  
{code:java}
$ ./target/phantomjs-2.1.1-linux-aarch64/bin/phantomjs --version 
./target/phantomjs-2.1.1-linux-aarch64/bin/phantomjs: error while loading 
shared libraries: libicui18n.so.55: cannot open shared object file: No such 
file or directory{code}
 Using Ubuntu's phantomjs (for aarch64) also fails with:
{code:java}
$ phantomjs --version 
qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt 
platform plugin "xcb" in "" even though it was found. This application failed 
to start because no Qt platform plugin could be initialized. Reinstalling the 
application may fix this problem. Available platform plugins are: eglfs, 
linuxfb, minimal, minimalegl, offscreen, vnc, xcb. PhantomJS has crashed. 
Please read the bug reporting guide at 
<http://phantomjs.org/bug-reporting.html> and file a bug report. fish: 
“phantomjs --version” terminated by signal SIGABRT (Abort)
  {code}


was (Author: mgrigorov):
1) does not work because the binary is dynamically linked and it requires extra 
libraries to be pre-installed on the build machines:
 
{code:java}
$ ./target/phantomjs-2.1.1-linux-aarch64/bin/phantomjs --version 
./target/phantomjs-2.1.1-linux-aarch64/bin/phantomjs: error while loading 
shared libraries: libicui18n.so.55: cannot open shared object file: No such 
file or directory{code}
 Using Ubuntu's phantomjs (for aarch64) also fails with:
{code:java}
$ phantomjs --version qt.qpa.xcb: could not connect to display qt.qpa.plugin: 
Could not load the Qt platform plugin "xcb" in "" even though it was found. 
This application failed to start because no Qt platform plugin could be 
initialized. Reinstalling the application may fix this problem. Available 
platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. 
PhantomJS has crashed. Please read the bug reporting guide at 
<http://phantomjs.org/bug-reporting.html> and file a bug report. fish: 
“phantomjs --version” terminated by signal SIGABRT (Abort)
  {code}

> Security Admin UI tests cannot run on Linux ARM64
> -------------------------------------------------
>
>                 Key: RANGER-3300
>                 URL: https://issues.apache.org/jira/browse/RANGER-3300
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 3.0.0
>            Reporter: Martin Tzvetanov Grigorov
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> security-admin-web UI tests fail on Linux ARM64 because they depend on 
> PhantomJS.
> PhantomJS is not maintained since 2018 and it does not provide binary for 
> linux/aarch64 CPU architecture.
>  
> I see two solutions:
> 1) use [https://repo1.maven.org/maven2/com/github/liusheng/phantomjs/2.1.1/]
> When building on Linux ARM64 add this library as dependency, unpack it, and 
> point to its aarch64 binary with PHANTOMJS_BIN=/path/to/the/unpacked/phantomjs
>  
> 2) in my opinion a better solution would be to use headless Chromium/Firefox 
> instead of PhantomJS
> As I said PhantomJS is not maintained since 2018 and since then there are 
> many changes and new features in the modern browsers



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to