Closed trevinwisaksana closed 1 year ago
The issue seems to be with the plutus-core
library having build issues within nix-shell
on an M1. When entering nix-shell
and running cabal build plutus-core
this error occurs. But without being in a nix-shell
the build is successful
I believe I've identified the solution is we need to install IOHK's version of libsodium within the nix-shell environment. Unfortunately I do not know how to do it. I tried running these commands within nix-shell
(based on installing cardano-node):
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout 66f017f1
./autogen.sh
./configure
make
sudo make install
But it's installed into usr/local/lib
instead of becoming something nix can recognize. Anyone reading this knows how to install it properly as a nix dependency?
Is there anyone that can help with this? It's still showing the same error in v1.0.0
Unfortunately, plutus-starter
is unmainained and should be rebuild from scratch in the future. A WIP that tried to upgrade the nix environment was on its way, but it causes other issues, so it's on pause at the moment. If you really want to give plutus-starter a try, you may try the corresponding branch though : https://github.com/input-output-hk/plutus-starter/tree/nicolas/plutus-apps1.1
Summary
Hi,
I'm getting an error when running cabal repl using the plutus-starter project. The error may be caused by some incorrect or outdated dependencies used in the
cabal.project
. Possiblylibsodium
. But since it's widely used in other projects I cannot build the rest as well.Steps to reproduce the behavior
nix-shell
and runcabal build all
symbol not found in flat namespace (_sodium_free)
Actual Result
Expected Result
Should successfully enter
cabal repl
.Describe the approach you would take to fix this
No response
System info
MacOS 12.5, 16 inch 2021 Apple M1 Pro Memory 16 GB