2015-01-08 05:36:50 +08:00
|
|
|
hh INSTALLATION
|
|
|
|
===============
|
2015-01-08 05:49:24 +08:00
|
|
|
Install `hh` using [distribution](#distribution-installation), from [source code](#installation-from-source-code),
|
2015-01-08 05:44:42 +08:00
|
|
|
on [Ubuntu](#ubuntu), [Debian/Mint](#debianmint), [Arch Linux](#arch-linux)
|
|
|
|
or [Mac OS](#mac-os).
|
2015-01-08 05:36:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
UBUNTU
|
|
|
|
------
|
|
|
|
Install `hh` on Ubuntu:
|
|
|
|
```bash
|
|
|
|
sudo add-apt-repository ppa:ultradvorka/ppa
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install hh
|
|
|
|
```
|
2015-01-08 05:44:42 +08:00
|
|
|
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#DOCUMENTATION).
|
2015-01-08 05:36:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
INSTALLATION FROM SOURCE CODE
|
|
|
|
-----------------------------
|
|
|
|
Clone Git repository:
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/dvorka/hstr.git
|
|
|
|
```
|
|
|
|
Create build files using:
|
|
|
|
```bash
|
|
|
|
cd ./dist && ./1-dist.sh && cd ..
|
|
|
|
```
|
|
|
|
Install `hh` using:
|
|
|
|
```bash
|
|
|
|
./configure && make && make install
|
|
|
|
```
|
2015-01-08 05:44:42 +08:00
|
|
|
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#DOCUMENTATION).
|
2015-01-08 05:36:50 +08:00
|
|
|
|
|
|
|
|
2015-01-08 05:49:24 +08:00
|
|
|
DISTRIBUTION INSTALLATION
|
2015-01-08 05:36:50 +08:00
|
|
|
-------------------------
|
|
|
|
Download latest distribution from project Releases section:
|
|
|
|
|
|
|
|
https://github.com/dvorka/hstr/releases
|
|
|
|
|
|
|
|
Expand the archive and install `hh` using:
|
|
|
|
```bash
|
|
|
|
./configure && make && make install
|
|
|
|
```
|
2015-01-08 05:44:42 +08:00
|
|
|
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#DOCUMENTATION).
|
2015-01-08 05:36:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
DEBIAN/MINT
|
|
|
|
-----------
|
|
|
|
Install `hh` on Debian (Wheezy) or Mint (13) by registering the key:
|
|
|
|
```bash
|
|
|
|
wget www.clfh.de/frankh.asc
|
|
|
|
apt-key add frankh.asc
|
|
|
|
```
|
|
|
|
adding the repository:
|
|
|
|
```bash
|
|
|
|
deb http://www.clfh.de/debian wheezy main
|
|
|
|
deb-src http://www.clfh.de/debian wheezy main
|
|
|
|
```
|
|
|
|
and installing it:
|
|
|
|
```bash
|
|
|
|
apt-get update
|
|
|
|
apt-get install hh
|
|
|
|
```
|
|
|
|
Optionally configure `hh`:
|
|
|
|
```bash
|
|
|
|
hh --show-configuration >> ~/.bashrc
|
|
|
|
```
|
2015-01-08 05:44:42 +08:00
|
|
|
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#DOCUMENTATION).
|
2015-01-08 05:36:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
ARCH LINUX
|
|
|
|
----------
|
|
|
|
Download latest distribution from project Releases section:
|
|
|
|
|
|
|
|
https://github.com/dvorka/hstr/releases
|
|
|
|
|
|
|
|
Use PKGBUILD in the root of the distribution to build package using `makepkg`:
|
|
|
|
|
|
|
|
https://wiki.archlinux.org/index.php/PKGBUILD
|
|
|
|
|
|
|
|
Install `hh`.
|
|
|
|
|
2015-01-08 05:44:42 +08:00
|
|
|
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#DOCUMENTATION).
|
2015-01-08 05:36:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
MAC OS
|
|
|
|
------
|
|
|
|
Install MacPorts:
|
|
|
|
|
|
|
|
http://www.macports.org
|
|
|
|
|
|
|
|
Set the environment:
|
|
|
|
```bash
|
|
|
|
env CFLAGS="-I/opt/local/include -I/usr/include" LDFLAGS="-L/opt/local/lib -L/usr/lib" ./configure
|
|
|
|
```
|
|
|
|
|
|
|
|
Finish the installation
|
|
|
|
```bash
|
|
|
|
make && make install
|
|
|
|
```
|
|
|
|
|
2015-01-08 05:44:42 +08:00
|
|
|
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#DOCUMENTATION).
|