Created
March 12, 2022 18:18
-
-
Save gukandrew/a5a12815028b58677315d4ed2d9b55e9 to your computer and use it in GitHub Desktop.
Script to install fuse-ext2 on M1 Mac
This file contains 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
#!/bin/zsh | |
# Script to install fuse-ext2 on M1 Mac | |
# Install dependencies | |
#brew install e2fsprogs m4 automake autoconf libtool pkg-config | |
cd ~/ | |
if [ ! -d ~/fuse-ext2 ]; then | |
git clone https://github.com/alperakcan/fuse-ext2.git | |
fi | |
cd fuse-ext2 | |
git pull | |
./autogen.sh | |
./configure \ | |
PKG_CONFIG_PATH="$(brew --prefix e2fsprogs)/lib/pkgconfig" \ | |
CFLAGS="-idirafter/$(brew --prefix e2fsprogs)/include -idirafter/opt/homebrew/include/osxfuse" \ | |
LDFLAGS="-L$(brew --prefix e2fsprogs)/lib" | |
make | |
# To install on the current system | |
# sudo make install | |
# To create an install package on the desktop | |
make package | |
mv fuse-ext2*.dmg ~/Desktop/fuse-ext2.dmg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment