It has been 2 days that I have failed to install coreutils
.
Last 15 lines from /Users/Mehdi/Library/Logs/Homebrew/coreutils/03.make:
src/ginsta
This might be a stupid question but why are you still running OS 10.9? The current version is 10.12 and 10.13 will become out pretty soon. I'm not sure if this is related in any way to your issue but even the error message tells you that you "may encounter build failures or other breakages".
In short: Unless you have a very good reason not to (e.g. some apps that don't run on newer versions of macOS), I suggest updating to macOS 10.12 and see if it works there.
As stated in Clemens’ answer, Homebrew doesn’t support macOS 10.9. You can either:
Install coreutils
from source, with something like the following:
wget https://ftpmirror.gnu.org/coreutils/coreutils-8.25.tar.xz
tar xJf coreutils-8.25.tar.xz
cd coreutils-8.25/
./configure --prefix=/usr/local
make
sudo make install