forked from sigscale/ocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
45 lines (36 loc) · 1.35 KB
/
README
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
# ocs
## Prerequisites
Install erlang(>17)
$ sudo apt install erlang
Install radierl
Download current <VERSION> of sigscale-release suitable for your distribution (<DIST>) to install radierl
$ wget https://repo.sigscale.org/pool/main/s/sigscale-release/sigscale-release_1.1-<VERSION>+<DIST>_all.deb
$ dpkg -i sigscale-release*.deb
$ sudo apt update
$ sudo apt install radierl
Install bower via npm
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ npm install -g bower
Install mochiweb
$ git clone https://github.com/mochi/mochiweb.git
$ cd mochiweb
$ make all
$ VERSION=`grep vsn ebin/mochiweb.app | cut -d'"' -f 2`
$ mv ../mochiweb{,-$VERSION}
$ cd ..
$ sudo mv mochiweb-$VERSION /usr/lib/erlang/lib
## Building
$ mkdir ../ocs.build (create build directory)
$ cd ../ocs.build (change working directory for build)
$ ../ocs/configure (creates Makefiles)
$ make (builds entire package)
$ make check (run dialyzer and common_test)
## Installing
$ sudo make install (installs embedded application in system)
## Cleaning
$ make clean (removes files created with make)
$ make distclean (removes files created with configure also)
## Options
$ ../ocs/configure --enable-debug
$ ../ocs/configure --with-ssl=/opt/local