Obtaining and installing LizardFS from source¶
Installing LizardFS from source¶
The current LizardFS source code can be obtained from our github project page. You can either download a zip archive by choosing the respective version in the Branch tab or use git to clone the source tree.
LizardFS uses CMake as its build system. To compile the sources, follow the directions outlined below.
Install all required dependencies. For Debian-based distributions run:
apt install git cmake g++ libspdlog-dev libfuse3-dev libfuse-dev fuse isal libisal-dev libboost-all-dev asciidoc-base zlib1g-dev pkg-config libthrift-dev libcrcutil-dev libjudy-dev libpam0g-dev libdb-dev libgtest-dev
Note that packages’ names may vary on different Linux distributions.
Create a build directory
buildinside the source directory:cd lizardfs mkdir build cd build
Inside
builddirectory run:cmake ..
Useful options include
-DENABLE_TESTS,-DCMAKE_INSTALL_PREFIX,-DCMAKE_BUILD_TYPEas well as various LizardFS-specific-DENABLE_<something_or_other>options. Options are listed when CMake is ran and can be modified by re-running CMake:cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/lizardfs
Alternatively you can list all available options by running:
cmake -LAH ..
If you want to enable Google tests, run:
cmake .. -DENABLE_TESTS=ON
Run
makein the build directory:makeIf you want to speed up your compilation, make use of multiple jobs running simultaneously:
make -j4
Run
make installto install files (you may need to berootuser):sudo make install
Now you have a full installation of LizardFS compiled from source code.
For build instructions on operating systems other than Linux, please refer to Setting up a development workspace.