| 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 |
- json-glib-devel |
| 17 |
- net-tools |
| 18 |
- python3 |
| 19 |
- python3-twisted |
| 20 |
- selinux-policy-devel |
| 21 |
- socat |
| 22 |
- trousers |
| 23 |
- gnutls |
| 24 |
- gnutls-devel |
| 25 |
- libtasn1 |
| 26 |
- libtasn1-tools |
| 27 |
- libtasn1-devel |
| 28 |
- rpm-build (to build RPMs) |
| 29 |
|
| 30 |
Debian/Ubuntu also needs the following packages to build: |
| 31 |
|
| 32 |
- build-essential |
| 33 |
- devscripts |
| 34 |
- equivs |
| 35 |
|
| 36 |
On RHEL or Fedora use either one of the following methods to install |
| 37 |
the above dependencies: |
| 38 |
|
| 39 |
- sudo dnf builddep ./swtpm.spec (Fedora >= 22) |
| 40 |
- sudo yum install yum-utils ; sudo yum-builddep ./swtpm.spec (RHEL and Fedora <= 21) |
| 41 |
- sudo yum install <package name(s)> |
| 42 |
|
| 43 |
On Ubuntu use the following command: |
| 44 |
|
| 45 |
- sudo mk-build-deps --install ./debian/control |
| 46 |
|
| 47 |
|
| 48 |
Use the following sequence to build and install the Software TPM. |
| 49 |
|
| 50 |
./autogen.sh --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 |
make dist |
| 60 |
rpmbuild -ta swtpm-*.tar.gz |
| 61 |
|
| 62 |
|
| 63 |
To build a Debian package on a Debian compatible host do: |
| 64 |
|
| 65 |
echo "libtpms0 libtpms" > ./debian/shlibs.local |
| 66 |
debuild -us -uc |