Skip to main content

Questions tagged [cabal]

Cabal is a system for building and packaging Haskell libraries and programs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

Cabal build all failed with "Failed to build Diff-0.5"

Preprocessing library for base58-bytestring-0.1.0.. Building library for base58-bytestring-0.1.0.. [1 of 2] Compiling Data.ByteString.Base58.Internal ( src/Data/ByteString/Base58/Internal.hs, dist/...
Nachiket Subbaraman's user avatar
0 votes
1 answer
42 views

Cardano Node Compiler Error libsodium Fedora

for some reason i'm unable to compile cabal projects related to cardano projects on this system. not sure what could of changed recently as aside from recent system updates i haven't changed much. or ...
Kunikos's user avatar
  • 13
1 vote
1 answer
22 views

Cabal build error when compiling simple Plutus code

From inside nix-shell, I run cabal build (after running cabal update) and I get the following error: Failed to build libsystemd-journal-1.4.5.0.0.0.0.1. Build log ( /home/eric/.cabal/logs/ghc-8.10.7/...
Eric's user avatar
  • 85
0 votes
1 answer
60 views

Cabal - could not resolve dependencies error

I have completed the pioneer program and am writing my own app. I've created my react front end and now am trying to serialize my smart contract in Haskell for a minting policy I wrote. The problem ...
mrsargent's user avatar
  • 121
0 votes
1 answer
44 views

I am getting error while using "cabal build all" cmd

I am new to plutus. I am trying to learn plutus for which I am using "plutus-starter" code to begin. while using "cabal build" i am getting following error: Resolving dependencies.....
krishna babu's user avatar
0 votes
0 answers
29 views

Cabal build all fail on M1

I want to add Cardano to Express project and followed the steps in documentation: https://developers.cardano.org/docs/get-started/installing-cardano-node/#macos. Unfortunately, “cabal build all” step ...
Lilit's user avatar
  • 1
0 votes
1 answer
82 views

Failed to build cardano-crypto-wrapper

When I run "cabal build all" I get the error message "Failed to build cardano-crypto-wrapper-1.5.1.0". See below for log file. Any assistance would be appreciated. I was so close ...
Larry's user avatar
  • 1
0 votes
2 answers
81 views

playground-common package giving 'Failed to build scrypt-0.5.0' error

I'm trying to run my own little smart contract in the plutus-pioneer-program [fourth iteration] docker container and I'm having some problems. I've just added an extra folder alongside the other weeks....
NaeriKailash's user avatar
1 vote
2 answers
162 views

Unable to build project using latest version of plutus-apps using nix develop

When I run cabal repl on my project using nix develop I get the following error: Warning: Requested index-state 2023-02-20T00:00:00Z is newer than 'hackage.haskell.org'! Falling back to older state (...
Eric's user avatar
  • 85
0 votes
1 answer
41 views

Denied Cabal Access to pictures. Now Getting error

Accidentally denied Cabal Access to pictures through a prompt given. Now, when I try to cabal Init I get this message "User/******/Library/Application Support/MobileSync: getDirectoryContents:...
marcus gray's user avatar
0 votes
0 answers
77 views

Error when trying to build my Plutus project using nix-shell

I am getting the following error after running cabal build using nix-shell: cabal: Could not resolve dependencies: [__0] next goal: Win32-network (user goal) [__0] rejecting: Win32-network-0.1.1.0/...
Falcon Stakepool's user avatar
1 vote
1 answer
76 views

Error when trying to build my Plutus project

I am getting the following error after trying to execute cabal build: cabal: Could not resolve dependencies: [__0] next goal: cardano-crypto-class (user goal) [__0] rejecting: cardano-crypto-class-2.0....
Falcon Stakepool's user avatar
1 vote
1 answer
104 views

Error when compiling cardano-node 1.35.5

I am getting the following error when trying to compile the new version of the cardano-node: Resolving dependencies... Error: cabal: Could not resolve dependencies: [__0] trying: cardano-api-1.35.5 (...
Falcon Stakepool's user avatar
0 votes
2 answers
172 views

Error - Building Cardano Node 1.35.4 in Ubuntu Linux 22.04

When building cardano-node-1.35.4 using git checkout tags/1.35.4 cabal update cabal build all I get the following error cabal: Failed to build tx-generator-2.2 (which is required by test:tx-...
Srinath's user avatar
0 votes
0 answers
54 views

Error building in the latest Plutus Apps: Failed to build postgresql-libpq-0.9.4.3* Missing (or bad) C library: pq

Im having problems building my projects using the the latest plutus apps: commit 33c6e81ba4ab9cbb42870bbb6f916f8b4e2c7b3e (HEAD -> main) Starting postgresql-libpq-0.9.4.3 (all, legacy fallback) ...
Manu Padilla's user avatar
10 votes
3 answers
313 views

How to properly start a new Plutus project, from scratch

I'm from ETH's ecosystem and recently just decided to get into Cardano development, specifically Plutus dev work thanks to Demeter.Run, and after going through the Plutus starters on there, I noticed ...
0xDaito's user avatar
  • 101
3 votes
3 answers
266 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 ...
Adam's user avatar
  • 343
1 vote
0 answers
34 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 ...
marcel_g's user avatar
  • 239
0 votes
1 answer
229 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 ( /...
WIMS-Cardano's user avatar
1 vote
2 answers
322 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 ...
Tetiana Diachenko's user avatar
1 vote
1 answer
173 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 * ...
mayanhavoc's user avatar
1 vote
1 answer
28 views

How do I set Up a Cabal file?

Whats a basic template I should use for cabal files that is easily customisable?
KryptoKing's user avatar
1 vote
1 answer
181 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: ...
DaveLind's user avatar
0 votes
1 answer
266 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....
Deano's user avatar
  • 100
1 vote
0 answers
84 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 ...
Dani Ihza Farrosi's user avatar
3 votes
2 answers
178 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 ...
Domy2018's user avatar
0 votes
0 answers
46 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 ...
Dani Ihza Farrosi's user avatar
1 vote
2 answers
520 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 -...
Irwan's user avatar
  • 9
0 votes
1 answer
37 views

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

I've got the following nix-shell: let src = builtins.fetchGit { url = "[email protected]:input-output-hk/plutus-apps.git"; # url = "https://github.com/input-output-hk/plutus-...
ViktorYasterbov's user avatar
0 votes
2 answers
50 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....
Mitchell Turner's user avatar
0 votes
1 answer
152 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 ...
wandyyd's user avatar
  • 55
2 votes
0 answers
78 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 ...
RustyCamel's user avatar
0 votes
1 answer
17 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 ...
XiTouch's user avatar
  • 349
3 votes
1 answer
271 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 ...
wandyyd's user avatar
  • 55
0 votes
1 answer
101 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 ...
KryptoKing's user avatar
0 votes
1 answer
283 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: ...
wildcatmik's user avatar
-1 votes
1 answer
171 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 ...
Irwan's user avatar
  • 9
2 votes
1 answer
51 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 ...
joaquimgamero's user avatar
1 vote
1 answer
69 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/...
XiTouch's user avatar
  • 349
5 votes
2 answers
348 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 ...
Steve Mason's user avatar
1 vote
0 answers
25 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 ...
Marlo's user avatar
  • 111
4 votes
1 answer
46 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 ...
Roofi's user avatar
  • 125
1 vote
0 answers
39 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 ...
SidneyN's user avatar
  • 11
2 votes
2 answers
243 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'! ...
xserra68's user avatar
0 votes
2 answers
67 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 ...
HeikoR's user avatar
  • 11
2 votes
1 answer
193 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 ...
F. A's user avatar
  • 23
3 votes
3 answers
205 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 ...
Roofi's user avatar
  • 125
0 votes
3 answers
139 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 ...
Efthyvoulos Tsouderos's user avatar
0 votes
1 answer
120 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 ...
Gary Struthers's user avatar
2 votes
1 answer
131 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 ...
Gary Struthers's user avatar