PHP 7:缺少VCRUNTIME140.dll [英] PHP 7: Missing VCRUNTIME140.dll

查看:2012
本文介绍了PHP 7:缺少VCRUNTIME140.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Windows上启动PHP时,我有一个错误。当我在命令行上运行 php 时,它返回一个消息框,系统错误:


程序无法启动,因为您的计算机中缺少VCRUNTIME140.dll。尝试重新安装程序来解决这个问题。


之后, CLI 崩溃。



由于我不想从外部网站安装DLL文件,我不知道如何解决这个问题!



PHP版本: 7.0.0alpha1 VC14 x64线程安全

解决方案

我也错过了,它让我保持了一段时间。标题为答案的答案指向正确的解决方案,但我以为我也会添加这个答案。



PHP 7 alpha下载页面的栏,它确实说:


VC9,VC11& VC14
最新版本的PHP是用VC9,VC11
或VC14(分别为Visual Studio 2008,2012或2015编译器)构建的,
包括性能和稳定性的改进。




  • VC9版本要求您具有Visual Studio 2008 SP1的Visual C ++可重新分发版本 x86 x64 已安装


  • VC11构建需要Visual Studio 2012的Visual C ++可重新分发

  • x86或x64 >
  • VC14构建需要Visual Visual Studio 2015的Visual C ++可重新分发版本 x86或x64 已安装



(更新:这些链接中有一些问题,所以这些文件也可以从 softpedia )。



在PHP 7 alpha的情况下,这是需要的最后一个选项。



我认为这个信息的位置很差,因为它有点边缘化(即:它基本上是在边缘!),而实际上对于软件运行至关重要。



我记录了我获得PHP 7 alpha的经验并在Windows 8.1上运行,并且涵盖了可能出现的更多症状。他们超出了这个问题的范围,但可能会帮助其他人,因此我将包括以下链接: PHP:在Windows 8.1上运行PHP7 alpha



此问题的其他症状: p>


  • Apache不启动,声称php7apache2_4.dll尽管已经存在,但在任何日志中都没有提供任何内容。

  • php-cgi.exe - FastCGI进程意外退出(根据@ ftexperts在下面的注释)



尝试解决方案:




  • 使用早期PHP 7开发版本中的php7apache2_4.dll文件。



(我包含那些用于googleability)。


I have an error when I start PHP 7 on Windows. When I run php on the command line, it returns a message box with system error:

The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem.

After that, CLI is crashing.

As I don't want to install a DLL file from an external website, I don't know how to fix this!

PHP version: 7.0.0alpha1 VC14 x64 Thread Safe

解决方案

I missed this too, and it held me up for a while. The answer marked as "the answer" does point in the right direction for the solution, but I thought I'd add this answer too.

On the side bar of the PHP 7 alpha download page, it does say this:

VC9, VC11 & VC14 More recent versions of PHP are built with VC9, VC11 or VC14 (Visual Studio 2008, 2012 or 2015 compiler respectively) and include improvements in performance and stability.

  • The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed

  • The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed

  • The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed

(Update: there's been a problem with some of those links, so the files are also available from softpedia).

In the case of the PHP 7 alpha, it's the last option that's required.

I think that the placement of this information is poor, as it's kind of marginalised (ie: it's basically literally in the margin!) whereas it's actually critical for the software to run.

I documented my experiences of getting PHP 7 alpha up and running on Windows 8.1, and it covers some more symptoms that might crop up. They're out of scope for this question but might help other people so I'll include the link: "PHP: getting PHP7 alpha running on Windows 8.1".

Other symptom of this issue:

  • Apache not starting, claiming php7apache2_4.dll is missing despite it definitely being in place, and offering nothing else in any log.
  • "php-cgi.exe - The FastCGI process exited unexpectedly" (as per @ftexperts's comment below)

Attempted solution:

  • using the php7apache2_4.dll file from an earlier PHP 7 dev build. This did not work.

(I include those for googleability).

这篇关于PHP 7:缺少VCRUNTIME140.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆