2010/05/20

sshfs のインストール

http://sourceforge.net/projects/fuse/files/


ダウンロード
% wget "http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.7.6/fuse-2.7.6.tar.gz?use_mirror=jaist"


% tar zxvf fuse-2.7.6.tar.gz
% cd fuse-2.7.6
% ./configure
..
configure:
NOTE: Detected that FUSE is already present in the kernel, so
NOTE: building of kernel module is disabled. To force building
NOTE: of kernel module use the '--enable-kernel-module' option.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h

% make
# make install

# ln -s /usr/local/lib/libfuse.so.2 /lib/

これをやっておかないとsshfs実行時に以下のエラーが出る.

sshfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory


sshfs-fuse

% wget "http://downloads.sourceforge.net/project/fuse/sshfs-fuse/2.2/sshfs-fuse-2.2.tar.gz?use_mirror=jaist"


% tar zxvf sshfs-fuse-2.2.tar.gz
% cd sshfs-fuse-2.2
% ./configure
% make
% make install


modprobe fuse

で sshfsが使えるようになる.



# sshfs name@hoge.hoge:/test /test

参考)sshfs インストールログ
http://12158.diarynote.jp/200908042121271913/