WAMPServer 无法启动,因为缺少 api-ms-win-crt-runtime-l1-1-0.dll

WAMPServer wont start because api-ms-win-crt-runtime-l1-1-0.dll is missing

我尝试安装 wampserver3.0。6_x64 我收到以下消息

the program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer

我已经安装了所有东西

我在 Whosebug 中读到我需要安装通用 C 运行时,但我无法安装它。

我很想知道如何修复它。

更新:

最简单的解决方案

从 WAMPServer alternate repo 下载全套 MSVC 运行次 which can be found here 查看页面底部,有一个名为 All Visual C++ Redistribuable Packages (x86) (32bits) 或 [=11= 的下载]

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


我从你的图片中注意到你没有安装任何必备的 MSVC 运行时库 在 WAMPServer 安装过程中提到因此您需要仔细阅读并确保您的OS完全能够运行安装任何版本的APache/MYSQL和PHP与 WAMPServer.

在安装 WAMPServer 运行之前,您必须阅读这些先决条件:

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

如果您在安装 WAMPServer 时没有注意指定这些的安装对话框 pre-requisites 您的安装将出错,您将需要删除 Wampserver 在安装任何缺少的运行时库之前。 然后 re-install WAMPServer 安装完所有 运行 次后。

确保您的系统具有所有这些可再分发软件包的“最新”版本:-

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

大注意:

如果您运行正在使用 64 位 Windows,建议安装这些 运行time 库的 32 位和 64 位版本。请记住 Windows 64 位可以 运行 32 位代码,也可以在 64 位 Windows OS.

上安装 32 位或 64 位 WAMPServer

如果您 运行宁 Window pre windows 10,并且您 运行宁一个组件使用 Apache/Mysql/PHP 编译 MSVC 2015( VC14) 你还需要安装 Universal C Runtime 这可以通过标准 Windows 下载 根据 this document on the microsoft site

更新

---- Windows

中的通用 C 运行时更新

稍后可以在此 post 中找到指向所有这些可再发行组件的链接,以帮助您找到并安装它们。

建议:

请单独下载每一个,然后完成安装 ,然后再 下载下一个。下载的安装包的文件名几乎都是一样的,不管版本如何,很容易搞混,漏掉一个。 在继续安装 WAMPServer 之前检查 Control Panel -> Programs and Features 它们都已安装。

Visual C++ 包

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

需要 VC14

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

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

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

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

VC10 可再发行

为Windows7; Windows 服务器 2003; Windows 服务器 2008; Windows 服务器 2008 R2; Windows远景; Windows经验值

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

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

VC11 可再发行 注意:WindowsXP

不支持VC11 或更高版本

Windows 7 服务包 1; Windows8; Windows 服务器 2008 R2 SP1; Windows 服务器 2012; WindowsVista 服务包 2 要下载的两个文件VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe在同一页面:

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

VC13 可再发行 Windows7 服务包 1; Windows8; Windows 服务器 2008 R2 SP1; Windows 服务器 2012; WindowsVista 服务包 2 要下载的两个文件VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe在同一页面:

Visual C++ Redistributable Packages for Visual Studio 2013

VC14 Redistributable(Apache 2.4.17 和 PHP 7 需要)

Windows10,Windows7 Service Pack 1,Windows8,Windows8.1,WindowsServer 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 可再发行(Apache 2.4.26 需要)

Visual C++ Redistributable Packages for Visual Studio 2017 x86

Visual C++ Redistributable Packages for Visual Studio 2017 x64

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.

Visual C++ Redistributable Packages for Visual Studio 2015 Update 3

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服务器 2012、WindowsVista Service Pack 2 根据您的特定环境点击此页面上的链接

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 备用存储库下载全套 MSVC 运行 次 which can be found here

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

的下载

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

天哪,我的客户使用的是 win7,而且从未更新过。花了很长时间 运行。各位小心,您需要 windows7 上的 SP1 才能安装必要的 vc 软件包