Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

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

Open
ejserna opened this issue Feb 28, 2022 · 2 comments
Open

Comments

@ejserna
Copy link

ejserna commented Feb 28, 2022

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

@ghost
Copy link

ghost commented Apr 12, 2022

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

@vladimirlogachev
Copy link

vladimirlogachev commented Apr 28, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants