-
Notifications
You must be signed in to change notification settings - Fork 25
/
INSTALL
57 lines (38 loc) · 1.45 KB
/
INSTALL
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
55
56
This package requires installation of GMP and PBC.
-----------
Install GMP
-----------
Most systems include a package for GMP (https://gmplib.org/). To install
from package source see the GMP site.
To install GMP in Debian / Ubuntu:
sudo apt-get install libgmp-dev
For an RPM installation with YUM:
sudo yum install gmp-devel
For installation with Fink (http://www.finkproject.org/) on Mac OS X:
sudo fink install gmp gmp-shlibs
-----------
Install PBC
-----------
To install the PBC library, download the appropriate files for your system
from https://crypto.stanford.edu/pbc/download.html. PBC has three
dependencies: the gcc compiler, flex (http://flex.sourceforge.net/), and
bison (https://www.gnu.org/software/bison/). See the respective sites for
installation instructions. Most distributions include packages for these
libraries. For example, in Debian / Ubuntu:
sudo apt-get install build-essential flex bison
The PBC source can be compiled and installed using the usual GNU Build
System. Pypbc requires PBC is configured as a shared library and in the
standard library search path. For example, to install PBC in Debian /
Ubuntu:
sh setup
./configure --prefix=/usr --enable-shared
make
sudo make install
After installing, you may need to rebuild the search path for libraries:
sudo ldconfig
-------------
Install pypbc
-------------
Once GMP and PBC are installed, installing pypbc via pip (for Python v3)
is simple:
sudo pip3 install .