Skip to content

stackage-setup should detect missing system dependencies #38

@snoyberg

Description

@snoyberg

One dependency we likely can't do anything about is libgmp10, though we should add a comment to the download page about it. Beyond that, I just noticed when running via Docker that there's a dependency of xz:

# ./stackage-setup
setup for snapshot: lts-2.5
Selecting ghc-7.8
downloading: ghc-7.8.4-x86_64-unknown-linux-deb7.tar.xz
Verified sha1: 11aec12d4bb27f6fa59dcc8535a7a3b3be8cb787
Decompressing XZ archive
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
stackage-setup: callProcess: tar "xJf" "ghc-7.8.4-x86_64-unknown-linux-deb7.tar.xz" (exit 2): failed

It would be better if stackage-setup started by checking for presence of all necessary executables. I'll continue adding error messages I see when installing via Docker.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions