vcruntime140.dll 14.0 与 PHP 版本不兼容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/59414170/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 08:37:06  来源:igfitidea点击:

vcruntime140.dll 14.0 not compatible with PHP build

phpwindows-server-2016vcredist

提问by Ed Mozley

I have downloaded PHP 7.4.1 NTS vc15 x86on a windows server 2016 machine. I also downloaded and installed vc_redist.x86.exe.

我已经在 Windows Server 2016 机器上下载了PHP 7.4.1 NTS vc15 x86。我也下载安装了vc_redist.x86.exe

When I try and run php-cgi from the command prompt I get the following error:

当我尝试从命令提示符运行 php-cgi 时,出现以下错误:

PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

PHP 警告:'vcruntime140.dll' 14.0 与第 0 行未知中与 14.16 链接的 PHP 版本不兼容

Any ideas on how to resolve this? I guess I could install an older version of PHP from the archives but this doesn't really address the problem.

关于如何解决这个问题的任何想法?我想我可以从档案中安装旧版本的 PHP,但这并不能真正解决问题。

回答by Ed Mozley

Turns out PHP 7.4.x requires Microsoft Visual C++ Redistributable for Visual Studio 2019which can be downloaded hereunder the heading Other Tools and Frameworks

原来PHP 7.4.x需要微软的Visual C ++可再发行的Visual Studio 2019可以下载标题下的其他工具和框架

回答by Nkeng Claud

I had the same problem. After I downloaded the latest version of Microsoft Visual C++, I successfully solved this problem. You can download it here . https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

我有同样的问题。我下载了最新版的Microsoft Visual C++后,成功解决了这个问题。您可以在这里下载 。 https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

回答by Jura Gorohovsky

If this issue occurs when trying to integrate Command Line Tools into JetBrains PhpStorm 2019.3.x, check out the current status of this PhpStorm issue, and if it's not fixed in the latest version, use the VC runtime copy workaround described here.

如果在尝试将命令行工具集成到 JetBrains PhpStorm 2019.3.x 时出现此问题,请查看此 PhpStorm 问题的当前状态,如果在最新版本中未修复,请使用此处描述的 VC 运行时复制解决方法。