title: Compiling NTFS-3G for OS X
body: <p>After noticing that the <a href="https://github.com/osxfuse/osxfuse/wiki/NTFS-3G" rel="nofollow">recommended</a> installation of NTFS-3G is the five years old 2010.10.2 because it was conveniently available as .pkg, I wanted to give a try at compiling latest 2015.3.14 from <a href="https://www.tuxera.com/community/open-source-ntfs-3g/" rel="nofollow">official website</a>. <em>Please note that I do not want to install it from Brew or Macports, but install it manually</em></p>
  
  <p>So I tried:</p>
  
  <pre><code>./configure &amp;&amp; make &amp;&amp; sudo make install
  </code></pre>
  
  <p>But it told me <code>pkg-config</code> was not installed, so I installed it from <a href="http://www.freedesktop.org/wiki/Software/pkg-config/" rel="nofollow">http://www.freedesktop.org/wiki/Software/pkg-config/</a> using <code>./configure --with-internal-glib; make; sudo make install</code> and I got:</p>
  
  <pre><code>[...]
  Making install in .
   ./install-sh -c -d '/usr/local/bin'
    /bin/sh ./libtool   --mode=install /usr/bin/install -c pkg-config '/usr/local/bin'
  libtool: install: /usr/bin/install -c pkg-config /usr/local/bin/pkg-config
  /Applications/Xcode.app/Contents/Developer/usr/bin/make  install-exec-hook
  cd /usr/local/bin &amp;&amp; ln pkg-config x86_64-apple-darwin15.0.0-pkg-config
  ln: x86_64-apple-darwin15.0.0-pkg-config: File exists
  make[3]: *** [install-exec-hook] Error 1
  make[2]: *** [install-exec-am] Error 2
  make[1]: *** [install-am] Error 2
  make: *** [install-recursive] Error 1
  </code></pre>
  
  <p>I ignored it and I tried again to install NTFS-3G:</p>
  
  <pre><code>./configure &amp;&amp; make &amp;&amp; sudo make install
  </code></pre>
  
  <p>But this time I got:</p>
  
  <pre><code>[...]
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /usr/local/lib/libntfs-3g.a(libntfs_3g_la-compat.o) has no symbols
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /usr/local/lib/libntfs-3g.a(libntfs_3g_la-debug.o) has no symbols
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /usr/local/lib/libntfs-3g.a(libntfs_3g_la-realpath.o) has no symbols
  /Applications/Xcode.app/Contents/Developer/usr/bin/make  install-exec-hook
  if [ ! "/lib" -ef "/usr/local/lib" ]; then \
          /bin/mv -f "//usr/local/lib"/libntfs-3g.so* "//lib";  \
      fi
  mv: rename //usr/local/lib/libntfs-3g.so* to //lib/libntfs-3g.so*: No such file or directory
  make[3]: *** [install-exec-hook] Error 1
  make[2]: *** [install-exec-am] Error 2
  make[1]: *** [install-am] Error 2
  make: *** [install-recursive] Error 1
  </code></pre>
  
  <p>Then I tried:</p>
  
  <pre><code>./configure --exec-prefix=/ &amp;&amp; make &amp;&amp; sudo make install
  </code></pre>
  
  <p>But I got:</p>
  
  <pre><code>[...]
  install: //bin/ntfsfix: Operation not permitted
  make[2]: *** [install-binPROGRAMS] Error 71
  make[1]: *** [install-am] Error 2
  make: *** [install-recursive] Error 1
  </code></pre>
  
  <p>Then I tried:</p>
  
  <pre><code>./configure --exec-prefix=/usr/local &amp;&amp; make &amp;&amp; sudo make install
  </code></pre>
  
  <p>But I got:</p>
  
  <pre><code>[...]
  install: chmod 755 /sbin: Operation not permitted
  ln -s -f /usr/local/sbin/mkntfs /sbin/mkfs.ntfs
  ln: /sbin/mkfs.ntfs: Operation not permitted
  make[3]: *** [install-exec-hook] Error 1
  make[2]: *** [install-exec-am] Error 2
  make[1]: *** [install-am] Error 2
  make: *** [install-recursive] Error 1
  </code></pre>
  
  <p>I'm using OS X 10.11 El Capitan.</p>