@@ -49,7 +49,7 @@ be. To install in `/home/alice/helib_install`, for example:
49
49
cmake -DPACKAGE_BUILD=ON -DCMAKE_INSTALL_PREFIX=/home/alice/helib_install ..
50
50
```
51
51
52
- Extra options can be specified here, such as enabling tests with
52
+ Extra options can be specified here, such as enabling HElib tests with
53
53
` -DENABLE_TEST=ON ` . See later section entitled "HElib build
54
54
options" for details.
55
55
@@ -59,14 +59,12 @@ The output of this will be in the relocatable folder `helib_pack`:
59
59
make -j16
60
60
```
61
61
62
- 4 . (optional) If step 2 was performed with ` -DENABLE_TEST=ON ` , tests can be run
63
- as follows:
62
+ 4 . (optional) If step 2 was performed with ` -DENABLE_TEST=ON ` , HElib tests can
63
+ be run as follows:
64
64
```
65
- make test
65
+ ctest -R helib_check
66
66
```
67
- This will run the tests for GMP, NTL, and HElib. More detailed logging can be
68
- found in ` Testing/Temporary/LastTest.log ` .
69
- An even more detailed HElib-specific test logs can be found in
67
+ Detailed HElib-specific test logs can be found in
70
68
` dependencies/Build/helib_external/Testing/Temporary/LastTest.log ` .
71
69
72
70
5 . (optional) Run the install step, to copy the folder ` helib_pack ` to
@@ -76,18 +74,18 @@ make install
76
74
```
77
75
78
76
of course, if the ` CMAKE_INSTALL_PREFIX ` was kept as the default ` /usr/local `
79
- or some other system-wide path, step 5 needs to be run as root .
77
+ or some other system-wide path, step 5 may require ` sudo ` privileges .
80
78
81
79
82
80
## Option 2: library build (advanced)
83
81
84
82
This option involves building HElib on its own, linking against pre-existing
85
83
dependencies (NTL and GMP) on the system. In this way, the HElib library can
86
84
be moved around, but its dependencies (NTL and GMP) cannot, as they are
87
- absolute paths. For this option, you must build GMP >=6.0.0 and NTL >=11.0.0
85
+ absolute paths. For this option, you must build GMP >=6.0.0 and NTL >=11.4.3
88
86
yourself. For details on how to do this, please see the section on building
89
- dependencies later. We will suppose throughout this that the environment
90
- variables ` $GMPDIR ` and ` $NTLDIR ` are set to point to the installation
87
+ dependencies later. It is assumed throughout this installation option that the
88
+ environment variables ` $GMPDIR ` and ` $NTLDIR ` are set to point to the installation
91
89
directories of GMP and NTL respectively.
92
90
93
91
Please note that if changing from package build to library build, it is safer
@@ -110,7 +108,7 @@ not specified, system-wide locations such as `/usr/local/lib` will be searched.
110
108
cmake -DGMP_DIR="${GMPDIR}" -DNTL_DIR="${NTLDIR}" -DCMAKE_INSTALL_PREFIX=/home/alice/helib_install ..
111
109
```
112
110
113
- Extra options can be specified here, such as enabling tests with
111
+ Extra options can be specified here, such as enabling HElib tests with
114
112
` -DENABLE_TEST=ON ` . See later section entitled "HElib build options" for
115
113
details.
116
114
@@ -123,9 +121,9 @@ make -j16
123
121
4 . (optional) If step 2 was performed with ` -DENABLE_TEST=ON ` , tests can be run
124
122
as follows:
125
123
```
126
- make test
124
+ ctest
127
125
```
128
- The complete test output can be found in
126
+ Detailed HElib test logs can be found in
129
127
` Testing/Temporary/LastTest.log ` .
130
128
131
129
5 . Run the install step, to copy the files to ` ${CMAKE_INSTALL_PREFIX} ` (in
@@ -135,7 +133,7 @@ make install
135
133
```
136
134
137
135
of course, if the ` CMAKE_INSTALL_PREFIX ` was kept as the default ` /usr/local `
138
- or some other system-wide path, step 5 needs to be run as root .
136
+ or some other system-wide path, step 5 may require ` sudo ` privileges .
139
137
140
138
## Building dependencies (for option 2)
141
139
@@ -164,7 +162,7 @@ step 3.
164
162
165
163
You can install NTL as follows:
166
164
167
- 1 . Download NTL >=11.0.0 (current version is 11.4.3) from
165
+ 1 . Download NTL >=11.4.3 (current version is 11.4.3) from
168
166
http://www.shoup.net/ntl/download.html
169
167
2 . Decompress and cd into the directory, e.g., ` ntl-11.4.3/src `
170
168
3 . NTL is configured, built and installed in the standard Unix way (but
0 commit comments