Skip to content

Instantly share code, notes, and snippets.

@astronaut7
Created January 6, 2014 18:34
Show Gist options
  • Save astronaut7/8287315 to your computer and use it in GitHub Desktop.
Save astronaut7/8287315 to your computer and use it in GitHub Desktop.
script for installing s3fs on OSX.
#!/bin/bash
# adapted from
# https://gist.github.com/fukayatsu/3910097
# http://blog.jcuff.net/2011/01/many-s3-disk-log-files.html
brew install fuse4x
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
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
export PKG_CONFIG_PATH=/usr/local/Cellar/fuse4x/0.9.2/lib/pkgconfig
wget http://s3fs.googlecode.com/files/s3fs-1.19.tar.gz
tar zxvf s3fs-1.19.tar.gz
cd s3fs-1.19
./configure
make
sudo make install
echo "<aws_access_key>:<aws_secret_key>">> ~/.passwd-s3fs
chmod 600 ~/.passwd-s3fs
sudo mkdir -p /usr/local/opt/fuse4x/lib/
sudo cp /usr/local/Cellar/fuse4x/0.9.2/lib/* /usr/local/opt/fuse4x/lib/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment