Linux

The installation instructions on this page are for HARK Ver.3.5.0 or later. For instructions on previous versions, please refer to the links below.
HARK Ver.1.2.0 to Ver.2.5.0 are here..
HARK Ver.3.0.0 to Ver.3.4.1 are here..

Installation from Pre-compiled Binaries

 

Compilation Environment

  • OS
    • Ubuntu 22.04 Jammy (64bit) : from V3.4.0
    • Ubuntu 20.04 Focal (64bit) : from V3.2.0

For other environments, please use the source compilation.

 

Installation

Register HARK apt repository to install HARK deb packages.
—–

  • Ubuntu 20.04.5 or earlier
    We strongly recommend updating to Ubuntu 20.04.6 or later.
#### Setup the repository URI.
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 -

 

  • For those migrating from Ubuntu 20.04.5 to Ubuntu 20.04.6 or later.
#### Delete the old GPG key.
sudo apt-key del 5B692BB9325B21E7C8C98048AADA9D6E547D8993

#### Install curl.
sudo apt update && sudo apt install curl

#### Download the GPG key.
sudo curl -sSL http://archive.hark.jp/harkrepos/public.gpg -o /usr/share/keyrings/hark-archive-keyring.asc

#### Setup the repository URI.
sudo bash -c 'echo -e "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hark-archive-keyring.asc] http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free\ndeb-src [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hark-archive-keyring.asc] http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free" > /etc/apt/sources.list.d/hark.list'

 

  • Ubuntu 20.04.6 or later
#### Install curl.
sudo apt update && sudo apt install curl

#### Download the GPG key.
sudo curl -sSL http://archive.hark.jp/harkrepos/public.gpg -o /usr/share/keyrings/hark-archive-keyring.asc

#### Setup the repository URI.
sudo bash -c 'echo -e "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hark-archive-keyring.asc] http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free\ndeb-src [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hark-archive-keyring.asc] http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free" > /etc/apt/sources.list.d/hark.list'

——
 

node.js installation (Source: https://github.com/nodesource/distributions)
Notes: From October 27, 2023, the official installation method for node.js has changed, and the previous installation method is no longer supported. When building a new environment, please use the new installation method shown below. If you already have the same version (16.x) installed, you can continue using it.
Note: As of December 27, 2023, the official installation method for node.js has changed again, but we have confirmed that this is only an automated script of the steps introduced on this page. Currently, we are testing the current LTS version (20.x) and the latest version (21.x) of node.js. Once confirmed, we will inform you of the update procedure.

#### 1. Download and import the Nodesource GPG key.
sudo apt update
sudo apt install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

#### 2. Create deb repository
NODE_MAJOR=16
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

#### 3. Run Update and Install
sudo apt update
sudo apt install nodejs -y

 

HARK server re-indexing.

sudo apt update

 

HARK installation.

sudo apt install hark-base3 harkmw hark-core hark-linux hark-gtkplot
sudo apt install hark-designer
sudo apt install harktool5 harktool5-gui
sudo apt install kaldidecoder-hark

 

HARK Designer startup.

hark_designer

 

HARK Designer can also be used over the network.
Sartup HARK Designer in Host A(xxx.xxx.xxx.xxx)

hark_designer allowremote

To use HARK Designer over the network, access xxx.xxx.xxx.xxx:3000 from Host B,
These options f and allowremote cannot be used together.

 
See here for how to use HARK Designer.(Japanese only)

Installation from Source Compilation

Installation of HARK from source.
Compiling the source requires a compiler that supports at least C99 and C++11. Additionally, some additional features are implemented for compilers that support C++17 or higher. Please note that the compilers we support (and have tested) are GCC9 or later.
The following packages are needed to be installed:

  1. libhark-netapi3
  2. libharkio3
  3. hark-base3
  4. harkmw
  5. hark-core
  6. hark-linux
  7. hark-gtkplot
  8. python3-harkpython and hark-python3
  9. harktool5
  10. kaldidecoder-hark

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

 

Step0 : Preparation before the compilation

#### 0-1. Make your preferred directory to download source codes.
mkdir ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 0-2. Install dependent packages.
sudo apt install build-essential gfortran libtool cmake pkgconf libxml2-dev libzip-dev libasound2-dev libsndfile1-dev libsdl2-dev libopenblas-dev liblapack-dev liblapacke-dev libeigen3-dev libfmt-dev libgtk2.0-dev libpopt-dev

sudo apt install mosquitto libmosquittopp-dev pybind11-dev python3-dev python3-daemon python3-paho-mqtt python3-pybind11 python3-pkgconfig python3-pip python3-setuptools python3-numpy python3-scipy python3-matplotlib python3-kivy

#### 0-3. Install the kivy_garden.graph package.
python3 -m pip install kivy_garden.graph --extra-index-url https://kivy-garden.github.io/simple/

The kivy_garden.graph is required to run the plot node in the hark-python3 package. If the kivy_garden.graph is not installed, only the plotting function will not work.
kivy_garden.gprah installation (Source: https://kivy.org/doc/stable/api-kivy.garden.html)
 

Step1 : libhark-netapi3 installation instruction

#### 1-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 1-2. Download the latest libhark-netapi3_*.*.* source codes.
apt source libhark-netapi3

#### 1-3. Compile and install the source codes.
cd libhark-netapi3-*.*.*
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

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

Step2 : libharkio3 installation instruction

#### 2-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 2-2. Download the latest libharkio3 source codes.
apt source libharkio3

#### 2-3. Compile, and install the source codes.
cd libharkio3-*.*.*
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

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

Step3 : hark-base3 installation instruction

#### 3-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 3-2. Download the latest hark-base3 source codes.
apt source hark-base3

#### 3-3. Compile and install the source codes.
cd hark-base3-*.*.*
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

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

Step4 : harkmw installation instruction

#### 4-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 4-2. Download the latest harkmw source codes.
apt source harkmw

#### 4-3. Compile and install the source codes.
cd harkmw-*.*.*
python3 setup.py build
sudo python3 setup.py install

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

Step5 : hark-core installation instruction

#### 5-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 5-2. Download the latest hark-core source codes.
apt source hark-core

#### 5-3. Compile, and install the source codes.
cd hark-core-*.*.*
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

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

Step6 : hark-linux installation instruction

#### 6-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 6-2. Download the latest hark-linux source codes.
apt source hark-linux

#### 6-3. Compile, and install the source codes.
cd hark-linux-*.*.*
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_RASP=OFF ..
make
sudo make install

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

Step7 : hark-gtkplot installation instruction

#### 7-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 7-2. Download the latest hark-gtkplot source codes.
apt source hark-gtkplot

#### 7-3. Compile, and install the source codes.
cd hark-gtkplot-*.*.*
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

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

Step8 : python3-harkpython and hark-python3 installation instruction

#### 8-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 8-2. Download the latest python3-harkpython and hark-python3 source codes.
apt source python3-harkpython
apt source hark-python3

#### 8-3. Compile, and install the source codes.
cd python3-harkpython-*.*.*
sudo python3 setup.py install
cd ..

cd hark-python3-*.*.*
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

The “*.*.*” describes the package version.
The hark-python3 package calls Python code from the C++ side, so the python3-harkpython package, which is the Python side implementation, must be installed first.
 

Step9 : harktool5 installation instruction

#### 9-1. Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

#### 9-2. Download the latest harktool5 source codes.
apt source harktool5

#### 9-3. Compile and install the source codes.
cd harktool5
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

 

Step10 : kaldidecoder-hark installation instruction

See one of the following:

Back to Top