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

Installation on Darwin broken #1468

Closed
lukeadams opened this issue Jul 16, 2017 · 6 comments
Closed

Installation on Darwin broken #1468

lukeadams opened this issue Jul 16, 2017 · 6 comments

Comments

@lukeadams
Copy link

lukeadams commented Jul 16, 2017

The installscript errors on a fresh macOS Sierra VM (full output):

---- oh no! --------------------------------------------------------------------
That is okay, but we can't install.

We'd love to help if you need it.

If you can, open an issue at https://github.com/nixos/nix/issues

Or feel free to contact the team,
 - on IRC #nixos on irc.freenode.net
 - on twitter @nixos_org

The issue seems to be with the multiuser [y/n] prompts taking piped input from curl, causing it to default to n for all prompts.

Running

curl https://nixos.org/nix/install > install.sh
chmod +x install.sh
./install.sh

allows installation to proceed with no issues.

@domenkozar
Copy link
Member

@lukeadams we have prepared a fix for this, can you test:

curl https://static.domenkozar.com/install-nix-1.11.13 | sh

This uses the upcoming Nix 1.11.13 /cc @grahamc

@lukeadams
Copy link
Author

lukeadams commented Jul 17, 2017

I can test it later today on a clean VM, but re-running it on my Sierra VM with nix already installed prints this where I assume it would have asked for y/n:
No TTY, assuming you would say yes :)
Since it assumes yes, it "works"

@dieideeistgut
Copy link

dieideeistgut commented Jul 17, 2017

Hello, in installed this on a clean Sierra machine. Installation worked perfectly as far as i can confirm. Strangely some installed binarys are not working compared to my older El Capitan machine. If i build fish shell via nix it will only open in a debug-mode stating that:

<W> fish: Could not set up terminal.
<W> fish: TERM environment variable set to 'xterm-256color'.
<W> fish: Check that this terminal type is supported on this system.
<W> fish: Using fallback terminal type 'ansi'.
<W> fish: Could not set up terminal using the fallback terminal type 'ansi'.
<W> fish: Using fallback terminal type 'dumb'.
<W> fish: Could not set up terminal using the fallback terminal type 'dumb'.

Thought this would be my fault, fixed and double-checked terminfo. I assume my issue with htop is about the same:

Error opening terminal: xterm-256color.

Spent some hours on this without any success or more informations. maybe someone here has an idea?

@shnarazk
Copy link

Hi, @dieideeistgut
We need to set TERMINFO to run programs using ncurses:

export TERMINFO=/usr/share/terminfo

It's a bug in nix 1.11.12, I think.

@dieideeistgut
Copy link

Wow - Didn't know that - Thanks alot! I even tried this before so i must have had a combination of corrupted macos terminfo files and this issue here. Thanks again!

@grahamc
Copy link
Member

grahamc commented Jul 18, 2017

For what it is worth, 1.11.13 is now released.

The TERMINFO is a problem with Nixpkgs, not Nix. The issue has been patched in Nixpkgs already, however the nixpkgs-unstable channel hasn't updated to contain the fix yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants