VC++运行库(Visual C++ 可再发行程序包)是运行使用相应版本的 Visual C++ 开发的应用程序时必要的组件。 Wampserver内置的Apache、MySQL、MariaDB和PHP就依赖VC++运行库,所以我们需要在电脑上安装好VC++运行库,否则无法正常使用Wampserver。 Wampserver依赖的VC++运行库版本有下列这些: * Microsoft Visual C++ 2008 (VC++ 9.0) * Microsoft Visual C++ 2010 (VC++ 10.0) * Microsoft Visual C++ 2012 (VC++ 11.0) * Microsoft Visual C++ 2013 (VC++ 12.0) * Microsoft Visual C++ 2015-2022 VC++运行库还区分32位(x86)和64位(x64)。所以,对于32位的电脑,只需要安装32位的VC++运行库。对于64位的电脑,需要安装32位(x86)和64位(x64)的运行库。 ## 检查运行库 首先,我们先看看自己的电脑安装了那些VC++运行库,然后再针对性的安装上缺少的VC++运行库。 电脑上打开`控制面板\程序\程序和功能`,检查当前已安装的程序列表里面是否有下面列出的10个VC++运行库。 > 32位的电脑只需要有5个即可,即忽略(x64)的VC++运行库 ![image.png](https://attachment.wampserver.site/images/2020/09/16/image.png) ## VC++运行库下载 名称 | 下载链接 ---|--- Microsoft Visual C++ 2008 Redistribuable | [x86](https://wampserver.site/package/478.html)、[x64](https://wampserver.site/package/483.html) Microsoft Visual C++ 2010 Redistribuable | [x86](https://wampserver.site/package/479.html)、[x64](https://wampserver.site/package/484.html) Microsoft Visual C++ 2012 Redistribuable | [x86](https://wampserver.site/package/480.html)、[x64](https://wampserver.site/package/485.html) Microsoft Visual C++ 2013 Redistribuable | [x86](https://wampserver.site/package/481.html)、[x64](https://wampserver.site/package/486.html) Microsoft Visual C++ 2015-2022 Redistribuable | [x86](https://wampserver.site/package/890.html)、[x64](https://wampserver.site/package/891.html) 觉得一个个下载太麻烦?我们可以直接下载VC++运行库组合包。(另外注意:组合包里面的`vcredist_2008_sp1_atl`和`vcredist_2008_sp1_mfc`一般不用安装) 名称 | 下载链接 ---|--- All VC Redistribuable Packages (x86) (32bits) | [下载](https://wampserver.site/package/488.html) All VC Redistribuable Packages (x86_x64) (32 & 64bits) | [下载](https://wampserver.site/package/489.html) ## 安装VC++运行库 ### Visual C++ 2008 Redistribuable 1.打开VC++运行库程序文件(如果有提示UAC授权,直接同意即可) ![imageb0dd040a454dd3e8.png](https://attachment.wampserver.site/images/2020/09/16/imageb0dd040a454dd3e8.png) 选下一步(Next)继续 2.勾选同意安装协议,然后点安装(Install)进行安装 ![imageb180e673d105fc9f.png](https://attachment.wampserver.site/images/2020/09/16/imageb180e673d105fc9f.png) ![imagec9cdda3edf9b04a1.png](https://attachment.wampserver.site/images/2020/09/16/imagec9cdda3edf9b04a1.png) 3.安装完成,直接点完成(Finish)即可 ![imagea2208a5c37b6bbbb.png](https://attachment.wampserver.site/images/2020/09/16/imagea2208a5c37b6bbbb.png) ### Microsoft Visual C++ 2010 Redistribuable 1.打开VC++运行库程序文件 ![image3153a2f665702172.png](https://attachment.wampserver.site/images/2020/09/16/image3153a2f665702172.png) 2.勾选同意安装协议,然后点安装进行安装(如果有提示UAC授权,直接同意即可) ![image702d7d33ab3f9cd4.png](https://attachment.wampserver.site/images/2020/09/16/image702d7d33ab3f9cd4.png) ![imaged3cc18fe6049edb3.png](https://attachment.wampserver.site/images/2020/09/16/imaged3cc18fe6049edb3.png) 3.完成安装 ![image3a8178eff45d11b4.png](https://attachment.wampserver.site/images/2020/09/16/image3a8178eff45d11b4.png) ### Microsoft Visual C++ 2012 Redistribuable 1.打开VC++运行库程序文件,勾选同意安装协议,然后点安装(Install)进行安装 ![imageb0b2e2cc59285802.png](https://attachment.wampserver.site/images/2020/09/16/imageb0b2e2cc59285802.png) ![imagedb267c7df9c7992b.png](https://attachment.wampserver.site/images/2020/09/16/imagedb267c7df9c7992b.png) 2.完成安装 ![image0bd1be05c163d378.png](https://attachment.wampserver.site/images/2020/09/16/image0bd1be05c163d378.png) ### Microsoft Visual C++ 2013 Redistribuable 1.打开VC++运行库程序文件,勾选同意安装协议,然后点安装(Installer)进行安装 ![image0b60afa551d56693.png](https://attachment.wampserver.site/images/2020/09/16/image0b60afa551d56693.png) ![imageb38f052acc353900.png](https://attachment.wampserver.site/images/2020/09/16/imageb38f052acc353900.png) 2.完成安装 ![image63c0452332ab979c.png](https://attachment.wampserver.site/images/2020/09/16/image63c0452332ab979c.png) ### Microsoft Visual C++ 2015-2019 Redistribuable 1.打开VC++运行库程序文件,勾选同意安装协议,然后点安装进行安装 ![image500a2dfc91ff83f2.png](https://attachment.wampserver.site/images/2020/09/16/image500a2dfc91ff83f2.png) ![image476048121e2ca9ec.png](https://attachment.wampserver.site/images/2020/09/16/image476048121e2ca9ec.png) 2.完成安装 [![image26f9fd9dbeab4039.png](https://attachment.wampserver.site/images/2020/09/16/image26f9fd9dbeab4039.png)](https://attachment.wampserver.site/image/QrP)