2019-05-13 13:00:14 +00:00
|
|
|
# How to compile:
|
2009-03-16 16:32:55 +00:00
|
|
|
|
2019-05-13 13:00:14 +00:00
|
|
|
## Prerequisites
|
2009-03-16 16:32:55 +00:00
|
|
|
|
|
|
|
Before you try to compile µHub, please make sure the following prerequisites are met.
|
|
|
|
* GNU make
|
|
|
|
* gcc > 3.0 (or MinGW on Windows)
|
|
|
|
* Perl 5
|
2010-11-22 12:47:24 +00:00
|
|
|
* openssl > 0.9.8 (or use "make USE_SSL=NO")
|
|
|
|
* sqlite > 3.x
|
|
|
|
|
2019-05-13 13:00:14 +00:00
|
|
|
For Ubuntu / Debian:
|
2010-11-22 12:47:24 +00:00
|
|
|
|
2019-05-13 13:00:14 +00:00
|
|
|
$ sudo apt-get install cmake make gcc git libsqlite3-dev libssl-dev
|
2009-03-16 16:32:55 +00:00
|
|
|
|
2019-05-13 13:00:14 +00:00
|
|
|
## Linux, Mac OSX, FreeBSD, NetBSD and OpenBSD
|
2009-03-16 16:32:55 +00:00
|
|
|
|
2019-05-13 13:00:14 +00:00
|
|
|
$ cmake .
|
|
|
|
$ make
|
|
|
|
% make install
|
|
|
|
|
2009-03-16 16:32:55 +00:00
|
|
|
If you have an old gcc compiler, try disabling pre-compiled headers like this:
|
|
|
|
gmake USE_PCH=NO
|
|
|
|
|
2019-05-13 13:00:14 +00:00
|
|
|
### Default install directories:
|
2009-03-16 16:32:55 +00:00
|
|
|
|
2019-05-13 13:00:14 +00:00
|
|
|
Binaries /usr/local/bin/
|
|
|
|
Configuration files /etc/uhub/
|
|
|
|
Plugins /usr/lib/uhub/
|
|
|
|
Manual pages /usr/share/man/man1/
|