]> git.proxmox.com Git - swtpm.git/blob - INSTALL
Merge pull request #25 from pohly/patch-1
[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 - gmp
17 - gmp-devel
18 - nss-devel
19 - net-tools
20 - selinux-policy-devel
21 - gnutls
22 - gnutls-devel
23 - libtasn1
24 - libtasn1-tools
25 - libtasn1-devel
26 - rpm-build (to build RPMs)
27
28 Debian/Ubuntu also needs the following packages to build:
29
30 - build-essential
31 - devscripts
32 - equivs
33
34 On RHEL or Fedora use either one of the following methods to install
35 the above dependencies:
36
37 - sudo dnf builddep ./dist/swtpm.spec (Fedora >= 22)
38 - sudo yum install yum-utils ; sudo yum-builddep ./dist/swtpm.spec (RHEL and Fedora <= 21)
39 - sudo yum install <package name(s)>
40
41 On Ubuntu use the following command:
42
43 - sudo mk-build-deps --install ./dist/control
44
45
46 Use the following sequence to build and install the Software TPM.
47
48 ./bootstrap.sh
49 ./configure --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 ./bootstrap.sh
58 ./configure
59 make dist
60 mkdir -p ~/rpmbuild/SOURCES
61 cp swtpm-0.x.y-tar.gz ~/rpmbuild/SOURCES
62 rpmbuild -ba dist/swtpm.spec
63
64
65 To build a Debian package on a Debian compatible host do:
66
67 echo "libtpms 0 libtpms" > ./debian/shlibs.local
68 debuild -us -uc