Skip to content

Issue installing Node on 'Deploy Linux' on Android #1304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
siordache94 opened this issue May 28, 2018 · 9 comments
Closed

Issue installing Node on 'Deploy Linux' on Android #1304

siordache94 opened this issue May 28, 2018 · 9 comments

Comments

@siordache94
Copy link

siordache94 commented May 28, 2018

  • Node.js Version: should be "8.11.2"
  • OS: Linux localhost 4.4.78-perf+ Update README for help #1 SMP PREEMPT Fri Apr 20 12:25:33 CST 2018 aarch64 GNU/Linux
  • Scope (install, code, runtime, meta, other?): install
  • Module (and version) (if relevant): not relevant

Hi,

I have downloaded node-v8.11.2-linux-arm64
I executed tar -C /usr/local --strip-components 1 -xzf node-v8.1.1-linux-x64.tar.gz from stackoverflow
and this is my problem :

root@localhost:/usr/local# ls -l bin/node
-rwxr-xr-x. 1 root root 35203592 May 16 05:25 bin/node
root@localhost:/usr/local# file bin/node
bin/node: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=59ee95ef38bbe8259a7c2478b67f45ca9facde8b, not stripped
root@localhost:/usr/local# ls -l bin/node
-rwxr-xr-x. 1 root root 35203592 May 16 05:25 bin/node
root@localhost:/usr/local# file bin/node
bin/node: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=59ee95ef38bbe8259a7c2478b67f45ca9facde8b, not stripped
root@localhost:/usr/local# ./bin/node
bash: ./bin/node: No such file or directory

Thanks in advance

@gireeshpunathil
Copy link
Member

do you have strace in your system? if so can you issue: strace -f ./bin/node and paste the output?

@siordache94
Copy link
Author

siordache94 commented May 29, 2018

@gireeshpunathil

root@localhost:/usr/local# strace -f ./bin/node
execve("./bin/node", ["./bin/node"], [/* 18 vars */]) = -1 ENOENT (No such file or directory)
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
getpid()                                = 23252
exit_group(1)                           = ?
+++ exited with 1 +++

@gireeshpunathil
Copy link
Member

what does getfacl -a ./bin/node show? looks like an access issue. are you root?

@siordache94
Copy link
Author

@gireeshpunathil

root@localhost:/usr/local# getfacl -a ./bin/node
# file: bin/node
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

my "ls -l" gave you the same information no ?
and as you can see I'm root

@gireeshpunathil
Copy link
Member

@siordache94 - thanks. a dot at the end of -rwxr-xr-x. and the wrong error message (No such file or directory) made me look at the direction of access control issues.

Now since that does not seem to be the case, barring the word meaning of the error message, it could be due to Exec format error (loader expects a file format for the binary but the actual is something else). As Linux here is an emulation on top of Android, does it adhere to the underlying architecture (ARM) or it hides that and provide an X64 binary interface, is something I don't know.

But which Node.js binary needs to be used will depend on that answer.

Let us ask @nodejs/build

@Trott
Copy link
Member

Trott commented May 31, 2018

I'm pretty sure this would be an edge case as we don't have official support for Android. (Would love to have it, but it would require someone championing it and doing a lot of work, not to mention figuring out how to get some Android devices into Jenkins.) I don't even think we have unofficial builds for Android available.

One Collaborator who took an interest in Android is @eljefedelrodeodeljefe. Let's see if pinging him gets us anywhere.

@gireeshpunathil
Copy link
Member

ping @eljefedelrodeodeljefe to see if we get an insight.

@gireeshpunathil
Copy link
Member

@siordache94 - is this still outstanding?

@gireeshpunathil
Copy link
Member

inactive, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants