alcatraz / Alcatraz

Package manager for Xcode
alcatraz.io
MIT License
9.88k stars 1.15k forks source link

can't install on OS X 10.11.2 and Xcode 7.2 #403

Closed tianxiewuhua closed 8 years ago

tianxiewuhua commented 8 years ago

i try command 'curl -fsSL https://raw.github.com/alcatraz/Alcatraz/master/Scripts/install.sh | sh' and failed with error 'mktemp: too few X's in template ‘com.mneorr.Alcatraz’'

ghost commented 8 years ago

Can verify this on my system as well.

guillaumealgis commented 8 years ago

Hmm interesting, I have no issue with mktemp -t foobar on my system.

Thanks!

ghost commented 8 years ago

In my case (I'm not the original filer of the bug):

Thors-MacBook-Pro:~ thor$ mktemp --version
mktemp (GNU coreutils) 8.24
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering and Eric Blake.
Thors-MacBook-Pro:~ thor$ type -a mktemp
mktemp is /usr/local/opt/coreutils/libexec/gnubin/mktemp
mktemp is /usr/bin/mktemp
mktemp is /usr/local/opt/coreutils/libexec/gnubin/mktemp

If you're wondering about the opt paths, having Homebrew installed may have something to do with the problem, since that would mean that the GNU version of the tool is being used, as opposed to the built-in OS X one (which doesn't even accept a --version switch).

guillaumealgis commented 8 years ago

Yep, that's what I was suspecting :/

Fixed in PR #404.

tianxiewuhua commented 8 years ago

this is output of mktemp --version

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering and Eric Blake.

and type -a mktemp

mktemp is /usr/local/opt/coreutils/libexec/gnubin/mktemp
mktemp is /usr/bin/mktemp
mktemp is /usr/bin/mktemp
guillaumealgis commented 8 years ago

Thanks @tianxiewuhua, this is the same problem as thor-the-norseman. You have installed the homebrew package coreutils, and force-linked its binaries. The result is that your mktemp binary (the GNU version from brew) is shadowing the system's binary (the BSD version, in /usr/bin/), hence the error.

See #404 for the full discussion, but there's a good chance this won't be "fixed" in Alcatraz, as the error comes from your particular setup.

jurre commented 8 years ago

As @guillaume-algis mentioned, this is not something we want to fix. Please install Alcatraz manually if you cannot use the default OSX utilities, the install script should be pretty straight forward to follow manually, or alternatively you could just clone the repository and build it in Xcode.

thanegill commented 8 years ago

For anyone that would like a temporary work around for this issue alias mktemp to /usr/bin/mktemp prior to running the install script and pipe into your current shell:

alias mktemp=/usr/bin/mktemp
curl -fsSL https://raw.github.com/alcatraz/Alcatraz/master/Scripts/install.sh | zsh
davidlondono commented 8 years ago

O.o still even if its not your problem you gatta make a solution for the community! or recommend something to do, at least on FAQ or I don't know, but this issue on google just head us to this github issues

georgel commented 8 years ago

Alternative fix:

brew uninstall coreutils curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh brew install coreutils