Questions tagged [cabal]
Cabal is a system for building and packaging Haskell libraries and programs.
66
questions
1
vote
1
answer
12
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/...
0
votes
1
answer
29
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 ...
0
votes
1
answer
27
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.....
0
votes
0
answers
25
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 ...
0
votes
1
answer
68
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 ...
0
votes
2
answers
65
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....
1
vote
2
answers
145
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 (...
0
votes
1
answer
28
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:...
0
votes
0
answers
70
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/...
1
vote
1
answer
59
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....
1
vote
1
answer
83
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 (...
0
votes
0
answers
28
views
cardano-ledger-shelley failing to build in martify contract
I am trying to compile the martify contract over here and I am failing to do so. It gives
Configuring library for cardano-ledger-shelley-0.1.0.0..
Preprocessing library for cardano-ledger-shelley-0.1....
0
votes
2
answers
155
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-...
0
votes
0
answers
43
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)
...
10
votes
3
answers
266
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 ...
3
votes
3
answers
238
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 ...
1
vote
0
answers
26
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 ...
0
votes
1
answer
173
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
272
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
160
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
26
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
172
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
1
answer
261
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....
1
vote
0
answers
80
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 ...
3
votes
2
answers
172
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
45
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 ...
1
vote
2
answers
447
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 -...
0
votes
1
answer
36
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-...
0
votes
2
answers
49
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
138
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 ...
2
votes
0
answers
76
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
16
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 ...
3
votes
1
answer
258
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 ...
0
votes
1
answer
98
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
282
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
155
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
1
vote
0
answers
34
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 ...
2
votes
2
answers
237
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
2
answers
63
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 ...
2
votes
1
answer
180
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 ...
3
votes
3
answers
184
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 ...
0
votes
3
answers
135
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
111
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
127
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
43
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/...