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

YARA unable to run due to missing Visual C++ Redistributable #3

Open
BlueToast opened this issue Jan 4, 2021 · 2 comments
Open

YARA unable to run due to missing Visual C++ Redistributable #3

BlueToast opened this issue Jan 4, 2021 · 2 comments

Comments

@BlueToast
Copy link

I have received this error message upon running build23.ps1:

ERROR: YARA was unable to run on this device. The Visual C++ Redistributable is required in order to use YARA.

I have the latest versions of both the 32-bit and 64-bit of the following runtimes installed:

  • Microsoft Visual C++ 2008 Redistributable 9.0.30729.6161 [END OF LIFE]
  • Microsoft Visual C++ 2010 Redistributable 10.0.40219
  • Microsoft Visual C++ 2012 Redistributable 11.0.61030
  • Microsoft Visual C++ 2013 Redistributable 12.0.30501, 12.0.40660, 12.0.40664
  • Microsoft Visual C++ 2015-2019 Redistributable 14.27.29016

It is greatly appreciated to have this scanner tool available, but it is somewhat concerning that the script errors out on a "missing distributable" error message despite all supported runtime redistributables being installed. Additionally, the README of this release does not specify what runtime (year) and version needs to be installed.

@Datto-StanLee
Copy link

Datto-StanLee commented Feb 25, 2021

Hi;
Take a look here. Their documentation isn't great but it suggests that the Visual C++ redistributable 2010 is required.
Remember also that you need both the x86 and x64 builds installed if you are on a 64-bit system.
If you continue to see issues I think you may have more luck asking VirusTotal. Try executing the yara.exe binary directly on your device and seeing if it gives you an error that makes more sense than our best guess within the script.

@compunutter
Copy link

compunutter commented Dec 15, 2021

Had a server with the same error, installed the vcpp redist one by one testing until I found the one that allowed the script to run. In the end it was the 2015-2022 x64 version that did the trick: https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022

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

3 participants