Skip to content

Instantly share code, notes, and snippets.

@gukandrew
Created March 12, 2022 18:18
Show Gist options
  • Save gukandrew/a5a12815028b58677315d4ed2d9b55e9 to your computer and use it in GitHub Desktop.
Save gukandrew/a5a12815028b58677315d4ed2d9b55e9 to your computer and use it in GitHub Desktop.
Script to install fuse-ext2 on M1 Mac
#!/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