Getting started

46 views
Skip to first unread message

Victor Miller

unread,
May 10, 2022, 2:11:44 PM5/10/22
to SPDZ/SCALE-MAMBA Discussion Group
I looked in the SCALE-MAMBA pdf.  It says to install the nix-shell with


which I did.  But after starting a new login shell and typing

nix-shell

I get

error: getting status of '/Users/victorsmiller/default.nix': No such file or directory

I can run

nix-shell -p nix-info --run "nix-info -m"

which downloads a bunch of things.  There seems to be something missing in the documentation.  Can anybody elucidate?  I'm running on a mac running OSX 12.3.1.  The same thing happens on an intel mac and an M1 mac.

Here's more information:

ls -la .nix-profile
lrwxr-xr-x  1 victorsmiller  staff  52 May  9 18:12 .nix-profile -> /nix/var/nix/profiles/per-user/victorsmiller/profile

ls -l /nix/var/nix/profiles/per-user/
total 0
drwxr-xr-x  4 root           wheel  128 May  9 18:10 root
drwxr-xr-x  2 victorsmiller  wheel   64 May  9 18:12 victorsmiller

ls -l /nix/var/nix/profiles/per-user/victorsmiller/
total 0

Kelong Cong

unread,
May 10, 2022, 2:14:23 PM5/10/22
to Victor Miller, SPDZ/SCALE-MAMBA Discussion Group
Hi Victor,

The nix-shell command should be executed in the SCALE-MAMBA directory,
could you try that?

Thanks,
Kelong

On 10/05/2022 20:11, Victor Miller wrote:
> I looked in the SCALE-MAMBA pdf.  It says to install the nix-shell with
>
> curl -L https://nixos.org/nix/nstall <https://nixos.org/nix/nstall> | sh
> --
> You received this message because you are subscribed to the Google
> Groups "SPDZ/SCALE-MAMBA Discussion Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spdz+uns...@googlegroups.com
> <mailto:spdz+uns...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/spdz/439c3cd8-0844-43cd-8af0-5e56bae37193n%40googlegroups.com
> <https://groups.google.com/d/msgid/spdz/439c3cd8-0844-43cd-8af0-5e56bae37193n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Victor Miller

unread,
May 10, 2022, 2:28:02 PM5/10/22
to SPDZ/SCALE-MAMBA Discussion Group
Thanks.  The docs should have said that.  I got a little further.  But things stop with the error below.  This is on an M1 mac.

nix-shell
error: cannot coerce null to a string

       at /nix/store/3xigh0qsgzqmgl8f4f2igz4zc2bg1wz3-nixpkgs-src/pkgs/stdenv/generic/make-derivation.nix:192:34:

          191|         // (lib.optionalAttrs (!(attrs ? name) && attrs ? pname && attrs ? version)) {
          192|           name = "${attrs.pname}-${attrs.version}";
             |                                  ^
          193|         } // (lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix && (attrs ? name || (attrs ? pname && attrs ? version)))) {
(use '--show-trace' to show detailed location information)

Victor Miller

unread,
May 10, 2022, 2:29:21 PM5/10/22
to SPDZ/SCALE-MAMBA Discussion Group
On an intel mac, I got a little further.  Everything seemed to compile, but linking failed:

> ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
       > clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
       > make: *** [GNUmakefile:1303: libcryptopp.dylib] Error 1
       For full logs, run 'nix log /nix/store/7fy5pnn405vshr31qrq2xlcnn3p9k6jx-crypto++-8.2.0.drv'.
error: build of '/nix/store/7fy5pnn405vshr31qrq2xlcnn3p9k6jx-crypto++-8.2.0.drv', '/nix/store/gdhab010gzr34ffm073bcrp0jllcrxg3-killall-1003.1-2008.drv', '/nix/store/lgkkmhj6iygc5i04b72hpzqrd152haha-binaryen-100.drv' failed

On Tuesday, May 10, 2022 at 11:14:23 AM UTC-7 Kelong Cong wrote:

Kelong Cong

unread,
May 10, 2022, 2:36:19 PM5/10/22
to Victor Miller, SPDZ/SCALE-MAMBA Discussion Group
Is there a Linux machine that you can try? As far as I know, SCALE-MAMBA
is primarily developed and tested on Linux machines, I'm not sure if
anyone has tried it on macOS.

On 10/05/2022 20:29, Victor Miller wrote:
> On an intel mac, I got a little further.  Everything seemed to compile,
> but linking failed:
>
> > ld: file not found: /usr/lib/system/libcache.dylib for architecture
> x86_64
>        > clang-7: error: linker command failed with exit code 1 (use -v
> to see invocation)
>        > make: *** [GNUmakefile:1303: libcryptopp.dylib] Error 1
>        For full logs, run 'nix log
> /nix/store/7fy5pnn405vshr31qrq2xlcnn3p9k6jx-crypto++-8.2.0.drv'.
> error: build of
> '/nix/store/7fy5pnn405vshr31qrq2xlcnn3p9k6jx-crypto++-8.2.0.drv',
> '/nix/store/gdhab010gzr34ffm073bcrp0jllcrxg3-killall-1003.1-2008.drv',
> '/nix/store/lgkkmhj6iygc5i04b72hpzqrd152haha-binaryen-100.drv' failed
>
> On Tuesday, May 10, 2022 at 11:14:23 AM UTC-7 Kelong Cong wrote:
>
> Hi Victor,
>
> The nix-shell command should be executed in the SCALE-MAMBA directory,
> could you try that?
>
> Thanks,
> Kelong
>
> On 10/05/2022 20:11, Victor Miller wrote:
> > I looked in the SCALE-MAMBA pdf.  It says to install the
> nix-shell with
> >
> > curl -L https://nixos.org/nix/nstall
> <https://nixos.org/nix/nstall> <https://nixos.org/nix/nstall
> <https://groups.google.com/d/msgid/spdz/439c3cd8-0844-43cd-8af0-5e56bae37193n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/spdz/439c3cd8-0844-43cd-8af0-5e56bae37193n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "SPDZ/SCALE-MAMBA Discussion Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spdz+uns...@googlegroups.com
> <mailto:spdz+uns...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/spdz/04db62cf-bff3-49ae-9b9f-4db20819d294n%40googlegroups.com
> <https://groups.google.com/d/msgid/spdz/04db62cf-bff3-49ae-9b9f-4db20819d294n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages