1

I have this error when I try to build plutus

:~/code/plutus$ nix build -f default.nix plutus.haskell.packages.plutus-core
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override

I also tried this, but I am still getting errors

:~/code/plutus$ nix --extra-experimental-features nix-command build -f default.nix plutus-apps.haskell.packages.plutus-core.components.library
error: executing SQLite statement 'pragma synchronous = normal': unable to open database file (in '/nix/var/nix/db/db.sqlite')
1
  • Welcome to Cardano SE! As a new user be sure to take the Tour.
    – gRebel
    Commented Jan 22, 2022 at 11:53

1 Answer 1

3

It seems like this is a single user installation. Are you running the nix command as the same user that installed nix? That would explain the unable to open database file error. You could validate this looking at the permissions/ownership of the sqlite file in question.

To allow nix-command and flakes, you can create /etc/nix/nix.conf with the contents:

experimental-features = nix-command flakes

I'd also recommend adding the binary caches in that file as well.

1
  • Thanks this error got cleared.Thanks
    – basseyefe
    Commented Jan 20, 2022 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.