Last active
February 4, 2025 03:48
-
-
Save byronmansfield/86b81101930bfe027c641a2c11e152e8 to your computer and use it in GitHub Desktop.
Install coreutils from source Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!
Installed
coreutils-9.4
, you can find newer versions here: https://ftp.gnu.org/gnu/coreutils/