windows - 在 VirtualBox 中使用 Windows 10 的 WAMP

标签 windows dll virtual-machine virtualbox wamp

我想安装一个 Web 服务器并分析请求的处理,以验证服务器的配置和行为之间的关系。

为了能够交付我的配置,我决定在 VirtualBox 虚拟机中开发整个任务

我经历的过程很简单:

  1. 安装VirtualBox虚拟化器。
  2. 下载free Windows 10 virtual machine用于测试(运行 90 天)。
  3. 下载并安装 Visual Studio 2012 VC 11 vcredist_x64 / 86.exeWAMP虚拟机上的包。 (要将文件拖到虚拟机,请转到“设备”>“拖”)

由于我使用的是 64 位版本的 Windows 10,因此决定安装 WAMP x64

最初,我遇到的错误是:

vcruntime140.dll

msvcr120.dll

msvcp120.dll

检查完后,将.dll复制到System32文件夹下,不再缺少.dll,但仍然出现以下错误:

The application was unable to start correctly (0x000007b).

此时我想:好吧,如果 WAMP x64 不起作用,我们试试 WAMP x32

结果显示的错误是(就像之前在 WAMP x64 中一样):

vcruntime140.dll

msvcr120.dll

msvcp120.dll

根据 WAMPS's forum moderators 之一,RiggsFolly,至关重要的是:

-- 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)

完成此操作并尝试安装WAMP x64后,我得到了与以前相同的结果。

还基于论坛中的 RiggsFolly 帖子:

-- Wampserver 3.1.3 32/64 bit x86_x64 (Cumulative Update.) You are strongly encouraged to apply this update. This is a cumulative update. There is no need to apply the old updates 3.0.1 to 3.1.2 before applying 3.1.3. This update will be required to install the latest Apache, PHP, MySQL or MariaDB addons.

我已经这样做了,但问题仍然存在...测试 atm 安装 WAMP x32

在我看来,我陷入了困境,由于我的机器要求,WAMP 的安装可能需要长达 30 分钟的时间 - 等待的时间太长了。这应该很简单,我不明白......

如何成功完成WAMP的安装?

最佳答案

由于缺少 DLL 文件错误,以下简单修复可能会解决该问题。

打开 CMD 并粘贴以下内容:

sfc /scannow

需要等待一段时间才能完成该过程,但问题应该已解决。

<小时/>

编辑:如果上述过程无法解决,请先执行以下操作:
1 - 卸载WAMP
2 - 安装所有 Visual C++ 可再发行组件包(2008、2010、2012、2013、2015、2017)
3 - 重新安装 WAMP

然后重做上面的过程,您就拥有了所有 .dll(甚至可能不需要让所有服务正常运行并正常运行)。

关于windows - 在 VirtualBox 中使用 Windows 10 的 WAMP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49628921/

相关文章:

virtual-machine - 使用 PowerShell 获取 Azure VM 状态

c# - 如何检测线程是否具有 Windows 句柄?

gcc - 在这些情况下,隐藏的 GCC 可见性会做什么?

c# - 从 dll 调用 C 函数后 C# 代码中的 ArithmeticException

linux - 如何防止 Linux 虚拟机在 VMWare 上关闭/注销?

ubuntu - Control-f 不适用于 mac vmware fusion 中 ubuntu 上的 sublime 文本

regex - 从 Notepad++ 中提取 FunctionList 的函数名称

C# WPF 应用程序在由使用 topshelf 创建的 Windows 服务启动时不显示表单

windows - 用于绘制音符的库

c++ - 如何从 dll 正确返回 std::list