[英]'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16
[英]vcruntime140.dll 14.0 not compatible with PHP build
我已經在 windows 服務器 2016 機器上下載了 PHP 7.4.1 NTS vc15 x86 。 我還下載並安裝了vc_redist.x86.exe
。
當我嘗試從命令提示符運行 php-cgi 時,出現以下錯誤:
PHP 警告:“vcruntime140.dll”14.0 與此 PHP 版本不兼容,與第 0 行未知中的 14.16 鏈接
關於如何解決這個問題的任何想法? 我想我可以從檔案中安裝舊版本的 PHP 但這並不能真正解決問題。
我有同樣的問題。 我下載了最新版本的Microsoft Visual C++后,成功解決了這個問題。 你可以在這里下載 。 https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
如果您使用的是 xampp,請轉到 apache 文件夾 C:/xampp/apache/bin... 將 vcruntime140.dll 重命名為 vcruntime140.dll,希望它能正常工作..
如果在嘗試將命令行工具集成到 JetBrains PhpStorm 2019.3.x 時出現此問題,請查看此 PhpStorm 問題的當前狀態,如果在最新版本中未修復,請使用此處描述的 VC 運行時復制解決方法:
確保安裝具有新vcruntime140.dll
文件的 MS VC Redist 2017,然后:
在
C:\Users\UserName\AppData\Local\JetBrains\PhpStorm 2019.x\jbr\bin
(如果安裝在本地)或C:\Program Files\JetBrains\PhpStorm 2019.x\jbr\bin
手動更新/替換vcruntime140.dll
C:\Program Files\JetBrains\PhpStorm 2019.x\jbr\bin
目錄。
從這里下載並安裝了 vc_redist.x64.exe 文件:https: //support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads並且工作正常
我已經從這里下載並安裝了 vc_redist.x64.exe 文件:https: //support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads它對我有用。 如果您遇到同樣的錯誤,它肯定會為您工作
在 Windows 上使用 XAMPP 服務器並使用 Laravel 框架創建網站時,控制台在運行服務器“vcruntime140.dll 14.0 與 PHP 構建不兼容”時記錄錯誤。
我在此頁面上找到了最佳答案,並為 Visual Studio 2019 安裝了 Microsoft Visual C++ Redistributable,當我再次運行服務器時,它仍然重新調整錯誤。 我從錯誤日志中注意到,在 PHP 更新之后,PHP 是直接從 C 驅動器讀取的。
如果您使用 XAMPP Server,最簡單的解決方法是復制位於 C:\xampp\php 的 PHP 文件夾並將其直接粘貼到 C:\ 驅動器。
最好的方法是更新 XAMPP。
盡管新安裝了 vcredist,但由於我不斷收到此錯誤,因此我自己檢查了 vcredist 文件。 原來,在 apache/bin 文件夾中有一個孤立的 vcredist 文件導致了這個問題。
如果您使用的是 xampp 方法 1:從 ( www.dll-files.com ) 下載 vcruntime14.dll 文件替換 Xammpp\apache\bin 中下載的文件
方法 2:如果您的系統上安裝了 Visual Studio 2015 或更高版本,請轉到 windows\system32 並搜索 vcruntime14.dll 並復制該文件並將其替換為 Xammpp\apache\bin 中存在的 vcruntime14.dll
PHP 對於 Windows 需要 Microsoft C 和 C++ (MSVC) 運行時庫, VCRUNTIME140.dll
是主庫。 您的版本比當前構建的 PHP 版本舊。 將 MSVC 更新到最新版本,你會沒事的。
我在博客https://blog.devsense.com/2022/fix-php-warning-vcruntime140.dll中寫了更多關於此的信息,因為我已多次被問到這個問題。
你好,我找到了很好的解決方案,沒有安裝適合 win7 的 vc-redist
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
you need first to go to C:\Windows\System32
search for vcruntime140.dll
rename it vcruntime140_backup.dll
second thing is go to xampp path for example C:\xampp\mysql\bin
search for the same file vcruntime140.dll
copy & paste進入C:\Windows\System32
恭喜。
PHP 警告:“vcruntime140.dll”14.0 與第 0 行未知中與 14.16 鏈接的此 PHP 版本不兼容
100% 問題已解決。 這是解決方案,請按照完整的步驟操作。
https://studyopedia.com/errors-resolved/fix-php-warning-vcruntime140-dll-not-compatible/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.