Re: [Haskell] problem installing Stack on Ubuntu Virtual Machine

109 views
Skip to first unread message

Michael Snoyman

unread,
Dec 3, 2016, 5:18:01 PM12/3/16
to Nikos Karagiannidis, haskell-stack, has...@haskell.org
Adding the haskell-stack mailing list, that's more focused than has...@haskell.org. Just leaving this message on that mailing list in case someone in the future wonders where this conversation is moving to.
Short answer: try adding the following to ~/.stack/config.yaml:

package-indices:
- name: Hackage
  download-prefix: https://s3.amazonaws.com/hackage.fpcomplete.com/package/
  http: https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz

Longer answer: most likely it wasn't completely stalled, just going _very_ slowly. We've had some reports from users - usually depending on geography - of slow downloads of the cabal file Git repo. The snippet above will switch you into an HTTPS download, which may be faster.

On Sat, Dec 3, 2016 at 10:21 PM, Nikos Karagiannidis <nikosh...@gmail.com> wrote:
Hi all,

I am tryning to install Stack on an 64-bit Ubuntu VM (Ubuntu 16.04.1 LTS).

I have followed strictly all the steps that are mentioned in:


the installation completes OK and I get the following stack version installed:

$ stack --version
Version 1.2.0, Git revision 241cd07d576d9c0c0e712e83d947e3dd64541c42 (4054 commits) x86_64 hpack-0.14.0

But, when I run "stack setup"  it tries to update package index and then it stucks there forever!

$ stack setup
Run from outside a project, using implicit global project config
Using resolver: lts-7.11 from implicit global project's config file: /home/nikos/.stack/global-project/stack.yaml
Updating package index Hackage (mirrored at https://github.com/commercialhaskell/all-cabal-hashes.git) ...

any suggestions?

thank you in advance!

Nikos


_______________________________________________
Haskell mailing list
Has...@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell


nikosh...@gmail.com

unread,
Dec 3, 2016, 6:04:59 PM12/3/16
to haskell-stack, mic...@snoyman.com
Thank you Michael, it now works like a charm!
Reply all
Reply to author
Forward
0 new messages