Closed tianxiewuhua closed 8 years ago
Can verify this on my system as well.
Hmm interesting, I have no issue with mktemp -t foobar
on my system.
mktemp --version
and type -a mktemp
here?Thanks!
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).
Yep, that's what I was suspecting :/
Fixed in PR #404.
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
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.
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.
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
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
Alternative fix:
brew uninstall coreutils
curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
brew install coreutils
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’'