Linux

Thease instructions are for HARK V3.0 or later. The instructions for HARK V2.x or earlier are provided here.

Installation from Pre-compiled Binaries

 

Compilation Environment

  • OS
    • Ubuntu 16.04 Xenial (64bit)
    • Ubuntu 18.04 Bionic (64bit)

For other environments, please use the source compilation.

The pre-compiled binaries for trusty are supported up to HARK version 3.0.0.
To use HARK later than version 3.0.0 in trusty, please use the source compilation.

 

Installation

Register HARK apt repository to install HARK deb packages.

  • Ubuntu 16.04 (Xenial) or Ubuntu 18.04 (Bionic)
sudo bash -c 'echo -e "deb http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free\ndeb-src http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free" > /etc/apt/sources.list.d/hark.list'

 

Setup the GPG key.

wget -q -O - http://archive.hark.jp/harkrepos/public.gpg | sudo apt-key add -

 

node.js installation

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y nodejs

 

HARK server re-indexing.

sudo apt update

 

HARK installation.

sudo apt install hark-base harkmw hark-core
sudo apt install hark-designer
sudo apt install harktool5 harktool5-gui
sudo apt install kaldidecoder-hark

Installation from Source Compilation

Installation of HARK from source.
Source compilation supports GCC 5 or later.
The following packages are needed to be installed:

  1. hark-base
  2. harkmw
  3. libharkio3
  4. libhark-netapi
  5. hark-core
  6. harktool5
  7. kaldidecoder-hark

To compile these packages, “libtool”, “cmake”, and “python3” are required.

 

Step1 : Preparation before the compilation

Make your preferred directory to download source codes.

mkdir ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Install dependent packages.

sudo apt install libtool libxml2-dev libzip-dev libasound2-dev libopenblas-dev libgtk2.0-dev libsndfile1-dev libsdl2-dev liblapacke-dev gfortran python3-setuptools

 

Step2 : hark-base installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest hark-base source codes.

apt source hark-base

Compile and install the source codes.

cd hark-base-*.*.*
mkdir build
cd build
cmake ..
make
sudo make install

The “*.*.*” describes the package version.

Step3 : harkmw installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest harkmw source codes.

apt source harkmw

Compile and install the source codes.

cd harkmw-*.*.*
python3 setup.py build
sudo python3 setup.py install

Step4 : libhark-netapi installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest libhark-netapi_*.*.* source codes.

apt source libhark-netapi

Compile and install the source codes.

cd libhark-netapi-*.*.*
make
sudo make install

Step5 : libharkio3 installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest libharkio3 source codes.

apt source libharkio3

Compile, and install the source codes.

cd libharkio3-*.*.*
mkdir build
cd build
cmake ..
make
sudo make install

Step6 : hark-core installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest hark-core source codes.

apt source hark-core

Compile, and install the source codes.

cd hark-core-*.*.*
mkdir build
cd build
cmake -DENABLE_RASP24=OFF -DENABLE_WS=OFF ..
make
sudo make install

Step7 : harktool5 installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest harktool5 source codes.

apt source harktool5

Compile and install the source codes.

cd harktool5/
mkdir build
cd build/
cmake ..
make
sudo make install

Step8 : kaldidecoder-hark installation instruction

See hark-document 6.8.2 KaldiDecoder 6.8.2.5 Installation method

Back to Top