Last active
October 31, 2018 07:13
-
-
Save mayanklahiri/2d631abf9d2cedf003a7e0000e981d87 to your computer and use it in GitHub Desktop.
Single-binary interpreter portability (Linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> node -v | |
v10.13.0 | |
> ls -lh $(which node) | |
-rwxr-xr-x 1 root root 38M Oct 30 17:20 /usr/local/bin/node | |
> docker run -v $(which node):/node --rm -it oraclelinux:6 /node -v | |
v10.13.0 | |
> docker run -v $(which node):/node --rm -it oraclelinux:7 /node -v | |
v10.13.0 | |
> docker run -v $(which node):/node --rm -it ubuntu:latest /node -v | |
v10.13.0 | |
> docker run -v $(which node):/node --rm -it fedora:latest /node -v | |
/node: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory | |
> docker run -v $(which node):/node --rm -it centos:latest /node -v | |
v10.13.0 | |
> docker run -v $(which node):/node --rm -it debian:latest /node -v | |
v10.13.0 | |
> docker run -v $(which node):/node --rm -it alpine:latest /node -v | |
standard_init_linux.go:190: exec user process caused "no such file or directory" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> python3 -V | |
Python 3.6.6 | |
> ls -lh $(which python3) | |
lrwxrwxrwx 1 root root 9 Jun 21 14:52 /usr/bin/python3 -> python3.6 | |
> docker run -v $(which python3):/python --rm -it oraclelinux:6 /python -V | |
/python: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by /python) | |
/python: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /python) | |
/python: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /python) | |
/python: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /python) | |
> docker run -v $(which python3):/python --rm -it oraclelinux:7 /python -V | |
/python: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /python) | |
> docker run -v $(which python3):/python --rm -it ubuntu:latest /python -V | |
/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory | |
> docker run -v $(which python3):/python --rm -it fedora:latest /python -V | |
Python 3.6.6 | |
> docker run -v $(which python3):/python --rm -it centos:latest /python -V | |
/python: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /python) | |
> docker run -v $(which python3):/python --rm -it debian:latest /python -V | |
/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory | |
> docker run -v $(which python3):/python --rm -it alpine:latest /python -V | |
standard_init_linux.go:190: exec user process caused "no such file or directory" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment