Questions tagged [cabal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
3 answers
37 views

How to turn (compile) “script.hs” into “script.plutus”?

I have a script that is developed in Plutus Playground. It is working well and now I want to deploy it to the Cardano blockchain via cardano-cli. Following this answer, I have to use cabal to turn my ...
0 votes
0 answers
9 views

Unable to simulate example from community docs - NFT Creator

I tried to simulate a project from the Community Docs - NFT Creator. (updated in April 2022) https://plutus-community.readthedocs.io/en/latest/#Guides/plutus-starter/ The way i executed my project was ...
1 vote
0 answers
14 views

strange cabal build behaviour - won't detect changes to code file

This might have something to do with me working in a docker container, that is an ubuntu version of linux, with nix installed and plutus-starter cloned. I'm currently updating a plutus script I wrote ...
  • 219
0 votes
1 answer
24 views

cabal: Failed to build digest-0.0.1.3

This error came from cabal build all when Building and installing the node on wsl2 windows 10 logged error: Failed to build digest-0.0.1.3. The failure occurred during the configure step. Build log ( /...
1 vote
2 answers
90 views

cardano-serialization-lib ExUnits

I am new to Cardano and Plutus. I was trying to build a transaction that redeems a UTxO from the alwayssucceeds contract on Cardano Testnet. The Redeemer object constructor takes ExUnits as one of the ...
1 vote
1 answer
56 views

Cabal repl fails because of missing dependency lzma

Summary When running cabal repl inside any week in the Plutus Pioneer Program, it fails with the error message: cabal: Missing dependency on a foreign library: * Missing (or bad) header file: lzma.h * ...
1 vote
1 answer
17 views

How do I set Up a Cabal file?

Whats a basic template I should use for cabal files that is easily customisable?
1 vote
1 answer
87 views

Error on Cabal Build: Failed to build plutus-core-0.1.0.0

Following the instructions from https://github.com/input-output-hk/marlowe-pioneer-program, yet on a Mac M1, running cabal build from within /marlowe-pioneer-program/code main generates 2 errors: ...
0 votes
0 answers
49 views

How to fix `cabal build` in Plutus Starter Dev Container

I have seen other people with this problem on Github. Broken cabal build Following these instructions, I am able to get to the line that says: cabal build from the terminal should work (unless you ...
0 votes
1 answer
138 views

Plutus Starter nix-shell build errors on MacOS Monterey M1 - ghc-cabal: Encountered missing or private dependencies

MacOS Monterey, Apple M1 Installed latest GHC via https://www.haskell.org/ghcup/ but not Stack. Installed nix 2.8.0 multiuser Set Cache in /etc/nix/nix.conf as below: UPDATE: I have since updated nix....
  • 100
0 votes
0 answers
57 views

Plutus Pioneer Cohort 3, Mac M1 cabal build error: Failed to build small-steps-test-0.1.0.0. , symbol not found in flat namespace '_sodium_free'

I'm using MacOS Monterey with M1 chip, and trying to build plutus-app using Nix Entering $ nix-shell using the specified tag from week01 is working fine, hence I can enter into the shell. The problem ...
1 vote
2 answers
85 views

Starting a new Plutus Project

I've read a few threads on Cardano Stack exchange on how to start a new Plutus project, but there doesn't seem to be a satisfying answer. I've read the following: plutus starter course How to Start a ...
0 votes
0 answers
35 views

I got error while building package plutus-core-0.1.0.0 when installing cardano-wallet using stack

I'm using MacOS Monterey with M1 chip and trying to install cardano-wallet. I've already installed pre-requisites cardano-node and cardano-cli no problem, and already synced with the testnet. I was ...
0 votes
0 answers
23 views

Deploying a Contract Problem

I know this is probably the fifth post about deploying smart contracts, but I seem to not succeed doing it. Here is what I tried: Installed Cardano Tesnet Alozo with Docker Synced Testnet with docker ...
1 vote
2 answers
188 views

How to install cardano-node and cardano-cli on Mac M1

I tried to install cardano-cli and cardano-node using this documentation and stuck on below step mkdir -p $HOME/.local/bin cp -p "$(./scripts/bin-path.sh cardano-node)" $HOME/.local/bin/ cp -...
  • 9
0 votes
1 answer
32 views

how to import cardano-cli project into dependecies under cabal?

I've got the following nix-shell: let src = builtins.fetchGit { url = "git@github.com:input-output-hk/plutus-apps.git"; # url = "https://github.com/input-output-hk/plutus-...
0 votes
2 answers
47 views

Why can't the PAB webserver find a socket in PAB-Nami demo?

I'm trying to run the PAB-Nami simple demo in the Plutus Apps repo. When I run the PAB, either using cabal or with the nix-shell script, I'm getting the error: plutus-pab-nami-demo: Network.Socket....
0 votes
1 answer
95 views

Cardano DB Sync - RTS Options

After successfully with previous question, where I tried to make cardano-node and cardano-db-sync run as a services, I tried to play around with +RTS ... -RTS option on cardano-db-sync, specifically ...
  • 45
2 votes
0 answers
74 views

Issues running Chain-index on WSL2 - fully syncing but not running the webserver

I've run into an issue with the chain-index while trying to run a PAB testnet environment. The index will start up, sync to 100%, update to new blocks, but the webserver will never start. In fact, the ...
0 votes
1 answer
15 views

Trying to understand import, browse, "as" and other terminology

I'm trying to understand at the lowest level exactly how Plutus/Haskell/Cabal works. I executed the following in the repl (inside nix): > import PlutusTx.Builtins.Internal as PTxBI Doing this ...
  • 177
3 votes
1 answer
178 views

Cardano DB Sync as Service (running on background) on Ubuntu

Linux/Ubuntu - Cardano newbie, want to ask things around! :) At the moment, I'm successfully installed cardano-node and can make it run as a service (pulling data automatically on the background), by ...
  • 45
0 votes
1 answer
59 views

How Do you generate the Cabal and Nix files for a new project?

I built the plutus-apps repo from iohk, and then made a different folder to orgenise my projects. I want to know how to have the nix files needed to make the environment generated in the new project ...
0 votes
1 answer
225 views

Week 4 issue with Cabal build: Not in scope: type constructor or class 'JWT.EncodeSigner'

When running cabal build or cabal repl in the core/week04 folder I get the following error message when building the playground-common-0.1.0.0 package: src/Auth.hs:130:41: error: Not in scope: ...
-1 votes
1 answer
94 views

Unable to install Gloss on Mac M1

I just learning about Haskell and trying to create Haskell project with Cabal, but when I tried install Gloss, it always return an error -- error ... ghc: could not execute: opt cabal: Failed to build ...
  • 9
0 votes
0 answers
88 views

VS Code Haskell Language Server configuration: pass flag to cabal?

I'm working with the plutus-starter repo (https://github.com/input-output-hk/plutus-starter) and this is working with VS Code on my Macbook Pro and running in a Docker devcontainer. HSL even shows ...
  • 219
2 votes
1 answer
39 views

What is a library stanza?

I deduce what stanza definitions are but I was struggling to find an exact definition and explanation why this is used in Haskell/Plutus. What exactly is a stanza? Can you compile code Haskell/Plutus ...
0 votes
0 answers
48 views

Where is Week04.Monad?

Doing Week 04 of cohort 3 Plutus Pioneers here. In the repl inside the nix shell, inside ~/plutus/plutus-pioneer-program/code/week04 Watching PPP 030402 at 34:54 to about 39:59. When I do :l src/...
  • 177
5 votes
2 answers
339 views

How can I set up my dev environment faster after pulling the pioneer code repos for each week

Each week so far it takes me over 1.5 hours to bring my dev environment up to date after updating the plutus-pioneer-program and plutus-app repos. This is really painful. I'm wondering if someone can ...
1 vote
0 answers
23 views

cabal repl outputs a lot of changing git HEADs on plutus-pioneer-program

This is a question regarding the plutus-pioneer-program. I want to load the modules of a given week into the ghci shell. The first time I run cabal repl it takes quite a long time to download things ...
  • 111
4 votes
1 answer
38 views

Incorrect Pub Key from Wallet Emulator

I am getting incorrect pubkeys by running mockWalletPaymentPubKey $ knownWallet 1 and mockWalletPaymentPubKey $ knownWallet 2 (from here https://youtu.be/ae7U_yKIQ0Y?t=1390). I checked that I am in ...
  • 125
1 vote
0 answers
26 views

cabal repl error

When I run cabal repl in the week01 folder I get an error message that states the following */plutus-pioneer-program/code/week01/dist-newstyle: createDirectory: permission denied (Permission ...
  • 11
2 votes
2 answers
187 views

Trouble fulfilling: base, libsystemd-journal, lobemo-scribe-systemd

2 days stucked with this (running on Ubuntu): [nix-shell:~/plutus-pioneer-program/code/week01]$ cabal build Warning: Requested index-state 2021-10-20T00:00:00Z is newer than 'hackage.haskell.org'! ...
0 votes
1 answer
51 views

Error on "cabal build" - Week01 - warning is in EnglishAuction.hs

My cabal build ended in a warning - yet not sure if this needs to be resolved or if build completed ? Seems like build aborted over a warning ? Below is the warning that seems to have aborted the ...
  • 11
2 votes
1 answer
111 views

What is the difference between "cabal build" and "cabal repl"?

What does "cabal repl" does and how it differentiates from "cabal build"? the documentation says: loads all of the modules of the target into GHCi as interpreted bytecode But I ...
  • 23
0 votes
0 answers
66 views

cabal: Error parsing project file

Just posting this here just in case anyone searches this stackexchange for this and doesn't find the answer like I did. If anyone runs into this error while doing a cabal build in the plutus-pioneer-...
3 votes
3 answers
147 views

Running week01 expressions in repl

I am new to haskell and I am trying to run a few expressions from the English Auction Contract in the repl. So if I want to run ValidatorHash "f" from the second last line of the Contract in ...
  • 125
0 votes
3 answers
109 views

Error on cabal build - Encounterd missing dependesies

I followed the instructions on lecture one - part 3 and I was trying to start week 1 project. When I run cabal build got the following error: [nix-shell:~/plutus-pioneer-program/code/week01]$ sudo ...
0 votes
1 answer
73 views

cabal build Out of Memory Mac VS Code Docker

This is a follow up to my previous cabal build problem. I ran cabal update. Then cabal build was killed. I tried increasing Docker memory from 2GB to 3GB. My old Mac has 8GB, Activity Monitor peaked ...
2 votes
1 answer
75 views

cabal: Could not resolve dependencies:plutus-core:happy:exe.happy

In the VS Code Docker Env setup on a Mac. I opened the starter project in the container. Ran cabal build in VS Terminal with devcontainer prompt. Warning: Requested index-state 2021-08-14T00:00:00Z is ...
0 votes
1 answer
26 views

Cannot build cardano-wallet-2021-12-15

I'm trying to build cardano-wallet with cabal. However, it fails wit the following error: [19 of 20] Compiling Cardano.Ledger.TxIn ( src/Cardano/Ledger/TxIn.hs, dist/build/Cardano/Ledger/TxIn.o, dist/...
  • 826
0 votes
0 answers
10 views

cabal repl / ghci quick lookup history

in cabal repl I typically use the UP key to lookup previous code I've ran, problem is it becomes a lot to sift through - is there a way to first pattern match e.g. I enter "mustSpe", and ...
  • 433
3 votes
2 answers
128 views

Plutus starter cabal build issue

Running the instructions at https://github.com/input-output-hk/plutus-starter#readme After opening the container in VSCode, and attempting to run the following in the terminal. [devcontainer]$ cabal ...
  • 183
0 votes
2 answers
191 views

Impossible to install ghc 8.10.4

with cabal build all, i receive the message below [13 of 14] Compiling Generics.SOP.Instances ( src/Generics/SOP/Instances.hs, dist/build/Generics/SOP/Instances.o, dist/build/Generics/SOP/Instances....
  • 313
1 vote
2 answers
67 views

Cabal repl is very slow

I've already setup the IOHK binary cache in /etc/nix/nix.conf, yet when I build PPP lecture #2 I have to build many modules. whereas it seems Lars only has to process one. Does anyone know why this ...
1 vote
1 answer
50 views

Parse error on input ']' when running cabal build in my Plutus code

I have a code that compiles and runs well in the Plutus playground, but when I try to run cabal build I get an error when calling mkTypedValidator: offerValidator :: Scripts.TypedValidator Offer ...
  • 186
1 vote
2 answers
707 views

How to solve "cabal: Could not resolve dependencies" when building cardano-cli cardano-node

I'm a newbie to Cardano. I'm trying to set up a stake pool as this link explained. https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node I stuck with cabal build ...
  • 31
1 vote
2 answers
144 views

Cabal build Caradano-cli Cardano-node error

I'm trying to create a Cardano staking pool on a raspberry pi 4 with 8GB of RAM. I've been following the coin cashew tutorial for staking pools: https://www.coincashew.com/coins/overview-ada/guide-how-...
3 votes
2 answers
304 views

missing node.socket

so I synced towards Alonzo mainnet with cabal build and interrupted at 92% and somehow ~/cardano/db/node.socket is missing. And no matter how many times I restart the node with cardano-node run \ --...
  • 433
0 votes
0 answers
68 views

Why Cabal will not build Cardano api?

Hi I was just following lecture 1 when trying to build the Auction contract. Plutus commit: ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4 I ran Cabal clean, Cabal update, then added brew install libsodium-...
2 votes
2 answers
225 views

How to compile plutus source code locally?

I'm trying to compile the Plutus source code locally, I tried cabal build in nix-shell, getting this error After searching the rest of the dependency tree exhaustively, these were the goals I've had ...