plutus-starter
plutus-starter copied to clipboard
devcontainer cabal update && cabal install fails with error code 127
Failed to build prettyprinter-configurable-0.1.0.0 (which is required by
exe:plutus-starter-pab from plutus-starter-0.1.0.0). The failure occurred
during the configure step. The build process terminated with exit code 127
inputoutput/plutus-starter-devcontainer:latest using the latest plutus-starter
docker mem = 30 GB
It's hard to tell anything without more logs unfortunately. Maybe it misses cabal update
at first or some library is not installed.
The modern version of Haskell VSCode plugin requires ghcup
to be installed in the devcontainer.
However, it is not installed, and the installation fails (I use the --insecure
option just to skip setting up certificates):
[devcontainer]$ curl --insecure --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
Welcome to Haskell!
This script will download and install the following binaries:
* ghcup - The Haskell toolchain installer
* ghc - The Glasgow Haskell Compiler
* cabal - The Cabal build tool for managing Haskell software
* stack - (optional) A cross-platform program for developing Haskell projects
* hls - (optional) A language server for developers to integrate with their editor/IDE
ghcup installs only into the following directory,
which can be removed anytime:
/home/plutus/.ghcup
Press ENTER to proceed or ctrl-c to abort.
Note that this script can be re-run at any given time.
-------------------------------------------------------------------------------
Detected bash shell on your system...
Do you want ghcup to automatically add the required PATH variable to "/home/plutus/.bashrc"?
[P] Yes, prepend [A] Yes, append [N] No [?] Help (default is "P").
a
-------------------------------------------------------------------------------
Do you want to install haskell-language-server (HLS)?
HLS is a language-server that provides IDE-like functionality
and can integrate with different editors, such as Vim, Emacs, VS Code, Atom, ...
Also see https://github.com/haskell/haskell-language-server/blob/master/README.md
[Y] Yes [N] No [?] Help (default is "N").
y
-------------------------------------------------------------------------------
Do you want to install stack?
Stack is a haskell build tool similar to cabal that is used by some projects.
Also see https://docs.haskellstack.org/
[Y] Yes [N] No [?] Help (default is "N").
y
main: line 238: getconf: command not found
main: line 240: getconf: command not found
main: line 243: getconf: command not found
Unknown long bit size:
[devcontainer]$