-
Notifications
You must be signed in to change notification settings - Fork 13
alpine linux: Failed at the [email protected] postinstall script #16
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
Comments
Thanks for the report. Do you have a minimal Dockerfile which can reproduce this issue? |
Sure,
|
This one shows more errors at docker build time
|
I'm affected by this issue as well on:
|
@marijnz0r that looks like a different issue to me, it seems you're missing the |
@hdgarrood thanks for the quick response, it seems it might have to do something with a correct version of libtinfo, check out this issue: purescript/spago#104 |
Yes, you need to install the ncurses/libtinfo library, and/or build from source so that GHC can select the appropriate version. |
The weird thing is, I do have them installed:
How do I point the purescript install script to the correct libtinfo.so.5? |
This apparently fixed it for me:
I hope it helps someone. |
You can use |
I've dug into this a bit and I think it might be to do with alpine being based on musl rather than glibc or some other difference in how the system is set up. After running those commands, we get an error along the lines of |
@hdgarrood Should this be added to https://github.com/purescript/purescript/blob/master/INSTALL.md ? |
You’ll need to build the compiler yourself from source on alpine, as all of the prebuilt binaries rely on glibc. We do have instructions there for building from source already, but I don’t think we have the bandwidth to maintain instructions for alpine specifically. |
Trying to run
npm i -g purescript
On alpine:3.10.1 in a docker container.
node v10.16.0
npm v6.9.0
716 verbose stack Error: [email protected] postinstall:
install-purescript --purs-ver=0.13.2
716 verbose stack Exit status 1
716 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
716 verbose stack at EventEmitter.emit (events.js:198:13)
716 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
716 verbose stack at ChildProcess.emit (events.js:198:13)
716 verbose stack at maybeClose (internal/child_process.js:982:16)
716 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
Also attaching a log file:
2019-07-14T03_13_09_728Z-debug.log
The text was updated successfully, but these errors were encountered: