Skip to content

Instantly share code, notes, and snippets.

@wakwanza
Created April 2, 2015 07:21
Show Gist options
  • Save wakwanza/55d192fa15d8bf649e4e to your computer and use it in GitHub Desktop.
Save wakwanza/55d192fa15d8bf649e4e to your computer and use it in GitHub Desktop.
Build latest fuse and s3fs-fuse module for Google Cloud Storage and AWS S3 , Centos6
#!/bin/sh
#
function compile_bin { ./configure --prefix=/usr; make && make install; wait 3; }
function download_untar { wget -O - "http://downloads.sourceforge.net/fuse/fuse-2.9.3.tar.gz" | tar -xzvf - ; wget -O - "https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.78.tar.gz" | tar -xzvf - ; }
echo "Build the S3 fuse with native binaries"
download_untar
#
cd fuse-2.9.3
compile_bin
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/
ldconfig
modprobe fuse
cd ..
cd s3fs-fuse-1.78
./autogen.sh
compile_bin
cd ..
echo "Complete cleanup"
rm -rf fuse-2.9.3/ s3fs-fuse-1.78/
touch /etc/.passwd-s3fs
chmod 0600 /etc/.passwd-s3fs
echo "Install complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment