Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No package 'tss2-esys' found #1302

Closed
Richardds opened this issue Feb 4, 2019 · 5 comments
Closed

No package 'tss2-esys' found #1302

Richardds opened this issue Feb 4, 2019 · 5 comments

Comments

@Richardds
Copy link

Fix was merged into tpm2-tss

Originally posted by @joshuagl in #1291 (comment)

Now i keep gettings following error after ./configure:

configure: error: Package requirements (tss2-esys) were not met:

No package 'tss2-esys' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables TSS2_ESYS_CFLAGS
and TSS2_ESYS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
@joshuagl
Copy link

joshuagl commented Feb 4, 2019

You may need to set PKG_CONFIG_PATH if your tpm2-tss is installed in a non-standard path for your distro, or indeed update to a version of tpm2-tss which provides the ESAPI (added in version 2.0)

@Richardds
Copy link
Author

What should PKG_CONFIG_PATH variable contain? Could you please provide an example? I am on Ubuntu 18.10 (4.18.0-13-generic).

Thanks

@joshuagl
Copy link

joshuagl commented Feb 4, 2019

Per the README help requests are better handled on the mailing list: https://lists.01.org/mailman/listinfo/tpm2

It's likely that your system's default install location isn't included in the default PKG_CONFIG_PATHs. You should find where tpm2-tss was installed to (possibly /usr/local/lib) and add the pkgconfig subdirectory of that location to PKG_CONFIG_PATH, i.e.

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

@joshuagl joshuagl closed this as completed Feb 4, 2019
@tomoveu
Copy link

tomoveu commented Feb 23, 2023

@williamcroberts I think this should be part of the README.md of tpm2-tools, especially for people who want to use latest master of tpm2-tss OR run from source rather than packaging system

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

I just ran into this and had to end up in this issue to be reminded about why my pkgconfig is not working as expected. I know it is silly when you do it every day, but we shall not assume people do this everyday and have this knowledge ;)

@williamcroberts
Copy link
Member

@williamcroberts I think this should be part of the README.md of tpm2-tools, especially for people who want to use latest master of tpm2-tss OR run from source rather than packaging system

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

I just ran into this and had to end up in this issue to be reminded about why my pkgconfig is not working as expected. I know it is silly when you do it every day, but we shall not assume people do this everyday and have this knowledge ;)

This is actually distro dependent since they configure what the default pkg-config paths are. You can actually check by doing:
pkg-config --variable=pc_path pkg-config and it shows what the configuration is. This is very much an autoconf/autotools/pkg-config mystery thing, I am OK with adding it, just submit a patch to the proper documentation you want it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants