File: INSTALL.md

package info (click to toggle)
rhash 1.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,408 kB
  • sloc: ansic: 19,132; sh: 1,196; xml: 933; makefile: 662; python: 431; java: 364; cs: 288; perl: 196; ruby: 76; sed: 16
file content (54 lines) | stat: -rw-r--r-- 1,453 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

Installation
============

Build Prerequisites
-------------------
  - GCC or Intel Compiler for Linux / macOS / Unix.
  - MinGW or MS VC++ for Windows.
  - (optionally) gettext library for internationalization
  - (optionally) OpenSSL for optimized algorithms

Build and install
-----------------
To compile and install the program use command
```sh
./configure && make && make install
```

The compiled program and library can be tested by command `make test test-lib`

To compile using MS VC++, take the project file from /win32/vc-2010/ directory.

Enabling features
-----------------
RHash can use optimized algorithms of MD5, SHA1, SHA2 from the OpenSSL library.
To link OpenSSL at run-time (preffered way), configure RHash as
```sh
./configure --enable-openssl-runtime
```
To link it at load-time, use options
```sh
./configure --enable-openssl --disable-openssl-runtime
```

Internationalization support can be compiled and installed by commands
```sh
./configure --enable-gettext
make install install-gmo
```

Run `./configure --help` for a full list of configuration options.

Building an OS native package
-----------------------------
When building a package for an OS Repository, one should correctly specify system directories, e.g.:
```sh
./configure --sysconfdir=/etc --exec-prefix=/usr
```

Example of installing RHash with shared and static LibRHash library:
```sh
./configure --enable-lib-static
make install install-lib-so-link
```