Skip to content

Instantly share code, notes, and snippets.

@yangtheman
Created July 22, 2012 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yangtheman/3161137 to your computer and use it in GitHub Desktop.
Save yangtheman/3161137 to your computer and use it in GitHub Desktop.
Brew install ntfs-3g lion
newshinymac:~ yangtheman$ /Developer/usr/bin/xcodebuild -version
Xcode 4.2
Build version 4D199
newshinymac:~ yangtheman$ brew install ntfs-3g
==> Installing ntfs-3g dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.tar.gz
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.27 --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig
==> make
==> make check
==> make install
/usr/local/Cellar/pkg-config/0.27: 9 files, 636K, built in 72 seconds
==> Installing ntfs-3g dependency: autoconf
==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
######################################################################## 100.0%
==> Patching
patching file bin/autoreconf.in
==> ./configure --prefix=/usr/local/Cellar/autoconf/2.69
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Xcode (up to and including 4.2) provides (a rather old) Autoconf.
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:
LDFLAGS -L/usr/local/Cellar/autoconf/2.69/lib
CPPFLAGS -I/usr/local/Cellar/autoconf/2.69/include
==> Summary
/usr/local/Cellar/autoconf/2.69: 67 files, 1.9M, built in 23 seconds
==> Installing ntfs-3g dependency: automake
==> Downloading http://ftpmirror.gnu.org/automake/automake-1.12.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/automake/1.12.2
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Xcode (up to and including 4.2) provides (a rather old) Automake.
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:
LDFLAGS -L/usr/local/Cellar/automake/1.12.2/lib
CPPFLAGS -I/usr/local/Cellar/automake/1.12.2/include
==> Summary
/usr/local/Cellar/automake/1.12.2: 129 files, 2.0M, built in 17 seconds
==> Installing ntfs-3g dependency: libtool
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.2 --program-prefix=g --enable-ltdl-install
==> make install
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Xcode (up to and including 4.2) provides (a rather old) Libtool.
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:
LDFLAGS -L/usr/local/Cellar/libtool/2.4.2/lib
CPPFLAGS -I/usr/local/Cellar/libtool/2.4.2/include
==> Summary
/usr/local/Cellar/libtool/2.4.2: 64 files, 2.1M, built in 31 seconds
==> Installing ntfs-3g dependency: fuse4x-kext
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/fuse4x-kext-0.9.1.lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fuse4x-kext-0.9.1.lion.bottle.tar.gz
==> Caveats
In order for FUSE-based filesystems to work, the fuse4x kernel extension
must be installed by the root user:
sudo cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.1/Library/Extensions/fuse4x.kext /Library/Extensions
sudo chmod +s /Library/Extensions/fuse4x.kext/Support/load_fuse4x
If upgrading from a previous version of Fuse4x, the old kernel extension
will need to be unloaded before performing the steps listed above. First,
check that no FUSE-based filesystems are running:
mount -t fuse4x
Unmount all FUSE filesystems and then unload the kernel extension:
sudo kextunload -b org.fuse4x.kext.fuse4x
==> Summary
/usr/local/Cellar/fuse4x-kext/0.9.1: 6 files, 268K
==> Installing ntfs-3g dependency: fuse4x
==> Downloading https://github.com/fuse4x/fuse/tarball/fuse4x_0_9_1
######################################################################## 100.0%
==> autoreconf --force --install
==> ./configure --disable-static --prefix=/usr/local/Cellar/fuse4x/0.9.1
==> make install
/usr/local/Cellar/fuse4x/0.9.1: 17 files, 716K, built in 24 seconds
==> Installing ntfs-3g
==> Downloading http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2012.1.15.tgz
######################################################################## 100.0%
==> Patching
patching file configure
Hunk #1 succeeded at 20554 (offset 24 lines).
==> ./configure --disable-debug --prefix=/usr/local/Cellar/ntfs-3g/2012.1.15 --exec-prefix=/usr/local/Cellar/ntfs-3g/2012.1.15 --mandir=/usr/local/Cellar/ntfs-3
==> make
==> make install
==> Caveats
To replace the default Mac OSX automounter:
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig
sudo ln -s /usr/local/Cellar/ntfs-3g/2012.1.15/sbin/mount_ntfs /sbin/mount_ntfs
The automount will set the permissions for the current logged in user,
otherwise it will set them for the user that installed ntfs-3g.
The automount support script is based on the information provided at
http://fernandoff.posterous.com/ntfs-write-support-on-osx-lion-with-ntfs-3g-f
Remember to install the fuse4x kernel extension as the root user.
Instructions are found here:
brew info fuse4x-kext
==> Summary
/usr/local/Cellar/ntfs-3g/2012.1.15: 41 files, 4.9M, built in 41 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment