Centos6 s3fs 설치하기
짜증나게.. 되게 쉽게 설치될 것 같았던 goofys가 설치가 안됨.
처음에는 golang이랑, fuse 설치까지는 했는데,
중간에 go get하는데서 연결이 안됨..
github에서 goofys repo 연결을 못함.
이건 설치된 git version이 https로는 접속이 안되어서였고,
그래서 버전업 후 시도했는데, 이유는 모르겠는데 아무것도 안됨..
그래서 그냥 s3fs를 설치하기로 한다. 짜증난다..
어쩔 수 없이 s3fs를 설치하고 있지만 goofys가 성능이 더 좋다고 하니, 가능하면 goofys를 설치하는 게 더 좋을 듯 싶지만 나는 s3fs 설치함.
환경은 centos6..
1. 먼저 필요한 패키지들 설치한다.
sudo apt-get install automake autotools-dev fuse g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config
cd s3fs-fuse
./autogen.sh
./configure
make
sudo make install
Requested 'fuse >= 2.8.4' but version of fuse is 2.8.3
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables common_lib_checking_CFLAGS
and common_lib_checking_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
이렇게 나옴.
fuse 2.8.4 버전 이상을 요구하는데, 그것보다 낮은 버전이어서 그렇다고 한다..
3. fuse 상위 버전을 별도로 설치해야 한다.
cd /usr/local/src
wget https://github.com/libfuse/libfuse/releases/download/fuse-2.9.7/fuse-2.9.7.tar.gz
tar -xzvf fuse-2.9.7.tar.gz
rm -f fuse-2.9.7.tar.gz
mv fuse-2.9.7 fuse
cd fuse/
./configure --prefix=/usr
make
make install
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/
ldconfig