This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -35,17 +35,20 @@ optional dependencies:
35
35
2 ) Build SCAP Workbench:
36
36
``` console
37
37
$ mkdir build; cd build
38
- $ # This export line is only required if openscap was compiled locally;
39
- $ # add to PKG_CONFIG_PATH the directory containing installed libopenscap.pc
40
- $ export PKG_CONFIG_PATH=" $PKG_CONFIG_PATH :/PATH/TO/DIR/WITH/.pcFILE/"
41
38
$ cmake ../
42
39
$ make
43
40
```
41
+ To build against locally built OpenSCAP library export following variables:
42
+
43
+ ``` console
44
+ $ export PKG_CONFIG_PATH=" $PKG_CONFIG_PATH :/PATH/TO/DIR/WITH/.pcFILE/"
45
+ $ export LIBRARY_PATH=/PATH/TO/DIR/WITH/openscap.soFILE/
46
+ ```
44
47
45
- If you have built openscap locally it is possible to use it through custom CMake definitions:
48
+ Additionally it is possible to use custom CMake definitions instead of exporting environment variables :
46
49
47
50
``` console
48
- $ cmake -DOPENSCAP_LIBRARIES:PATH=/local/openscap.so/filepath/ \
51
+ $$ cmake -DOPENSCAP_LIBRARIES:PATH=/local/openscap.so/filepath/ \
49
52
-DOPENSCAP_INCLUDE_DIRS:PATH=/local/openscap/include/path \
50
53
-DOPENSCAP_VERSION:STRING="X.Y.Z" \
51
54
../
56
59
57
60
(inside the build folder):
58
61
``` console
62
+ $ # may require superuser privileges if you didn't set different installation
63
+ $ # prefix (CMAKE_INSTALL_PREFIX)
59
64
$ make install
60
65
```
61
66
@@ -83,6 +88,16 @@ $ cd build/
83
88
$ bash runwrapper.sh ./scap-workbench
84
89
```
85
90
91
+ If you have built SCAP-Workbench against locally built OpenSCAP library, then run one of the following commands:
92
+
93
+ ``` console
94
+ $ ldconfig /PATH/TO/DIR/WITH/openscap.soFILE/
95
+ ```
96
+ or
97
+ ``` console
98
+ $ export LD_LIBRARY_PATH=/PATH/TO/DIR/WITH/openscap.soFILE/
99
+ ```
100
+
86
101
What now?
87
102
---------
88
103
You can’t perform that action at this time.
0 commit comments