]> git.proxmox.com Git - swtpm.git/blob - INSTALL
INSTALL: Don't make the user run configure twice
[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 --prefix=/usr
50 make
51 make check
52 make install
53
54
55 To build an rpm on a Fedora or RHEL host do:
56
57 ./autogen.sh
58 make dist
59 mkdir -p ~/rpmbuild/SOURCES
60 cp swtpm-0.x.y-tar.gz ~/rpmbuild/SOURCES
61 rpmbuild -ba dist/swtpm.spec
62
63
64 To build a Debian package on a Debian compatible host do:
65
66 echo "libtpms0 libtpms" > ./debian/shlibs.local
67 debuild -us -uc