Last active
August 31, 2018 07:33
-
-
Save rolfschr/f5289ceb59881bbc2b21a7384d4c2d59 to your computer and use it in GitHub Desktop.
Stack GHC install failes on Ubunut 18.04
This file contains hidden or 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
$ curl -sSL https://get.haskellstack.org/ | sh | |
Detected Linux distribution: ubuntu | |
Installing dependencies... | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
g++ is already the newest version (4:7.3.0-3ubuntu2). | |
gcc is already the newest version (4:7.3.0-3ubuntu2). | |
libc6-dev is already the newest version (2.27-3ubuntu1). | |
libffi-dev is already the newest version (3.2.1-8). | |
libgmp-dev is already the newest version (2:6.1.2+dfsg-2). | |
make is already the newest version (4.1-9.1ubuntu1). | |
xz-utils is already the newest version (5.2.2-1.3). | |
zlib1g-dev is already the newest version (1:1.2.11.dfsg-0ubuntu2). | |
git is already the newest version (1:2.17.1-1ubuntu0.1). | |
gnupg is already the newest version (2.2.4-1ubuntu1.1). | |
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. | |
Using generic bindist... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 621 0 621 0 0 783 0 --:--:-- --:--:-- --:--:-- 783 | |
100 13.3M 100 13.3M 0 0 196k 0 0:01:09 0:01:09 --:--:-- 208k | |
Installing Stack to: /usr/local/bin/stack... | |
------------------------------------------------------------------------------- | |
Stack has been installed to: /usr/local/bin/stack | |
$ stack update | |
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/ | |
Downloading root | |
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/ | |
Downloading timestamp | |
Downloading snapshot | |
Downloading mirrors | |
Cannot update index (no local copy) | |
Downloading index | |
Updated package index downloaded | |
Update complete | |
$ stack setup --verbose | |
Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2 | |
2018-08-31 09:13:59.285393: [debug] Checking for project config at: /home/rolf/src/hfmt/stack.yaml | |
@(src/Stack/Config.hs:850:9) | |
2018-08-31 09:13:59.285580: [debug] Loading project config file stack.yaml | |
@(src/Stack/Config.hs:876:13) | |
2018-08-31 09:13:59.287166: [debug] Decoding build plan from: /home/rolf/.stack/build-plan/lts-12.8.yaml | |
@(src/Stack/Snapshot.hs:164:5) | |
2018-08-31 09:13:59.287271: [debug] Trying to decode /home/rolf/.stack/build-plan-cache/lts-12.8.cache | |
@(src/Stack/Snapshot.hs:156:32) | |
2018-08-31 09:13:59.292942: [debug] Success decoding /home/rolf/.stack/build-plan-cache/lts-12.8.cache | |
@(src/Stack/Snapshot.hs:156:32) | |
2018-08-31 09:13:59.293219: [debug] Run process: /sbin/ldconfig -p | |
@(src/Stack/Setup.hs:580:22) | |
2018-08-31 09:13:59.301056: [debug] Process finished in 8ms: /sbin/ldconfig -p | |
@(src/Stack/Setup.hs:580:22) | |
2018-08-31 09:13:59.301352: [debug] Found shared library libtinfo.so.5 in 'ldconfig -p' output | |
@(src/Stack/Setup.hs:589:29) | |
2018-08-31 09:13:59.301786: [debug] Did not find shared library libtinfo.so.6 | |
@(src/Stack/Setup.hs:603:38) | |
2018-08-31 09:13:59.302062: [debug] Did not find shared library libncursesw.so.6 | |
@(src/Stack/Setup.hs:603:38) | |
2018-08-31 09:13:59.302171: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output | |
@(src/Stack/Setup.hs:589:29) | |
2018-08-31 09:13:59.302294: [debug] Did not find shared library libgmp.so.3 | |
@(src/Stack/Setup.hs:603:38) | |
2018-08-31 09:13:59.302335: [debug] Potential GHC builds: standard | |
@(src/Stack/Setup.hs:632:9) | |
2018-08-31 09:13:59.302381: [debug] Found already installed GHC builds: | |
@(src/Stack/Setup.hs:458:13) | |
2018-08-31 09:14:00.232314: [debug] Trying to setup GHC build: standard | |
@(src/Stack/Setup.hs:956:9) | |
2018-08-31 09:14:00.232478: [info] Preparing to install GHC to an isolated location. | |
@(src/Stack/Setup.hs:890:5) | |
2018-08-31 09:14:00.232553: [info] This will not interfere with any system-level installation. | |
@(src/Stack/Setup.hs:899:5) | |
2018-08-31 09:14:00.233186: [debug] Downloading from https://github.com/commercialhaskell/ghc/releases/download/ghc-8.4.3-release/ghc-8.4.3-x86_64-deb8-linux.tar.xz to /home/rolf/.stack/programs/x86_64-linux/ghc-8.4.3.tar.xz ... | |
@(src/Stack/Setup.hs:1525:5) | |
2018-08-31 09:14:00.233299: [debug] Will check against sha1 hash: ece4a75cefa21992683266a1f8fad995dc75245f | |
@(src/Stack/Setup.hs:1538:13) | |
2018-08-31 09:14:00.233401: [debug] Will check against sha256 hash: 30a402c6d4754a6c020e0547f19ae3ac42e907e35349aa932d347f73e421a8e2 | |
@(src/Stack/Setup.hs:1538:13) | |
2018-08-31 09:14:00.233519: [debug] Downloading /commercialhaskell/ghc/releases/download/ghc-8.4.3-release/ghc-8.4.3-x86_64-deb8-linux.tar.xz | |
@(src/Network/HTTP/Download/Verified.hs:246:9) | |
ghc-8.4.3: 144.83 MiB / 144.83 MiB (100.00%) downloaded... | |
/home/rolf/.stack/programs/x86_64-linux/ghc-8.4.3.tar.xz.tmp: renameFile:renamePath:rename: does not exist (No such file or directory) | |
$ echo $? | |
1 | |
$ ll /home/rolf/.stack/programs/x86_64-linux/ghc-8.4.3.* | |
-rw-rw-r-- 1 rolf rolf 145M Aug 31 09:23 /home/rolf/.stack/programs/x86_64-linux/ghc-8.4.3.tar.xz | |
/home/rolf/.stack/programs/x86_64-linux/ghc-8.4.3.temp: | |
total 4.0K | |
drwxrwxr-x 4 rolf rolf 4.0K Aug 31 09:21 ghc-8.4.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment