Updated on 2026-07-29 GMT+08:00

libfuse Installation Guide

This section uses libfuse 2.9.7 as an example to describe how to install libfuse on CentOS 7, SUSE 12, and Ubuntu 16.

Prerequisites

You have obtained the root permission and installed the compilation tool and dependencies.

CentOS 7

sudo yum install -y gcc make pkg-config libtool

Ubuntu 16

sudo apt install -y gcc make pkg-config libtool

You have downloaded and decompressed the libfuse source code.

wget https://github.com/libfuse/libfuse/releases/download/fuse-2.9.7/fuse-2.9.7.tar.gz
tar -zxvf fuse-2.9.7.tar.gz

You have obtained the root permission and generated libfuse.so.2.9.7 after compilation.

cd fuse-2.9.7/ && ./configure && make && make install
echo -e '\n/usr/local/lib' >> /etc/ld.so.conf
ldconfig

Installing libfuse on CentOS 7

libfuse.so.2.9.2 is installed on CentOS 7 by default.

Ensure that you have downloaded the libfuse source code and generated libfuse.so.2.9.7 after compilation as described in Prerequisites. Then perform the following steps.

  1. Run the following command to locate the links of the libfuse.so.2.9.2 library:

    find / -name libfuse.so*

  2. Run the following command to copy libfuse.so.2.9.7 to the directory where the libfuse.so.2.9.2 library resides.

    cp /usr/local/lib/libfuse.so.2.9.7 /usr/lib64/

  3. Run the following commands to delete all links of the libfuse.so library of the earlier version:

    rm -f /usr/lib64/libfuse.so
    rm -f /usr/lib64/libfuse.so.2

  4. Run the following commands to create links of the libfuse.so.2.9.7 library similar to the deleted ones of the libfuse.so library of the earlier version:

    ln -s /usr/lib64/libfuse.so.2.9.7 /usr/lib64/libfuse.so
    ln -s /usr/lib64/libfuse.so.2.9.7 /usr/lib64/libfuse.so.2

Installing libfuse on SUSE 12

libfuse.so.2.9.3 is installed on SUSE 12 by default.

Ensure that you have downloaded the libfuse source code and generated libfuse.so.2.9.7 after compilation as described in Prerequisites. Then perform the following steps.

  1. Run the following command to locate the links of the libfuse.so.2.9.3 library:

    find / -name libfuse.so*

  2. Run the following command to copy libfuse.so.2.9.7 to the directory where the libfuse.so.2.9.3 library resides.

    cp /usr/local/lib/libfuse.so.2.9.7 /usr/lib64/

  3. Run the following command to delete all links of the libfuse.so library of the earlier version:

    rm -f /usr/lib64/libfuse.so.2
    rm -f /lib64/libfuse.so.2.9.3

  4. Run the following commands to create links of libfuse.so.2.9.7 library similar to the deleted ones of the libfuse.so library of the earlier version:

    ln -s /usr/lib64/libfuse.so.2.9.7 /usr/lib64/libfuse.so.2 
    ln -s /usr/lib64/libfuse.so.2.9.7 /lib64/libfuse.so.2.9.7

Installing libfuse on Ubuntu 16

libfuse.so.2.9.4 is installed on Ubuntu 16 by default.

Ensure that you have downloaded the libfuse source code and generated libfuse.so.2.9.7 after compilation as described in Prerequisites. Then perform the following steps.

  1. Run the following command to locate the links of the libfuse.so.2.9.4 library:

    find / -name libfuse.so*

  2. Run the following command to copy libfuse.so.2.9.7 to the directory where the libfuse.so.2.9.4 library resides.

    cp /usr/local/lib/libfuse.so.2.9.7 /lib/x86_64-linux-gnu/

  3. Run the following command to delete all links of the libfuse.so library of the earlier version:

    rm -f /lib/x86_64-linux-gnu/libfuse.so.2

  4. Run the following command to create links of libfuse.so.2.9.7 library similar to the deleted ones of the libfuse.so library of the earlier version:

    ln -s /lib/x86_64-linux-gnu/libfuse.so.2.9.7 /lib/x86_64-linux-gnu/libfuse.so.2