MacFUSE, EncFS, Snow Leopard, and MacBook Pro 2011

There is a problem with modern Macs and MacFUSE: Since every recently shipped Mac has set the Mac OS X kernel to 64bit mode by default, MacFUSE 2.0.3 wont run properly anymore.

Unfortunately, there hasn’t been any official release that fully supports the 64bit kernel yet. However, there seem to be two unofficial releases (namely 2.1.7 and 2.1.9), that work around this problem. Some reading in several Google groups indicates to me, that at least the 2.1.7 “release” should be avoided, because it suffers from serious issues (e.g. it is not considered to be thread safe).

However, the second release seems to work fine for people.

Remove MacFUSE first

Before you download and install this version, make sure to unsinstall the current installation of MacFUSE first.

You can do so by opening the System Preferences and choose “Remove MacFUSE” from the MacFUSE preference panel.

Also, if you installed MacFUSE using Macports, make sure to uninstall the package using macports.

$ sudo port uninstall macfuse

In order to make sure, that MacFUSE has been successfully removed, check that the following files are not present anymore.

  • MacFUSE file system bundle (/Library/Filesystems/fusefs.fs)
  • MacFUSE Objective-C framework (/Library/Frameworks/MacFUSE.framework)
  • MacFUSE C-based libraries (/usr/local/lib/*fuse*.dylib) and headers (/usr/local/include/fuse*)
  • MacFUSE preference pane (/Library/PreferencePanes/MacFUSE.prefPane)

(List taken from the MacFUSE FAQ.)

Remove EncFS

In my case, I need MacFUSE in order to use EncFS to store encrypted files on my Dropbox. If you are using some other filesystem with MacFUSE I strongly suggest to remove it first and reinstall it later in order to make sure, that the 64bit version is used.

There are several ways to install encfs. Depending on which you chose, there are different ways to remove it again.

In the course of this tutorial we will later install encfs in /usr/local/. So just make sure that it not installed in any other path anymore. Especially, if you installed it using macports, uninstall it now.

$ sudo port uninstall encfs

Remove macports

I highly recommend to switch from MacPorts to Homebrew. The later is a replacement for the former and seems to be much more actively supported. Find instructions on how to remove macports in the macports online documentation.

When done, checkout Homebrew and install it as described on its GitHub page. Use the default install prefix. This will make Homebrew install packages in /usr/local/.

Perquisites

In order to install MacFUSE and EncFS on Snow Leopard in 64bit mode, you will need the following:

Install EncFS 1.7.4 using Homebrew

Simply enter the following line in a terminal window.

$ brew install encfs

Homebrew will download and install all required dependencies automatically.

Advertisements

4 responses to “MacFUSE, EncFS, Snow Leopard, and MacBook Pro 2011

  1. How far is Homebrew better than macports?

    I does’ nt heart so much about homebrew before, has it more ports than macports? Or why do you think it’s better?

    • Well, even now Macports has probably 3 to 4 times more ports than Homebrew. But just the number of ports is not relevant. The question is which one fits your needs. Homebrew is more lightweight than Macports. If Homebrew has all you need (which is my case until now), then it might be a better fit. But if something vital to you is missing, then go for Macports.

  2. Does somebody tried to run EncfsVault (http://code.google.com/p/encfsvault/)? Or is it stil broken in Snow Leopard?

  3. Tobias–

    Thanks much for your instructions on removing MacFUSE. I was having all sorts of warning messages from HomeBrew like “Unexpected .pc files:
    /usr/local/lib/pkgconfig/fuse.pc” and such. Since I didn’t have MacPorts installed anymore, I combined your hints above about how to make sure MacFUSE is removed with the modifications mentioned at this post: https://groups.google.com/forum/#!msg/macfuse/x5jGIf0DPFM/Mg4hduYcCrEJ

    My system is running Mountain Lion so I instead modified the uninstall-macfuse-
    core.sh uname -r test to be version 12* instead of 10* or 11*. Ran the script as mentioned in that post, then removed the MacFUSE (Tuxera) preference pane by right-clicking and removing, and last used your steps to verify that all of MacFUSE was gone.

    Now a “brew doctor” command reports back with good news:
    Your system is raring to brew.

    Thanks again for the tip in the right direction!
    -paul

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s