Centos: Using Amazon S3 (s3fs) on 64bit System and building fuse 2.8.4
I wanted to use s3fs on my Centos 5.5 64bit System from code.google.com/p/s3fs/wiki/FuseOverAmazon to use Amazon S3 on my server for backing up data.
I wanted to use the version mentioned on https://www.vitki.net/book/page/using-amazon-s3-backup-your-server but it is only for i386
Building the s3fs Tool would be a very simply task, if a fuse >= 2.8.4 would be available for Centos, but the currently newest version is fuse-2.7.4-8.el5.x86_64
So i downloaded the fuse source rpm from https://rpm.vitki.net/pub/SRPMS/fuse-2.8.5-99.vitki.01.el5.src.rpm and build it myself.
rpmbuild --rebuild fuse-2.8.5-99.vitki.01.el5.src.rpm
This was very easy but pkg-config did not find it when i wanted to build s3fs:
checking pkg-config is at least version 0.9.0... yes
The reason is that the fuse.pc required for pkg-config was not in the lib64 directory. i solved it by symlinking the one found in /usr/local/lib/pkgconfig/fuse.pc
ln -s /usr/local/lib/pkgconfig/fuse.pc /usr/lib64/pkgconfig/fuse.pc
if you want to create it yourself:
create a file fuse.pc in /usr/lib64/pkgconfig such as:
I did the same on a RHEL 6 machine and encountered alot of different problems now. first of all i start which packages were missing and which had to be installed first:
Unfortunately my libssh2 was from rpmforge and was not compatible with libssh2-devel from base, therefore i had to downgrade it
yum downgrade libssh2.x86_64
Doing this on a i386 System is different obviously - you can get this directly: