[tpm2] Re: Virtualbox ubuntu 22.04 guest with tpm_server

dawn.howe at alten.com Mon, 23 May 2022 22:39:57 +0000
Newsgroups dev.linux.lists.tpm2
Message-ID <[email protected]>
$ pkg-config --libs tss2-tcti-tabrmd
Package tss2-tcti-tabrmd was not found in the pkg-config search path.
Perhaps you should add the directory containing `tss2-tcti-tabrmd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tss2-tcti-tabrmd' found

$ export PKG_CONFIG_PATH=~/tpm2-abrmd/dist
$ pkg-config --libs tss2-tcti-tabrmd
-L/usr/lib64 -ltss2-tcti-tabrmd

So then I did a "make uninstall" on abrmd, tss and tools
set environment variable PKG_CONFIG_PATH, and re-make and installed each
then sudo ldconfig after building abrmd

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib64
restarted the abrmd, and it worked!!!

Thank you, thank you, thank you!

At least now, I know it's all possible. I'm going to try to repeat everything on another VM and carefully record the steps.  I've been trying so much stuff I'm afraid there is something I did that I haven't captured.