windows WAMPServer 无法启动,因为缺少 api-ms-win-crt-runtime-l1-1-0.dll
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42348778/
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
WAMPServer wont start because api-ms-win-crt-runtime-l1-1-0.dll is missing
提问by oz27
I try to install wampserver3.0.6_x64 and I get the following message
我尝试安装 wampserver3.0.6_x64 并收到以下消息
the program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer
程序无法启动,因为您的计算机缺少 api-ms-win-crt-runtime-l1-1-0.dll
I have installed all the things
我已经安装了所有的东西
I read in StackOverflow that I need to install Universal C Runtime, but I can't install this.
我在 StackOverflow 中读到我需要安装 Universal C Runtime,但我无法安装它。
I'd love to know how to fix it.
我很想知道如何解决它。
回答by RiggsFolly
UPDATE:
更新:
Simplest Solution
最简单的解决方案
Download a full set of MSVC runtimes from the WAMPServer alternate repo which can be found hereLook 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)
从 WAMPServer 备用存储库下载全套 MSVC 运行时,可在此处找到查看页面底部,有一个名为All Visual C++ Redistribuable Packages (x86) (32bits)
或的下载All Visual C++ Redistribuable Packages (x86_x64) (32 & 64bits)
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.
这将下载一个 ZIP 文件,其中包含所有可能需要的 MSVC 运行时库安装程序。解压缩文件并运行它公开的所有安装程序,按照从最低版本到最高版本的逻辑顺序,一次一个。
I notice from your pictures that you have not installed any of the prerequisite MSVC Runtime librariesmentioned in the WAMPServer install process. So you will need to read this carefully and make sure your OS is fully capable of running any version of APache/MYSQL & PHP that can be installed with WAMPServer.
我从您的图片中注意到您尚未安装WAMPServer 安装过程中提到的任何必备 MSVC 运行时库。因此,您需要仔细阅读本文,并确保您的操作系统完全能够运行可与 WAMPServer 一起安装的任何版本的 APache/MYSQL 和 PHP。
Before running a WAMPServer install, you must read these prerequisites:
在运行 WAMPServer 安装之前,您必须阅读这些先决条件:
BEFOREproceeding 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 之前,您必须确保您拥有所有这些 Microsoft C/C++ 运行时库的最新版本,如果您在安装 Wampserver 之前不检查并安装任何缺失的库,它将无法正确安装并且无法正确运行!
If you installed WAMPServer without paying attention to the install Dialog specifying these pre-requisites your installation will be faultyand you will need to remove Wampserver BEFORE installing any missing Runtime Libraries.and then re-install WAMPServer when all runtimes are installed.
如果您安装 WAMPServer 时没有注意指定这些先决条件的安装对话框,您的安装将会出错,您需要在安装任何缺少的运行时库之前删除 WAMPServer 。然后在安装所有运行时后重新安装 WAMPServer。
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)
- 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)
BIG NOTE:
大注意:
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.
如果您运行的是 64 位 Windows,建议安装这些运行时库的 32 位和 64 位版本。请记住,Windows 64 位可以运行 32 位代码,也可以在 64 位 Windows 操作系统上安装 32 位或 64 位 WAMPServer。
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 10 之前的 Window,并且您正在运行使用 MSVC 2015(VC14) 编译的 Apache/Mysql/PHP 的组件,则您还需要安装Universal C Runtime
可根据此文档通过标准 Windows 更新下载的组件微软网站
---- Update for Universal C Runtime in Windows
---- Windows 中通用 C 运行时的更新
Links to all these redistributables can be found later in this post to assist you in finding and installing them.
可以在本文后面找到所有这些可再发行组件的链接,以帮助您查找和安装它们。
Suggestion:
建议:
Please download each one individually and then complete it's install beforedownloading 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.
请单独下载每个,然后在下载下一个之前完成安装。无论版本如何,下载的安装程序的文件名几乎总是相同的,很容易混淆并错过一个。Control Panel -> Programs and Features
在继续安装 WAMPServer 之前检查它们是否都已安装。
Visual C++ Packages
Visual C++ 包
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.
即使您仅使用 Apache 和 PHP 版本 VC11,Wampserver 2.4、2.5 和 3 也需要以下软件包(VC9、VC10、VC11)。Apache 2.4.17(或更高版本)和 PHP 7 需要 VC14。
Where to find and download the MSVC Redistributable packages:
在哪里可以找到和下载 MSVC Redistributable 包:
VC9 RedistributableFor Windows 2000 Service Pack 4; Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP, W7, W8
VC9 RedistributableFor Windows 2000 Service Pack 4;视窗服务器 2003;视窗服务器 2008;视窗Vista;Windows XP、W7、W8
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) (32 bits)
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)(32 位)
Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) (64bits)
Microsoft Visual C++ 2008 SP1 可再发行组件包 (x64)(64 位)
VC10 Redistributable
VC10 可再发行
For Windows 7; Windows Server 2003; Windows Server 2008; Windows Server 2008 R2; Windows Vista; Windows XP
适用于 Windows 7;视窗服务器 2003;视窗服务器 2008;Windows Server 2008 R2;视窗Vista;视窗 XP
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 可再发行组件包 (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
Microsoft Visual C++ 2010 SP1 可再发行组件包 (x64)
VC11 RedistributableNote: VC11 or higher is not supportedby Windows XP
VC11 Redistributable注意:Windows XP不支持VC11 或更高版本
Windows 7 Service Pack 1; Windows 8; Windows Server 2008 R2 SP1; Windows Server 2012; Windows Vista Service Pack 2
The two filesVSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe
to be download are on the same page:
Windows 7 服务包 1;视窗 8;Windows Server 2008 R2 SP1;视窗服务器 2012;Windows Vista Service Pack 2要下载的两个文件VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe
在同一页面上:
Visual C++ Redistributable for Visual Studio 2012 Update 4 (x86 and x64)
Visual C++ Redistributable for Visual Studio 2012 Update 4(x86 和 x64)
VC13 RedistributableWindows 7 Service Pack 1; Windows 8; Windows Server 2008 R2 SP1; Windows Server 2012; Windows Vista Service Pack 2
The two filesVSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe
to be download are on the same page:
VC13 可再发行Windows 7 Service Pack 1;视窗 8;Windows Server 2008 R2 SP1;视窗服务器 2012;Windows Vista Service Pack 2要下载的两个文件VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe
在同一页面上:
Visual C++ Redistributable Packages for Visual Studio 2013
用于 Visual Studio 2013 的 Visual C++ 可再发行包
VC14 Redistributable (Required for Apache 2.4.17 and PHP 7)
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
The two filesvcredist_x86.exe et vcredist_x64.exe
to be download are on the same page:
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
在同一页面上:
VC15 Redistribuable (Required for Apache 2.4.26)
VC15 可再发行(Apache 2.4.26 需要)
Visual C++ Redistributable Packages for Visual Studio 2017 x86
适用于 Visual Studio 2017 x86 的 Visual C++ 可再发行包
Visual C++ Redistributable Packages for Visual Studio 2017 x64
适用于 Visual Studio 2017 x64 的 Visual C++ 可再发行包
VC2017 (VC15) is backward compatible to VC2015 (VC14). That means, a VC14 module can be used inside a VC15 binary. Because this compatibility the version number of the Redistributable is 14.1x.xx and after you install the Redistributable VC2017, VC2015 is removed but you can still use VC14.
VC2017 (VC15) 向后兼容 VC2015 (VC14)。这意味着,可以在 VC15 二进制文件中使用 VC14 模块。由于这种兼容性,Redistributable 的版本号为 14.1x.xx,安装 Redistributable VC2017 后,删除了 VC2015,但您仍然可以使用 VC14。
Visual C++ Redistributable Packages for Visual Studio 2015 Update 3
Visual Studio 2015 Update 3 的 Visual C++ 可再发行包
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 2 Follow the links on this page for your specific environment
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 中的通用 C 运行时更新按照此页面上的链接适合您的特定环境
Update for Universal C Runtime in Windows
Note: If you installed WAMPServer before installing ALL these required runtimes, it is best to uninstall WAMPServer and then once all the runtimes are installed, reinstall WAMPServer
注意:如果您在安装所有这些必需的运行时之前安装了 WAMPServer,最好卸载 WAMPServer,然后在安装所有运行时后,重新安装 WAMPServer
Simplest SolutionDownload a full set of MSVC runtimes from the WAMPServer alternate repo which can be found here
最简单的解决方案从 WAMPServer 备用存储库下载全套 MSVC 运行时,可在此处找到
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)
看页面底部,有一个叫All Visual C++ Redistribuable Packages (x86) (32bits)
or的下载All Visual C++ Redistribuable Packages (x86_x64) (32 & 64bits)
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.
这将下载一个 ZIP 文件,其中包含所有可能需要的 MSVC 运行时库。解压缩文件并运行它公开的所有安装程序,按照从最低版本到最高版本的逻辑顺序,一次一个。
回答by minoset
Oh man, my customer has win7 and never updated. Took long time to run. Be careful people, you need SP1 on windows7 to install necessary vc packages
哦,伙计,我的客户有 win7 并且从未更新过。跑了很久。小心人,你需要在 windows7 上安装 SP1 来安装必要的 vc 包