This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
compilation_installation:compilation:mageia [2015/01/28 20:19] tbertin |
compilation_installation:compilation:mageia [2015/07/08 07:05] tbertin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mageia distribution ====== | ====== Mageia distribution ====== | ||
- | We would like to thank "cep" for this work. We will only describe the procedures for the Mageia 64 bits, as the 32bit procedure is the same than for [[..:ubuntu | ubuntu]]. | + | We would like to thank "cep" for this work. We will only describe the procedures for the Mageia 64 bits, as the 32bit procedure is the same than for [[..:compilation:linux:ubuntu | ubuntu]]. |
==== Step 1 - Libraries dependencies ==== | ==== Step 1 - Libraries dependencies ==== | ||
You need to download the libraries : | You need to download the libraries : | ||
urpmi rpm-build nasm libfuse-devel lib64wxgtku2.8-devel lib64wxgtku2.8 lib64wxgtkugl2.8 lib64libfuse.devel lib64canberra-gtk0 | urpmi rpm-build nasm libfuse-devel lib64wxgtku2.8-devel lib64wxgtku2.8 lib64wxgtkugl2.8 lib64libfuse.devel lib64canberra-gtk0 | ||
- | | ||
- | ==== Step 2 - Pkcs 11 headers ==== | ||
- | You also need to download the Pkcs11 headers. To do so, create a folder Pkcs11 and get the files from the rsasecurity website as follows : | ||
- | cd Pkcs11 | ||
- | wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h | ||
- | wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h | ||
- | wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h | ||
- | You need the three files. Put this folder wherever you want but keep in mind the path, you'll need it. | ||
- | ==== Step 3 - Makefile modification ==== | + | ==== Step 2 - Compilation ==== |
- | Now, you have to modify the Makefile in the GostCrypt folder. | + | |
- | cd GostCrypt_Linux_1.0 | + | |
- | vi Makefile | + | |
- | On the line 265, there is written : | + | |
- | export LIBS="$(BASE_DIR)/$$DIR/$$PROJ.a $$LIBS"; | + | |
- | Change it to : | + | |
- | export LIBS="$(BASE_DIR)/$$DIR/$$PROJ.a $$LIBS -ldl"; | + | |
- | Save and quit the file. | + | |
- | + | ||
- | + | ||
- | ==== Step 4 - Compilation ==== | + | |
You can now launch the compilation with the following command : | You can now launch the compilation with the following command : | ||
- | make PKCS11_INC=/absolute/path/to/the/PKCS11/folder -j4 | + | make -j4 |
The executable can be found in the Main folder. | The executable can be found in the Main folder. |