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 usable version of libssl was found on ubuntu 22.04 #231

Open
dumprop opened this issue Sep 29, 2024 · 1 comment
Open

No usable version of libssl was found on ubuntu 22.04 #231

dumprop opened this issue Sep 29, 2024 · 1 comment

Comments

@dumprop
Copy link

dumprop commented Sep 29, 2024

When trying to run AltCover version '8.9.3' on ubuntu 22.04 I get the following error:
No usable version of libssl was found
I have both libssl3 and libssl-dev installed, but AltCover does not seem to recognize or work with them.

Logs:

$ dotnet tool install --global altcover.global
Tool 'altcover.global' was reinstalled with the stable version (version '8.9.3').

libssl-dev is already the newest version (3.0.2-0ubuntu1.18).

libssl3 is already the newest version (3.0.2-0ubuntu1.18).

$ altcover
No usable version of libssl was found
Aborted

@SteveGilham
Copy link
Owner

I confess myself baffled by this one.

The failure is happening sufficiently early that it looks like a dotnet runtime issue, before the tool itself actually starts running.

AltCover (and its dependencies) are pure dotnet, with no instances of P/Invoke (no references to the DllImport attribute in the IL for the dependencies), so any invocations of libssl, for whatever reason (hash functions, perhaps, or maybe for sourcelink validation?), will have to be through the dotnet runtime.

The tool itself targets NetCoreApp2.1 with roll-forwards, and the libraries are all netstandard2.0 or earlier as it's intended to be compatible with pretty much any supported environment, and many outdated ones as well. It's not looking for a particular version of the runtime and its dependencies, especially not "one that's more recent than whatever you have".

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

2 participants