Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing nix 1.10 is broken on OSX El Capitan, 10.11.2, Xcode Version 7.2 (7C68) #12332

Closed
itkovian opened this issue Jan 12, 2016 · 5 comments
Labels
6.topic: darwin Running or building packages on Darwin

Comments

@itkovian
Copy link

~ ❯❯❯  bash <(curl https://nixos.org/nix/install)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1404  100  1404    0     0   7553      0 --:--:-- --:--:-- --:--:--  7589
unpacking Nix binary tarball for x86_64-darwin from `https://nixos.org/releases/nix/nix-1.10/nix-1.10-x86_64-darwin.tar.bz2'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27.4M  100 27.4M    0     0  4089k      0  0:00:06  0:00:06 --:--:-- 4401k
performing a single-user installation of Nix...
copying Nix to /nix/store........................
initialising Nix database...
installing ‘nix-1.10’
building path(s) ‘/nix/store/bfhj0nrjnfwhph4fxzz12zlsanj5bvrm-user-environment’
dyld: Library not loaded: /usr/lib/libSystem.B.dylib
  Referenced from: /nix/store/kp4f6acmkhslpsy6zc9v2x7jzn9417b5-perl-5.20.1/bin/perl
  Reason: no suitable image found.  Did find:
    /usr/lib/libSystem.B.dylib: stat() failed with errno=1
    /usr/lib/libSystem.B.dylib: stat() failed with errno=1
builder for ‘/nix/store/7q0nhsk3iji0ghpq80gdnv9r7xdji9r4-user-environment.drv’ failed due to signal 5 (Trace/BPT trap: 5)
error: build of ‘/nix/store/7q0nhsk3iji0ghpq80gdnv9r7xdji9r4-user-environment.drv’ failed
nix-binary-tarball-unpack/nix-1.10-x86_64-darwin/install: unable to install Nix into your default profile
@retrry
Copy link
Contributor

retrry commented Jan 12, 2016

Duplicate of #9215 ?
Did you set build-use-chroot = true in /etc/nix/nix.conf ?

@itkovian
Copy link
Author

Yes, I did. Will try without.

@vcunat vcunat added the 6.topic: darwin Running or building packages on Darwin label Jan 12, 2016
@retrry
Copy link
Contributor

retrry commented Jan 12, 2016

Remove that option before installing. That should allow you to install Nix.

@itkovian
Copy link
Author

Seems to work, thanks!

@itkovian
Copy link
Author

Updated the wiki as well: https://nixos.org/wiki/Nix_on_OS_X#Darwin_Sandboxes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

3 participants