I came across SSHFS in an article by Paul Gross and thought of trying it out. Unfortunately, I had to take a slightly more complicated route to have it installed with MacPorts on my laptop.
Running
sudo port install sshfs
caused this particular error to appear:
---> Building fusefs Error: Target org.macports.build returned: shell command "cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs" && xcodebuild -target "fusefs" -configuration Release build OBJROOT=build/ SYMROOT=build/ OBJROOT=build/ SYMROOT=build/" returned error 1 Command output: === BUILDING NATIVE TARGET fusefs WITH CONFIGURATION Release ===Checking Dependencies... Cpp build/Release/fusefs.kext/Contents/Info.plist build/fusefs.build/Release/fusefs.build/Info.plist cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs /usr/bin/gcc -E -P -x c -Wno-trigraphs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs/build/fusefs.build/Release/fusefs.build/Info.plist -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs/build/Release/fusefs.kext/Contents/Info.plist /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs/build/fusefs.build/Release/fusefs.build/Info.plist:1:33: error: common/fuse_version.h: No such file or directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs/build/fusefs.build/Release/fusefs.build/Info.plist:2:31: error: common/fuse_param.h: No such file or directory ** BUILD FAILED ** Error: The following dependencies failed to build: fusefs libfuse Error: Status 1 encountered during processing.
A quick spot of googling found the answer to this pretty quickly. Hans-Göran (comment #24) mentioned that he managed to install fusefs after copying the files that the error was complaining were missing.
At first glance, it seems that the file in question (common/fuse_param.h) is indeed present in the build directory. It appears that the error is being triggered from the property list file for the build.
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs/build/fusefs.build/Release/fusefs.build/Info.plist
Taking a look at its contents reveals that it’s including 2 header files from its containing directory
#include "common/fuse_version.h" #include "common/fuse_param.h"
So I copied over the missing directory and re-ran the sshfs install.
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fusefs/work/fusefs sudo cp -r common build/fusefs.build/Release/fusefs.build/ sudo port install sshfs ---> Fetching libfuse ---> Attempting to fetch fuse-2.6.5-macosx.patch from http://macfuse.googlecode.com/svn/tags/macfuse-0.4.0/libfuse/ ---> Attempting to fetch fuse-2.6.5.tar.gz from http://downloads.sourceforge.net/fuse ---> Verifying checksum(s) for libfuse ---> Extracting libfuse ---> Applying patches to libfuse ---> Configuring libfuse ---> Building libfuse with target all ---> Staging libfuse into destroot ---> Installing libfuse 2.6.5_1 ---> Activating libfuse 2.6.5_1 ---> Cleaning libfuse ---> Fetching sshfs ---> Attempting to fetch sshfs-fuse-1.7-macosx.patch from http://macfuse.googlecode.com/svn/tags/macfuse-0.4.0/filesystems/sshfs ---> Attempting to fetch sshfs-fuse-1.7.tar.gz from http://downloads.sourceforge.net/fuse ---> Verifying checksum(s) for sshfs ---> Extracting sshfs ---> Applying patches to sshfs ---> Configuring sshfs ---> Building sshfs with target all ---> Staging sshfs into destroot ---> Installing sshfs 1.7_5 ---> Activating sshfs 1.7_5 ---> Cleaning sshfs
Now sshfs is installed!