Skip to content

Instantly share code, notes, and snippets.

@byronmansfield
Last active November 27, 2023 18:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byronmansfield/86b81101930bfe027c641a2c11e152e8 to your computer and use it in GitHub Desktop.
Save byronmansfield/86b81101930bfe027c641a2c11e152e8 to your computer and use it in GitHub Desktop.
Install coreutils from source Mac OS X
# Install coreutils from source on Mac OS X
# prepare workspace
mkdir -p ~/code/build-from-src/ && cd $_
# download source code
curl -LO https://ftp.gnu.org/gnu/coreutils/coreutils-8.31.tar.xz
# expand
tar -xJvf coreutils-8.31.tar.xz
tar -xvf coreutils-8.31.tar.xz
cd coreutils-8.31
# configure, make, install automake
./configure --prefix=/usr/local --without-gmp gl_cv_func_ftello_works=yes
make
sudo make install
# verify coreutils
/usr/local/bin/ls --version
# clean up
make clean
make distclean
cd ..
rm -fr coreutils-8.31
rm coreutils-8.31.tar.xz
@mathisve
Copy link

Thank you!
Installed coreutils-9.4, you can find newer versions here: https://ftp.gnu.org/gnu/coreutils/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment