Skip to content

Installation From Source

James Fantin-Hardesty edited this page Oct 30, 2024 · 9 revisions

Linux

1. Install latest version of Go

Follow this installation from Go.

2. Clone the GitHub repository

git clone https://github.com/Seagate/cloudfuse/
cd cloudfuse
git checkout -b main origin/main

If you do not have git, install git via sudo apt-get install git

3. Install Dependencies

Cloudfuse requires compiling against the libfuse library. It also requires using cgo so a c compiler like gcc will need to be installed as well.

Debian / Ubuntu

sudo apt-get install libfuse-dev gcc

CentOS / RedHat

sudo yum install fuse fuse-libs gcc-c++

4. Build

CGO must be enabled when building on Linux. If not already, run the following to enable CGO.

go env -w CGO_ENABLED=1

Run the build script located in the root folder of the repository. This should produce a binary called "cloudfuse" which you can run on the terminal.

./build.sh

If you would also like to build the health monitor binary, run the following command

./build.sh health

Windows

1. Install latest version of Go

Follow this installation from Go.

2. Clone the GitHub repository

Using git bash on Windows

git clone https://github.com/Seagate/cloudfuse/
cd cloudfuse
git checkout -b main origin/main

If you do not have git, install git from here.

3. Install WinFSP

Follow this to install WinFSP.

4. Build

CGO must not be enabled when building on Windows. If not already, run the following to disable CGO.

go env -w CGO_ENABLED=0

Run the build script located in the root folder of the repository using git bash. This should produce an executable called "cloudfuse.exe" which you can run on the terminal.

./build.sh

If you would also like to build the health monitor binary, run the following command

./build.sh health