-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 on macOS Mojave fails #2244
Comments
Did you remove the |
I have just removed all the users using
|
@bemeurer Does |
@LnL7 It does not, only
|
So is that the only removed lib? For instance, this file has all of the ones we expect: |
Yeah, similar to libsystem_coretls with 10.13 but that might not be the only problem ofcorse. |
Using this hacked-together script I checked that only the file in question seems to be missing
|
Also,
|
@bemeurer Thanks for the information. I made a tarball using LnL7/nixpkgs@edfb283, it would be great if somebody could give that a try. Otherwise I'll look into setting up a vm. https://files.daiderd.com/tmp/nix-2.0.4pre6073_9dc0af1-x86_64-darwin.tar.bz2 |
@LnL7 I have downgraded back to High Sierra since the Mojave beta is really broken and I needed to work. I can try setting up a VM as well. |
I'm getting this whenever I try to use any nix related command (nix-env, nix-store, nix-channel, nix-shell, etc):
It's pretty obvious that this is a problem of compatibility with some system libraries that have disappeared, my only concern is how can I fix this if I can't even perform a nix-channel --update. |
@jbddc Is that using my tarball? If so you'll also have to use my nixpkgs branch to build packages, but that means there are no caches yet. I'm pretty sure we'll also need to build a new bootstrap tarball, then we can push it to a wip branch or staging to start making compatible binaries with hydra. /cc @copumpkin |
The "right" way to fix this is to reinstall Nix (with ALLOW_PREEXISTING_INSTALLATION to avoid uninstalling Nix). |
I'm a nix noob, but using @LnL7 tar's and nixpkgs (via |
I got some additional failures on the latest public beta:
Removing these lines from EDIT: Going to try LnL7/nixpkgs@5024e4a in my local checkout before I go deleting external symbols in earnest. Also downloading the XCode beta, just in case. EDIT2: Still got the undefined symbol errors, so I've got a build going with those deleted. Fingers crossed. EDIT3: Got through a basic build without any obvious issues. Rebuilding my full environment now. |
Since this is apparently still a bit in flux we should probably wait a bit longer before adding changes to nixpkgs. |
Following problem:
So the Am I using the repository in a wrong way? |
Finally got through a build with no substitutions. I keep getting |
@kirelagin Removing the undefined symbols from those files seems to have done the trick. My entire config built with Happy to push a PR with those changes if I can get confirmation that removing them won't have weird consequences for users on older versions of macOS. |
After using @LnL7's tarball, I'm still getting this error:
There is still one dynamic library that has been moved/removed in Mojave, I believe. |
@jbddc I don't know if this is a good choice. I just run |
@AurevoirXavier yeah that kinda worked. Thanks! |
Just as a gentle reminder: now that the necessary changes (NixOS/nixpkgs#42719) have been merged to master in nixpkgs, what needs to be done to fix the Mac installer? Is it just cutting a new release of Nix, and if so, is there a specific way to trigger that? Or at least, add this to some list of things that will trigger it once it weighs enough? |
Well, Nix releases are currently built from the 18.03 branch, so it's not enough to have the fix in master. Is the fix safe to cherry-pick in 18.03? |
FYI the latest binary tarball + installer script are at https://hydra.nixos.org/job/nix/master/binaryTarball.x86_64-darwin/latest and https://hydra.nixos.org/job/nix/master/installerScript/latest. |
I'm still running some builds to test the 18.03 backport just to be sure, but once those are finished we should be good to go. |
For the non-nix experts like me, this is how I got it installing (in a clean system), from @edolstra's tarball: $ wget https://hydra.nixos.org/build/80108588/download/1/nix-2.1pre6381_c651b7bd-x86_64-darwin.tar.bz2
$ gunzip -c nix-2.1pre6381_c651b7bd-x86_64-darwin.tar.bz2 | tar xopf -
$ rm -r nix-2.1pre6381_c651b7bd-x86_64-darwin/store/yvkvyvc36l2dmwl22vajc8bdg7fv3p6b-Libsystem-osx-10.11.6
$ nix-2.1pre6381_c651b7bd-x86_64-darwin && ./install I was then finally able to run I'm sure there's probably something I need in |
The backport is ready now, 18.03 should be compatible since https://hydra.nixos.org/eval/1475530 and the channel has already updated. @edolstra Everything should be ready, but it's probably fine to wait for a release with actual content (like #2371? 😄) since Mojave is probably still in beta for a while longer. |
I think this can be closed now. |
@LnL7 Has the updates to fix this issue been released? I'm still experiencing this issue with the latest release of Mojave 10.14 |
@vai0 Try reinstall nix after upgrading from high serria. |
@AurevoirXavier Didn't work :/. My eventual solution was to delete all references to |
Now you have broken store paths, and |
@vai0 But you dont have to do that. This problem was fixed since last two updates release. And reinstalling works for me. |
Problem solved. I was pinning the nixpkgs in my project, thanks! |
When trying to install on macOS Mojave Beta, doing
curl https://nixos.org/nix/install | sh
, the install fails immediately after creating all the users with the following message:This is after I uninstalled Nix and upgraded from High Sierra. How can I fix this?
The text was updated successfully, but these errors were encountered: