Skip to content

Downloads and Installation

Petros Koutoupis edited this page Jan 5, 2023 · 14 revisions

Clone the latest (and stable) source tree from the github repository:

$ git clone https://github.com/pkoutoupis/rapiddisk

If you already have an older copy of the source code previously cloned from the git repository, you can simply update it with the git pull command. You can also download the latest tarball release from the RapidDisk Sourceforge page.

Change into the directory and run the Makefile to build the management utility and kernel module:

$ cd rapiddisk
$ make

NOTE – To build the rapiddisk management utility, you will need to have libjansson, libpcre2, libdevmapper and libmicrohttpd development library files installed on your host system.

NOTE – To build the kernel module, you are required to having either the full kernel source or the kernel headers installed for your current kernel revision.

If your build environments contains header and libraries files in a separate directory, you can set the CFLAGS and LDFLAGS accordingly:

$ CFLAGS="-I/home/MyUser/janssion/usr/local/include -I/home/MyUser/libmicrohttpd/include" LDFLAGS="-L/home/MyUser/janssion/usr/local/lib -ljansson -L/home/MyUser/libmicrohttpd/lib -lmicrohttpd" CC="cc $CFLAGS $LDFLAGS " make

And install the management utility, kernel module, and man page (management utility is installed in /sbin): $ sudo make install

Installing modules with DKMS

To build and install: $ sudo make dkms-install

Uninstalling modules with DKMS

To build and install: $ sudo make dkms-uninstall

Installing / uninstalling the administration utilities

Install: $ sudo make tools-install

Uninstall: $ sudo make tools-uninstall

Installing from existing Linux Distributions