Installing from source on RHEL5 and CENTOS5 is quite painless. Fuse needs to compile a kernel module for your kernel. I started from a minimal install, and did the following:

Update 12/6/2007: There is a bug with more recent updates of RHEL5 (Similar or the same as this bug: https://bugzilla.redhat.com/show_bug.cgi?id=228430). The bug will cause the original “yum install” command to fail with the following:

Error: No Package Matching glibc.i686

To prevent that, install glibc first, then install the rest of the stuff you want:

yum install glibc

yum install kernel-devel gcc kernel-headers openssl gcc-c++ openssl-devel boost-devel

Update (2/5/2008): I added boost-devel to the install list, because of an error I encountered installing on CentOS 4.

checking boost/shared_ptr.hpp usability… no
checking boost/shared_ptr.hpp presence… no
checking for boost/shared_ptr.hpp… no
configure: error:
Can’t find boost/shared_.h – add the boost include dir to CPPFLAGS and
rerun configure, eg:
export CPPFLAGS=-I/usr/local/include

Download latest fuse (2.7.1 at this time 10/2007)

wget http://internap.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.1.tar.gz

Download latest rlog (1.3.7 at this time)

wget http://freshmeat.net/redir/rlog/47815/url_tgz/rlog-1.3.7.tgz

Download latest encFS (1.3.2-1 at this time)

wget http://freshmeat.net/redir/encfs/45687/url_tgz/encfs-1.3.2-1.tgz

Rlog:

tar -xvzf rlog-1.3.7.tgz

cd rlog-1.3.7

./configure

make

make install

Fuse: lather, rinse

tar -xvzf fuse-2.7.1.tar.gz

cd fuse-2.7.1

./configure

make

make install

encF: and repeat

tar -xzvf encfs-1.3.2-1.tgz

cd encfs-1.3.2

./configure

make

make install

Start fuse:

/etc/init.d/fuse start

Fix init script for CentOS, replace the startup information at the top with:

### BEGIN INIT INFO
# chkconfig: 2345 90 10
# description:       Load the fuse module and mount the fuse control
#       filesystem.
### END INIT INFO

Run:

chkconfig –add fuse

Create an Encrypted Filesystem (Its not really a filesystem… but I digress) as a test:

encfs /usb/disk1/.crypt-raw /usb/disk1/crypt-mount

It really is that easy. Good luck! :)

2 Comments

  1. Sandr says:

    hi thnx for this
    but on step
    make (for fuse)
    i get error>>
    make
    Making all in kernel
    make[1]: Entering directory `/root/inst/fuse-build/kernel’
    make -C /usr/src/kernels/2.6.18-8.el5-i686 SUBDIRS=`pwd` modules
    make[2]: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686′
    make[3]: *** No rule to make target `/root/inst/fuse-build/kernel/dev.o’, needed by `/root/inst/fuse-build/kernel/fuse.o’. Stop.
    make[2]: *** [_module_/root/inst/fuse-build/kernel] Error 2
    make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686′
    make[1]: *** [all-spec] Error 2
    make[1]: Leaving directory `/root/inst/fuse-build/kernel’
    make: *** [all-recursive] Error1

    can you help?
    i have CentOS 5
    (kernel-devel-2.6.18-8.el5
    kernel-2.6.18-8.el5
    kernel-headers-2.6.18-8.el5)

  2. Amza Marian says:

    @Sandr: Any recent kernel have ‘userspace’ (fuse module). Why not upgrade the kernel ?.
    Try 2.6.24.5 or latest.

Leave a Reply