diff --git a/src/anolisos-swtpm.md b/src/anolisos-swtpm.md index 0152c94f27993bd29511cad8eeb618e1131da567..f9962f62451befe79d92e9a584c1191baf930ada 100644 --- a/src/anolisos-swtpm.md +++ b/src/anolisos-swtpm.md @@ -24,12 +24,17 @@ Anolis OS中可使用swtpm和libtpm源码安装或使用Anolis OS 提供的yum **swtpm编译** ```shell # 安装依赖包 -yum install -y automake autoconf libtool gcc gcc-c++ make openssl-devel pkg-config socat net-tools-deprecated libtasn1-devel gnutls gnutls-devel libseccomp-devel json-glib-devel expect softhsm +yum install -y automake autoconf libtool gcc gcc-c++ make \ +openssl-devel pkg-config socat net-tools-deprecated \ +libtasn1-devel gnutls gnutls-devel libseccomp-devel \ +json-glib-devel expect softhsm # 下载libtpms源码 git clone https://github.com/stefanberger/libtpms cd libtpms # 编译并安装libtpms -./autogen.sh --prefix=/usr --libdir=/usr/lib64 --with-openssl --with-tpm2 +./autogen.sh --prefix=/usr --libdir=/usr/lib64 --with-openssl \ +--with-tpm2 + make -j4 make -j4 check sudo make install @@ -37,7 +42,8 @@ sudo make install git clone https://github.com/stefanberger/swtpm cd swtpm # 编译并安装swtpm - ./autogen.sh --prefix=/usr --libdir=/usr/lib64 --with-openssl --with-tss-user=root --with-tss-group=tss --with-cuse + ./autogen.sh --prefix=/usr --libdir=/usr/lib64 --with-openssl \ +--with-tss-user=root --with-tss-group=tss --with-cuse make -j4 sudo make check -j4 sudo make install