plutus-starter icon indicating copy to clipboard operation
plutus-starter copied to clipboard

devcontainer cabal update && cabal install fails with error code 127

Open ejserna opened this issue 2 years ago • 2 comments

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

ejserna avatar Feb 28 '22 02:02 ejserna

It's hard to tell anything without more logs unfortunately. Maybe it misses cabal update at first or some library is not installed.

ak3n avatar Apr 12 '22 09:04 ak3n

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]$ 

vladimirlogachev avatar Apr 28 '22 18:04 vladimirlogachev