本文介绍了WAMPServer 无法启动,因为缺少 api-ms-win-crt-runtime-l1-1-0.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装 wampserver3.0.6_x64 并收到以下消息

I try to install wampserver3.0.6_x64 and I get the following message

程序无法启动,因为您的计算机缺少 api-ms-win-crt-runtime-l1-1-0.dll

我已经安装了所有东西

我在 StackOverflow 中读到我需要安装 Universal C Runtime,但我无法安装.

I read in StackOverflow that I need to install Universal C Runtime, but I can't install this.

我很想知道如何修复它.

I'd love to know how to fix it.

推荐答案

更新:

最简单的解决方案

从 WAMPServer 备用存储库下载全套 MSVC 运行时可在此处找到 查看底部在页面上,有一个名为 All Visual C++ Redistribuable Packages (x86) (32bits)All Visual C++ Redistribuable Packages (x86_x64) (32 & 64bits)

Download a full set of MSVC runtimes from the WAMPServer alternate repo which can be found here Look at the bottom of the page, there is a download called All Visual C++ Redistribuable Packages (x86) (32bits) or All Visual C++ Redistribuable Packages (x86_x64) (32 & 64bits)

这将下载一个 ZIP 文件,其中包含所有可能需要的 MSVC 运行时库安装程序.解压缩文件并运行它公开的所有安装程序,按照从最低版本到最高版本的逻辑顺序,一次一个.

This will download a ZIP file containing all the possible required MSVC Runtime library installers. UnZip the file and run all the installers it exposes, in a logical order from lowest version to highest, one at a time.

我从您的图片中注意到您尚未安装任何必备的 MSVC 运行时库 在 WAMPServer 安装过程中提到.因此,您需要仔细阅读本文并确保您的操作系统完全能够运行任何版本的 APache/MYSQL &可以与 WAMPServer 一起安装的 PHP.

在安装 Wampserver 之前,如果您在安装 Wampserver 之前没有检查并安装任何缺失的库,则必须确保您拥有所有这些 Microsoft C/C++ 运行时库的最新版本它不会正确安装,也不会正确运行!

BEFORE proceeding with an installation of Wampserver, you must ensure that you have current versions of all these Microsoft C/C++ Runtime Libraries, if you do not check and install any missing libraries before you install Wampserver it will not install correctly and will not run correctly!

如果您安装 WAMPServer 时没有注意指定这些先决条件的安装对话框您的安装将会出错,您将需要在安装任何缺少的运行时库之前删除 Wampserver.strong>,然后在安装所有运行时后重新安装 WAMPServer.

If you installed WAMPServer without paying attention to the install Dialog specifying these pre-requisites your installation will be faulty and you will need to remove Wampserver BEFORE installing any missing Runtime Libraries. and then re-install WAMPServer when all runtimes are installed.

确保您的系统具有最新"版本所有这些可再发行包的版本:-

Make sure your system has "up to date" versions of ALL these redistributable packages:-

  • Microsoft Visual C/C++ Redistributable 2008 (VC9),
  • Microsoft Visual C/C++ Redistributable 2010 (VC10),
  • Microsoft Visual C/C++ Redistributable 2012 (VC11),
  • Microsoft Visual C/C++ Redistributable 2013 (VC13),
  • Microsoft Visual C/C++ Redistributable 2015 (VC14),
  • Microsoft Visual C/C++ Redistributable 2017 (VC15)

如果您运行的是 64 位 Windows,建议安装这些运行时库的 32 位和 64 位版本.请记住,Windows 64 位可以运行 32 位代码,也可以在 64 位 Windows 操作系统上安装 32 位或 64 位 WAMPServer.

If you are running a 64bit Windows, it is recommended to install both the 32bit and 64bit versions of these runtime libraries. Remember Windows 64bit can run 32bit code and also it is possible to install either a 32bit or 64 bit WAMPServer on a 64bit Windows OS.

如果您运行的是 Windows 10 之前的 Window,并且您正在运行使用 Apache/Mysql/PHP 的组件,该组件使用 MSVC 2015(VC14) 编译,您还需要安装 Universal C Runtime 这可以根据微软网站上的这份文档

If you are running Window pre windows 10, and you are running a component that uses Apache/Mysql/PHP compiled with MSVC 2015(VC14) you will also need to install the Universal C Runtime This can be download via the standard Windows Update according to this document on the microsoft site

---- Windows 中通用 C 运行时的更新

---- Update for Universal C Runtime in Windows

可以在本文后面找到所有这些可再发行组件的链接,以帮助您查找和安装它们.

Links to all these redistributables can be found later in this post to assist you in finding and installing them.

请单独下载每一个,然后在下载下一个之前完成安装.无论版本如何,下载的安装程序的文件名几乎总是相同的,很容易混淆并错过一个.签入控制面板 ->程序和功能在继续安装 WAMPServer 之前都已安装.

Please download each one individually and then complete it's install before downloading the next. The filenames of the downloaded installers are almost always the same regardless of version, it is easy to get confused and miss one out.Check in Control Panel -> Programs and Features that they are all installed before proceeding to install WAMPServer.

即使您仅使用 Apache 和 PHP 版本 VC11,Wampserver 2.4、2.5 和 3 也需要以下软件包(VC9、VC10、VC11).Apache 2.4.17(或更高版本)和 PHP 7 需要 VC14.

The following packages (VC9, VC10, VC11) are required for Wampserver 2.4, 2.5 and 3 even if you use only Apache and PHP versions VC11.VC14 is required for Apache version 2.4.17 (or greater) and for PHP 7.

在哪里可以找到和下载 MSVC Redistributable 包:

Where to find and download the MSVC Redistributable packages:

VC9 可再发行对于 Windows 2000 Service Pack 4;视窗服务器 2003;视窗服务器 2008;视窗Vista;Windows XP、W7、W8

VC9 RedistributableFor Windows 2000 Service Pack 4; Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP, W7, W8

Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) (32位)

Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)(64 位))

VC10 可再分发

适用于 Windows 7;视窗服务器 2003;视窗服务器 2008;Windows Server 2008 R2;视窗Vista;Windows XP

For Windows 7; Windows Server 2003; Windows Server 2008; Windows Server 2008 R2; Windows Vista; Windows XP

Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)

Microsoft Visual C++ 2010 SP1 可再发行包 (x64)

VC11 可再发行注意:Windows XP不支持

Windows 7 服务包 1;视窗 8;Windows Server 2008 R2 SP1;视窗服务器 2012;Windows Vista 服务包 2要下载的两个文件 VSU4\vcredist_x86.exe 和 VSU4\vcredist_x64.exe 在同一个页面:

Windows 7 Service Pack 1; Windows 8; Windows Server 2008 R2 SP1; Windows Server 2012; Windows Vista Service Pack 2The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page:

Visual C++ Redistributable for Visual Studio 2012 Update 4(x86 和x64)

VC13 可再发行Windows 7 服务包 1;视窗 8;Windows Server 2008 R2 SP1;视窗服务器 2012;Windows Vista 服务包 2要下载的两个文件 VSU4\vcredist_x86.exe 和 VSU4\vcredist_x64.exe 在同一个页面:

VC13 RedistributableWindows 7 Service Pack 1; Windows 8; Windows Server 2008 R2 SP1; Windows Server 2012; Windows Vista Service Pack 2The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page:

适用于 Visual Studio 2013 的 Visual C++ 可再发行包

VC14 Redistributable(Apache 2.4.17 和 PHP 7 需要)

Windows 10、Windows 7 Service Pack 1、Windows 8、Windows 8.1、Windows Server 2003 Service Pack 2、Windows Server 2008 R2 SP1、Windows Server 2008 Service Pack 2、Windows Server 2012、Windows Vista Service Pack 2要下载的两个文件 vcredist_x86.exe et vcredist_x64.exe 在同一页面上:

Windows 10, Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows Server 2003 Service Pack 2, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Server 2012, Windows Vista Service Pack 2The two files vcredist_x86.exe et vcredist_x64.exe to be download are on the same page:

VC15 Redistributable(Apache 2.4.26 需要)

适用于 Visual Studio 2017 x86 的 Visual C++ 可再发行包

适用于 Visual Studio 2017 x64 的 Visual C++ 可再发行包

VC2017 (VC15) 向后兼容 VC2015 (VC14).这意味着,可以在 VC15 二进制文件中使用 VC14 模块.由于这种兼容性,Redistributable 的版本号为 14.1x.xx,安装 Redistributable VC2017 后,删除了 VC2015,但您仍然可以使用 VC14.

适用于 Visual Studio 2015 更新 3 的 Visual C++ 可再发行包

Windows 中通用 C 运行时的更新Windows 10、Windows 7 Service Pack 1、Windows 8、Windows 8.1、Windows Server 2008 R2 SP1、Windows Server 2008 Service Pack 2、Windows Server 2012、Windows Vista Service Pack 2按照此页面上的链接针对您的特定环境

Update for Universal C Runtime in WindowsWindows 10, Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Server 2012, Windows Vista Service Pack 2Follow the links on this page for your specific environment

Windows 中通用 C 运行时的更新

注意:如果您在安装所有这些必需的运行时之前安装了 WAMPServer,最好先卸载 WAMPServer,然后在安装所有运行时后重新安装 WAMPServer

最简单的解决方案从 WAMPServer 备用存储库下载全套 MSVC 运行时可在此处找到

Simplest SolutionDownload a full set of MSVC runtimes from the WAMPServer alternate repo which can be found here

看页面底部,有一个叫All Visual C++ Redistribuable Packages (x86) (32bits)All Visual C++ Redistribuable Packages (x86_x64) (32 &64位)

Look at the bottom of the page, there is a download called All Visual C++ Redistribuable Packages (x86) (32bits) or All Visual C++ Redistribuable Packages (x86_x64) (32 & 64bits)

这将下载一个 ZIP 文件,其中包含所有可能需要的 MSVC 运行时库.解压缩文件并运行它公开的所有安装程序,按照从最低版本到最高版本的逻辑顺序,一次一个.

This will download a ZIP file containing all the possible required MSVC Runtime libraries. UnZip the file and run all the installers it exposes, in a logical order from lowest version to highest, one at a time.

这篇关于WAMPServer 无法启动,因为缺少 api-ms-win-crt-runtime-l1-1-0.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 18:31