沃梦达 / 编程问答 / php问题 / 正文

PHP 7:缺少 VCRUNTIME140.dll

PHP 7: Missing VCRUNTIME140.dll(PHP 7:缺少 VCRUNTIME140.dll)

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

问题描述

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

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:

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

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

在那之后,CLI 崩溃了.

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

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

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

推荐答案

在侧栏上"noreferrer">PHP 7 alpha 下载页面,它确实是这样说的:

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

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

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.

  • VC9 版本要求您拥有适用于 Visual Studio 2008 SP1 的 Visual C++ Redistributable x86 或 x64 已安装

VC11 版本需要具有适用于 Visual Studio 2012 的 Visual C++ Redistributable x86 或 x64 已安装

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

VC14 版本需要具有适用于 Visual Studio 2015 的 Visual C++ Redistributable x86 或 x64 已安装

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

其中一些链接存在问题,因此这些文件也可从 Softpedia.

对于 PHP 7 alpha,这是最后一个必需的选项.

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 marginalized (i.e.: it's basically literally in the margin!) whereas it's actually critical for the software to run.

我在 PHP:让 PHP7 alpha 在 Windows 8.1 上运行,它涵盖了更多可能出现的症状.他们超出了这个问题的范围,但可能会帮助其他人.

I documented my experiences of getting PHP 7 alpha up and running on Windows 8.1 in PHP: getting PHP7 alpha 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.

此问题的其他症状:

  • Apache 未启动,声称 php7apache2_4.dll 丢失,尽管它确实存在,并且在任何日志中没有提供任何其他内容.
  • php-cgi.exe - FastCGI 进程意外退出(根据@ftexperts 下面的评论)
  • 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)

尝试的解决方案:

  • 使用早期 PHP 7 开发版本中的 php7apache2_4.dll 文件.这不起作用.

(我包括那些用于 googleability 的.)

(I include those for googleability.)

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

本文标题为:PHP 7:缺少 VCRUNTIME140.dll

基础教程推荐