Background

MacFUSE is the port of FUSE to mac osx. project page at http://code.google.com/p/macfuse/

Install

Download dmg and run package installer

SSHFS

Patch sshfs:

[ytl@yee379-mac:~/Desktop/sshfs-fuse-1.7]$ patch -p1 < ../macfuse/filesystems/sshfs/sshfs-fuse-1.7-macosx.patch 
patching file Makefile.in
patching file sshfs.c

Setup compliation:

$ export CFLAGS="-D__FreeBSD__=10 -O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
$ export LDFLAGS="-arch i386 -arch ppc"
$ ./configure --prefix=/usr/local --disable-dependency-tracking

install glib2-devel

$ sudo port install glib2-devel
--->  Fetching glib2-devel
--->  Attempting to fetch glib-2.9.0.tar.bz2 from ftp://ftp.gtk.org/pub/gtk/v2.9
--->  Verifying checksum(s) for glib2-devel
--->  Extracting glib2-devel
--->  Applying patches to glib2-devel
--->  Configuring glib2-devel
--->  Building glib2-devel with target all
--->  Staging glib2-devel into destroot
--->  Packaging tgz archive for glib2-devel 2.9.0_0
--->  Installing glib2-devel 2.9.0_0
--->  Activating glib2-devel 2.9.0_0
Error: Target com.apple.activate returned: Image error: /opt/local/bin/glib-genmarshal is being used by the active glib2 port.  Please deactivate this port first, or use the -f flag to force the activation.
Error: Status 1 encountered during processing.
$ sudo port deactivate glib2 
Password:
--->  Deactivating glib2 
$ sudo port install glib2-devel
--->  Activating glib2-devel 2.9.0_0
--->  Cleaning glib2-devel
$ export SSHFS_CFLAGS="-D_FILE_OFFSET_BITS=64"
$ export SSHFS_LIBS="-pthread -L/opt/local/lib -lfuse -lglib-2.0 -lintl -liconv"
[ytl@yee379-mac:~/Desktop/sshfs-fuse-1.7]$ ./configure --prefix=/opt/local/ --disable-dependency-trackingchecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for library containing dlsym... none required
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SSHFS_CFLAGS... -D_FILE_OFFSET_BITS=64
checking for SSHFS_LIBS... -pthread -L/opt/local/lib -lfuse -lglib-2.0 -lintl -liconv
checking for fuse_opt_parse... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

  • No labels