PHP 7: Missing VCRUNTIME140.dll

前端 未结 9 1379
盖世英雄少女心
盖世英雄少女心 2020-12-07 13:49

I have an error when I start PHP 7 on Windows. When I run php on the command line, it returns a message box with system error:

The p

9条回答
  •  我在风中等你
    2020-12-07 13:58

    For things like this, you don't blindly keep clicking 'Next', 'Next', and 'I Agree'.

    WAMP informs you about this during and before installation:

    The MSVC runtime libraries VC9, VC10, VC11 are required for Wampserver 2.4, 2.5 and 3.0, even if you use only Apache and PHP versions with VC11. Runtimes VC13, VC14 is required for PHP 7 and Apache 2.4.17

    VC9 Packages (Visual C++ 2008 SP1) http://www.microsoft.com/en-us/download/details.aspx?id=5582 http://www.microsoft.com/en-us/download/details.aspx?id=2092

    VC10 Packages (Visual C++ 2010 SP1) http://www.microsoft.com/en-us/download/details.aspx?id=8328 http://www.microsoft.com/en-us/download/details.aspx?id=13523

    VC11 Packages (Visual C++ 2012 Update 4) The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page: http://www.microsoft.com/en-us/download/details.aspx?id=30679

    VC13 Packages] (Visual C++ 2013[) The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page: https://www.microsoft.com/en-us/download/details.aspx?id=40784

    VC14 Packages (Visual C++ 2015) The two files vcredist_x86.exe and vcredist_x64.exe to be download are on the same page: http://www.microsoft.com/en-us/download/details.aspx?id=48145

    You must install both 32 and 64bit versions, even if you do not use Wampserver 64 bit.

    IMPORTANT NOTE: Be sure to to run all Microsoft Visual C++ installations with administrator privileges (right click → Run as Administrator). Just missing this small step wasted my entire day.

提交回复
热议问题