Stack: Stack installation fails on OSX Sierra

Created on 5 Jan 2017  ·  2Comments  ·  Source: commercialhaskell/stack

$ curl -sSL https://get.haskellstack.org/ | sh
Using generic bindist...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   605    0   605    0     0    659      0 --:--:-- --:--:-- --:--:--   659
100 12.2M  100 12.2M    0     0  2330k      0  0:00:05  0:00:05 --:--:-- 3331k
Password:
install: /usr/local/bin/stack: No such file or directory

-------------------------------------------------------------------------------

Stack has been installed to: /usr/local/bin/stack

NOTE: You may need to run 'xcode-select --install' to set
      up the Xcode command-line tools, which Stack uses.

WARNING: '/Users/admin/.local/bin' is not on your PATH.
    For best results, please add it to the beginning of PATH in your profile.

Workaround: sudo mkdir /usr/local/bin

bug

Most helpful comment

This for who came here with the same issue with Ubuntu : However curl -sSL https://get.haskellstack.org/ | sh will get the job done with warning /home/user/.local/bin is not on your path. For best results, please add it to the beginning of PATH in your profile. Warning in fairly clear just add PATH to your profile which is .bashrc which can be found at ~/.bashrc add this export PATH="/home/user_name/.local/bin:$PATH"

All 2 comments

Clearly also needs better error checking, since it shouldn't say "Stack has been installed..." after installing it failed.

This for who came here with the same issue with Ubuntu : However curl -sSL https://get.haskellstack.org/ | sh will get the job done with warning /home/user/.local/bin is not on your path. For best results, please add it to the beginning of PATH in your profile. Warning in fairly clear just add PATH to your profile which is .bashrc which can be found at ~/.bashrc add this export PATH="/home/user_name/.local/bin:$PATH"

Was this page helpful?
0 / 5 - 0 ratings