Skip to content

Instantly share code, notes, and snippets.

@fukayatsu
Created October 18, 2012 05:53
Show Gist options
  • Save fukayatsu/3910097 to your computer and use it in GitHub Desktop.
Save fukayatsu/3910097 to your computer and use it in GitHub Desktop.
use s3fs-cloudpack on mac osx mountain lion

fuse4x

$ brew install fuse4x

brewの支持にしたがって以下を実行

$ sudo /bin/cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.2/Library/Extensions/fuse4x.kext /Library/Extensions
$ sudo chmod +s /Library/Extensions/fuse4x.kext/Support/load_fuse4x

curl

$ cd ~/tmp
$ wget http://curl.haxx.se/download/curl-7.28.0.tar.gz
$ tar -zxvf curl-7.28.0.tar.gz
$ cd curl-7.28.0
$ ./configure
$ make
$ sudo make install

libxml2

$ cd ~/tmp
$ wget ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz
$ tar zxvf libxml2-2.8.0.tar.gz
$ cd libxml2-2.8.0/
$ ./configure
$ make
$ sudo make install

s3fs-cloudpack

$ cd  ~/tmp
$ git clone git://github.com/memorycraft/s3fs-cloudpack.git
$ chmod 755 configure
$ ./configure PKG_CONFIG_PATH=/usr/lib/pkgconfig
$ make
$ sudo make install

access-key-id & secret-key

$ echo "<アクセスキーID>:<シークレットキー>" >> ~/.passwd-s3fs
$ chmod 600 ~/.passwd-s3fs

これはバケット単位で指定したり、/etc/passwd-s3fsに置くこともできるみたい。

test

$mkdir ~/foo-bar
$ s3fs foo-bar ~/foo-bar
$ df

s3fs@fuse0とか表示されてればおk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment