I am unable to run stack install --reinstall
any more because it fails with
[akegalj@notebook cardano-sl]$ stack setup --reinstall
trace: fetching nixpkgs
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-tinfo6-8.0.2.
Running /home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2.temp/ghc-8.0.2/configure --prefix=/home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2/ in directory /home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2.temp/ghc-8.0.2/ exited with ExitFailure 1
checking for path to top of build tree... /home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2.temp/ghc-8.0.2
Build platform inferred as: x86_64-unknown-linux
Host platform inferred as: x86_64-unknown-linux
Target platform inferred as: x86_64-unknown-linux
GHC build : x86_64-unknown-linux
GHC host : x86_64-unknown-linux
GHC target : x86_64-unknown-linux
checking for perl... no
You must install perl before you can continue
Perhaps it is already installed, but not in your PATH?
Error: Error encountered while configuring GHC with
/home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2.temp/ghc-8.0.2/configure --prefix=/home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2/
run in /home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2.temp/ghc-8.0.2/
The following directories may now contain files, but won't be used by stack:
- /home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2.temp/
- /home/akegalj/.stack/programs/x86_64-linux-nix/ghc-tinfo6-8.0.2/
and perl is obviously there
[akegalj@notebook cardano-sl]$ whereis perl
perl: /usr/bin/perl /usr/share/man/man1/perl.1perl.gz
archlinux.com says:
[akegalj@notebook ~]$ pacman -Qqo '/usr/lib/perl5/vendor_perl'
error: failed to read file '/usr/lib/perl5/vendor_perl': No such file or directory
should be rebuild, but the list is not there.
So I guess I have to somehow rebuild:
[akegalj@notebook cardano-sl]$ pacman -Qqo '/usr/lib/perl5/5.26/'
imagemagick
irssi
libproxy
perl
perl-algorithm-diff
perl-encode-locale
perl-error
perl-file-basedir
perl-file-listing
perl-file-pushd
perl-file-which
perl-html-parser
perl-html-tagset
perl-http-cookies
perl-http-daemon
perl-http-date
perl-http-message
perl-http-negotiate
perl-io-html
perl-ipc-system-simple
perl-libwww
perl-lwp-mediatypes
perl-net-http
perl-regexp-common
perl-try-tiny
perl-uri
perl-www-robotrules
this ^ list. How did you recompile perl libs ?
locally i have installed this version of ghc:
[akegalj@notebook ~]$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.1
but I can't build cardano because I am running into:
...
Process exited with code: ExitFailure 1
Logs have been written to: /home/akegalj/projects/serokell/cardano-sl/.stack-work/logs/base58-bytestring-0.1.0.log
Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: unknown RTS option: --ghc-options
Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: unknown RTS option: --ghc-options
Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: unknown RTS option: --ghc-options
...