eshost-cli icon indicating copy to clipboard operation
eshost-cli copied to clipboard

Unable to install GraalJS

Open jessealama opened this issue 3 years ago • 0 comments

(I'm not sure if this is an issue with eshost-cli or with GraalJS. If this is a Graal issue, I'm happy to move the discussion over there.)

I just tried to install GraalJS using eshost on a fresh Ubuntu 22.04 LTS box. I was able to install a few engines, but not GraalJS 21.3.3.1, the version available at the time. Here are the results:

$ npm install esvu -g
# snip successful install output
$ which esvu
/usr/local/bin/esvu
$ esvu --engines=all
esvu ❯ version 1.2.9
# snip
GraalJS ❯ Checking version...
GraalJS ❯ Installing version 21.3.3.1
GraalJS ❯ Downloading https://github.com/oracle/graaljs/releases/download/vm-21.3.3.1/graaljs-21.3.3.1-linux-amd64.tar.gz
GraalJS ❯ Extracting /tmp/esvu-ddf2ac3d55c5d5465e2a64c5ee2ee159
GraalJS ❯ Installing /tmp/esvu-ddf2ac3d55c5d5465e2a64c5ee2ee159-extracted
esvu ✖ Fatal error installing GraalJS [Error: ENOENT: no such file or directory, copyfile '/tmp/esvu-ddf2ac3d55c5d5465e2a64c5ee2ee159-extracted/graaljs-21.3.3.1-linux-amd64/lib/libjsvm.so' -> '/root/.esvu/engines/graaljs/graaljs-21.3.3.1-linux-amd64/lib/libjsvm.so'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'copyfile',
  path: '/tmp/esvu-ddf2ac3d55c5d5465e2a64c5ee2ee159-extracted/graaljs-21.3.3.1-linux-amd64/lib/libjsvm.so',
  dest: '/root/.esvu/engines/graaljs/graaljs-21.3.3.1-linux-amd64/lib/libjsvm.so'
}

Somehow we're trying to install a shared library that doesn't exist. I can confirm, though, that Graal's js binary is available, sitting uninstalled in that temprary directory:

$ ls /tmp/esvu-ddf2ac3d55c5d5465e2a64c5ee2ee159-extracted/graaljs-21.3.3.1-linux-amd64/
bin  LICENSE.txt  native-image.properties  README.md  release  THIRD_PARTY_LICENSE.txt
$ /tmp/esvu-ddf2ac3d55c5d5465e2a64c5ee2ee159-extracted/graaljs-21.3.3.1-linux-amd64/bin/js
> "2" + "2" - "2"
20

Any idea what might be going on?

jessealama avatar Oct 17 '22 09:10 jessealama