Obtaining and installing LizardFS from Source¶
Installing LizardFS from source¶
The current LizardFS source code can be obtained from our github (https://github.com/lizardfs/lizardfs) project page. You can either download a tarball from there by choosing the respective version in the Branch tab on the left or use git to clone the sourcetree.
LizardFS uses CMake as its build system. To compile the sources, follow the directions outlined below.
Create a build directory inside the source directory:
cd lizardfs-source mkdir build
inside the build directory. Useful options include -DCMAKE_INSTALL_PREFIX, -DCMAKE_BUILD_TYPE as well as various LizardFS-specific “-DENABLE_<something_or_other>” options. Options are listed when cmake is ran and can be changed by re-running cmake:
cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/lizardfs
Run make in the build directory:
Run make install to install files (you may need to be root):
Now you have a full installation of LizardFS from sourcecode.
For build instructions on operating systems other than Linux, please refer to Setting up a development workspace .