ANKH

Documentation
Login


[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]

NAME

ankh_install_guide - Ankh - The Installer's Guide

Table Of Contents

SYNOPSIS

package require Tcl 8.6 9
package require ankh ?1.0?

DESCRIPTION

Welcome to Ankh, Andreas Kupries' Hashes.

The audience of this document is anyone wishing to build the packages, for either themselves, or others.

For a developer intending to extend or modify the packages we additionally provide

  1. Ankh - License.

  2. Ankh - The Developer's Guide.

Please read Ankh - How To Get The Sources first, if that was not done already. Here we assume that the sources are already available in a directory of your choice.

Requisites

Before Ankh can be build and used a number of requisites must be installed. These are:

  1. The scripting language Tcl. For details see Tcl.

  2. The critcl package (C embedding) for Tcl. For details see CriTcl.

  3. The kettle package (build support) for Tcl. For details see Kettle.

This list assumes that the machine where Ankh is to be installed is essentially clean. Of course, if parts of the dependencies listed below are already installed the associated steps can be skipped. It is still recommended to read their sections though, to validate that the dependencies they talk about are indeed installed.

Tcl

As we are building a Tcl package that should be pretty much obvious that a working Tcl installation is needed, and I will not belabor the point.

Out of the many use whatever you are comfortable with, as long as it provides Tcl 8.5, or higher.

This may be a Tcl installation provided by your operating system distribution, from a distribution-independent vendor, or built by yurself.

Myself, I used ActiveState's ActiveTcl 8.5 distribution during development of the binding, as I am most familiar with it.

(Disclosure: I, Andreas Kupries, worked for ActiveState until 2015, maintaining ActiveTcl and TclDevKit for them).

This distribution can be found at ActiveTcl. Retrieve the archive of ActiveTcl 8.5 for your platform and install it as directed by ActiveState.

Assuming that ActiveTcl got installed I usually run the command

teacup update

to install all packages ActiveState provides, and the kitchensink, as the distribution itself usually contains only the most important set of packages. This ensures that the dependencies for CriTcl, and Ankh are all present, and more.

If that is not to your liking you have to read the sections for CriTcl, and Ankh to determine the exact set of packages required, and install only these using

teacup install $packagename

Both teacup commands above assume that ActiveState's TEApot repository at https://teapot.activestate.com is in the list of repositories accessible to teacup. This is automatically ensured for the ActiveTcl distribution. Others may have to run

teacup archive add http://teapot.activestate.com

to make this happen.

For those wishing to build Tcl on their own, its sources can be found at

CriTcl

To build Ankh the tool critcl is required.

Ankh's build systems accepts it either as an application found in the PATH, or as a Tcl package available to the tclsh used to run their build & installation processes.

Ankh must have at least version 3.1 of critcl itself, and at least version 1.0.3 of critcl::class.

CriTcl's source repository can be found at Critcl.

The relevant repository branch is master.

At the above url is also an explanation on how to build and install CriTcl, including a list of its dependencies.

Its instructions will not be repeated here. If there are problems with their directions please file a bug against the critcl project, and not Ankh.

Kettle

To build Ankh the build support package kettle is required, as is the accompanying application.

This package must be available to the tclsh used to run Ankh's build & installation process.

Kettle's main source repository can be found at https://core.tcl-lang.org/akupries/kettle. Alternate locations are https://chiselapp.com/user/andreas_kupries/repository/Kettle and https://github.com/andreas-kupries/kettle.

The relevant repository branch is trunk.

Kettle has a build and installation guide much like this one for Ankh, which can be found at the above site and explains how to retrieve its sources and build the package, which dependencies are required, etc. The direct link to this guide is https://core.tcl-lang.org/akupries/kettle/doc/trunk/embedded/md/doc/files/kettle_installer.md.

Its instructions will not be repeated here. If there are problems with their directions please file a bug against the Kettle project, and not Ankh.

Build & Installation

To install Ankh simply run

/path/to/tclsh8.5 /path/to/ankh/build.tcl install

where "/path/to/tclsh8.5" is the tclsh of your Tcl installation, and "/path/to/ankh" the location of the Ankh sources on your system.

This builds all packages and then places them in a directory where the tclsh8.5 will find them.

On Windows you can invoke the file "build.tcl" with a double-click. This will pop up a small graphical interface for entering the destination and performing the installation. This handling of a double-click is restricted to Windows only however.

On unix the same GUI is acessible by invoking "build.tcl" without any arguments.

To get help about the methods of "build.tcl", and their complete syntax, invoke "build.tcl" with argument help, i.e., like

/path/to/tclsh8.5 /path/to/ankh/build.tcl help

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such at the Ankh Tracker. Please also report any ideas for enhancements you may have for either package and/or documentation.

KEYWORDS

aich, bittorrent info hash, blake, btih, cryptographically secure hashes, ed2k, edonr, gost12, gost94, has160, hash digests, md4, md5, ripemd160, secure hashes, sha1, sha2, sha3, snefru, tiger, tth, whirlpool

CATEGORY

cryptographically secure hashes

COPYRIGHT

Copyright © 2021-2024 Andreas Kupries
Copyright © 2021-2024 Documentation, Andreas Kupries