]> git.proxmox.com Git - swtpm.git/blob - INSTALL
tests: Extend --print-capabilities tests with test of swtpm_setup
[swtpm.git] / INSTALL
1 Building and running the swtpm has dependencies on the following packages:
2
3 - automake
4 - autoconf
5 - bash
6 - coreutils
7 - expect
8 - libtool
9 - sed
10 - libtpms
11 - libtpms-devel
12 - fuse
13 - fuse-devel
14 - glib2
15 - glib2-devel
16 - net-tools
17 - python3
18 - python3-twisted
19 - selinux-policy-devel
20 - trousers
21 - tpm-tools
22 - gnutls
23 - gnutls-devel
24 - libtasn1
25 - libtasn1-tools
26 - libtasn1-devel
27 - rpm-build (to build RPMs)
28
29 Debian/Ubuntu also needs the following packages to build:
30
31 - build-essential
32 - devscripts
33 - equivs
34
35 On RHEL or Fedora use either one of the following methods to install
36 the above dependencies:
37
38 - sudo dnf builddep ./dist/swtpm.spec (Fedora >= 22)
39 - sudo yum install yum-utils ; sudo yum-builddep ./dist/swtpm.spec (RHEL and Fedora <= 21)
40 - sudo yum install <package name(s)>
41
42 On Ubuntu use the following command:
43
44 - sudo mk-build-deps --install ./debian/control
45
46
47 Use the following sequence to build and install the Software TPM.
48
49 ./autogen.sh
50 ./configure --prefix=/usr
51 make
52 make check
53 make install
54
55
56 To build an rpm on a Fedora or RHEL host do:
57
58 ./autogen.sh
59 ./configure
60 make dist
61 mkdir -p ~/rpmbuild/SOURCES
62 cp swtpm-0.x.y-tar.gz ~/rpmbuild/SOURCES
63 rpmbuild -ba dist/swtpm.spec
64
65
66 To build a Debian package on a Debian compatible host do:
67
68 echo "libtpms 0 libtpms" > ./debian/shlibs.local
69 debuild -us -uc