Usage TOP

Build

This chapter consists of three parts:

1. Install prerequisites

K2HTPDTOR primarily depends on FULLOCK, K2HASH, CHMPX. Each dependent library and the header files are required to build K2HTPDTOR. We provide two ways to install them. You can select your favorite one.

1.1. Install each dependent library and the header files from GitHub

Read the following documents for details:

1.2. Install each dependent library and the header files from packagecloud.io

This section instructs how to install each dependent library and the header files from packagecloud.io - AntPickax stable repository.

Note: Skip reading this section if you have installed each dependent library and the header files from GitHub in the previous section.

For DebianStretch or Ubuntu(Bionic Beaver) users, follow the steps below:

$ sudo apt-get update -y
$ sudo apt-get install curl -y
$ curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.deb.sh \
    | sudo bash
$ sudo apt-get install autoconf autotools-dev gcc g++ make gdb libtool pkg-config \
    libyaml-dev libfullock-dev k2hash-dev chmpx-dev -y
$ sudo apt-get install git -y

For Fedora28 or CentOS7.x(6.x) users, follow the steps below:

$ sudo yum makecache
$ sudo yum install curl -y
$ curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.rpm.sh \
    | sudo bash
$ sudo yum install autoconf automake gcc gcc-c++ gdb make libtool pkgconfig \
    libyaml-devel libfullock-devel k2hash-devel chmpx-devel -y
$ sudo yum install git -y

2. Clone the source code from GitHub

Download the K2HTPDTOR’s source code from GitHub.

$ git clone https://github.com/yahoojapan/k2htp_dtor.git

3. Build and install

Just follow the steps below to build K2HTPDTOR and install it. We use GNU Automake to build K2HTPDTOR.

$ cd k2htp_dtor
$ sh autogen.sh
$ ./configure --prefix=/usr
$ make
$ sudo make install

After successfully installing K2HTPDTOR, you will see the manual page for K2HTPDTOR:

$ man k2htpdtor
Usage TOP