Forked from byronmansfield/install-coreutils-from-src-mac
Created
February 4, 2025 03:48
-
-
Save JamesHopbourn/fb252d1204a05ebe4d456be738d96d8e 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