Open ghost opened 2 years ago
$ nix run -c $SHELL error: unrecognised flag '-c' Try 'nix --help' for more information.
This subcommand was present in Nix 2.3, but later versions of Nix made breaking changes to it. You can get the installer for 2.3 here, or if you have any other version of Nix already, you can also
nix-store --realise /nix/store/9hkh1fx8z1frgbz2nawr0mnyvizrb8yk-nix-2.3.15
and then use bin/nix
from inside there. (This is the store path for x64 Linux.) Then nix run --command $SHELL
should work, and that should solve the issue of Stack not being found.
[Warn] git clone failed. Reason: fatal: could not create leading directories of '/var/lib/hoff/checkouts/OpenThingies/OpenMoodServer': Permission denied ... hoff: /var/lib/hoff/state/OpenThingies/OpenMoodServer.json.new: openBinaryFile: does not exist (No such file or directory)
Do
/var/lib/hoff/checkouts
and/var/lib/hoff/state
exist, and does the user that you are running Hoff as have write permission in these directories? (I suspect the “no such file or directory” error in the second message is not about the.json.new
file, which it tries to create, but about the parent directory.)
to avoid confusion: that @Dragonsight91 up there is my private account
here's an overview of /var/lib/hoff
this is after fixing the nix issue, that worked, thanks for that
total 8.0K
drwxr-xr-x 3 hoff hoff 4.0K Aug 9 10:42 checkouts
drwxr-xr-x 2 hoff hoff 4.0K Aug 8 17:28 state
both exist
and it was able to write the repository to /var/lib/hoff/checkouts
/var/lib/hoff/checkouts:
total 4.0K
drwxr-xr-x 3 hoff hoff 4.0K Aug 9 10:42 OpenThingies
/var/lib/hoff/state:
total 0
oh and i found another issue, when trying to build a package:
$ VERSION=0.0.1 fakeroot ./build-package.sh
stack: /nix/store/nprym6lf8lzhp1irb42lb4vp8069l5rj-glibc-2.32-54/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libfakeroot/libfakeroot.so)
i've been trying to install hoff on my own server, but have run into several issues. Hold onto your sock, sandals, shoes or any combination thereof, because this is gonna be a long one, with a lot of logs
but following the instructions here don't seem to work properly for me.
using nix version:
nix (Nix) 2.10.3
OS: Archlinuxtrying to get into a nix shell:
it does work with
nix-shell --run $SHELL
when trying to build the binary, i get this error:
was fixed with
nix-env -i stack
once that ran, this is an error that seems to generally haunt me:
when running first time, i got this error:
on the commandline: error: [-Werror] ignoring -split-objs
-- While building package hoff-0.26.2 (scroll up to its section to see the error) using: /home/minecraft/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.4 --builddir=.stack-work/dist/x86_64-linux-nix/Cabal-3.2.1.0 build lib:hoff exe:hoff --ghc-options " -fdiagnostics-color=always" Process exited with code: ExitFailure 1
i get the following error (and it stops running:
i wonder how many people outside of @channable had this issue. I've been going up and down in the repo, trying to see where i went wrong (other than using arch on a server), but i cannot find further info, so i thought i'd leave an issue.