[php] PHP설치 후, "PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0" 에러고치기

florentyoon·2023년 1월 7일
0

PHP

목록 보기
2/2

Windows 10 64bit에 php 8.1을 다운 받았다.

https://windows.php.net/download/

위 사이트에서

zip 파일을 받고
C:\php-8.1로 위치를 지정했다.

그리고 환경변수에도 저장을 해주었으나....

php -v를 실행하니

"vcruntime140.dll이 없어 코드 실행을 진행할 수 없습니다"

이 에러가 계속 뜨는게 아닌가!

환경변수에 이름이 잘못되었나 해서 확인한 후에
다시

$ set PATH=%PATH%;C:\php-8.1\php.exe

이렇게 지정했다.
그러자

"PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0"

이렇게 또 뜬다!

다시 구글링.

결론은 PHP사이트에 있었다.

애초에 내가 받은 버전은
"최신 버전의 PHP는 Visual C++ 15 또는 Visual Studio 16으로 빌드된다." "Visual Studio 2015-2019의 Visual C++ 재배포 가능 패키지의 설치가 요구된다."
였다....

그냥 Visual C++를 설치해주면 끝나는 것.

32bit : https://aka.ms/vs/17/release/vc_redist.x86.exe
64bit : https://aka.ms/vs/17/release/vc_redist.x64.exe
ARM64 : https://aka.ms/vs/17/release/vc_redist.arm64.exe

나는 64bit 로 받았고 해결 됨.

profile
florentyoon의 IT 세상

1개의 댓글

comment-user-thumbnail
2023년 7월 7일

하하 고맙습니다! 복받으십쇼

답글 달기