php pcov 설치 중 fatal error: 'pcre2.h' file not found 에러를 만났을 때 pecl install pcovpecl을 통해 pcov 설치 중 pcre2는 이미 깔려있는데도 이 에러를 만나실 수 있습니다. 그럴땐 pcre2.h 파일을 php 설치경로 아래 특정 폴더에 복사해 주고, 다시 설치를 시도하면 거짓말처럼 성공하는 것을 보실 수 있습니다. cp /opt/homebrew/Cellar/pcre2/10.40/include/pcre2.h /opt/homebrew/Cellar/[email protected].
php 맥에 php 7.4 설치하고 기본 버전으로 설정하기 설치하기brew install [email protected]기본 버전으로 설정하기brew link --overwrite --force [email protected]실행하면 아래와 같은 안내가 출력됩니다. Linking /opt/homebrew/Cellar/[email protected]/7.4.24_1... 800 symlinks created. If you need to have this software first in your PATH instead consider running: echo 'export PATH="/opt/homebrew/
laravel composer를 이용하여 `특정 버전`의 라라벨(Laravel) 프로젝트 생성하기 composer create-project laravel/laravel=5.4 your-project-name --prefer-dist 5.4 이 부분을 특정 버전으로 교체하십시오. 라라벨 버전 업을 위한 마이그레이션에 특히 도움이 됩니다. 이렇게 생성한 빈 프로젝트를 이용하여 기존 dependency를 해결할 수 있는 깔끔한 새 버전의 composer.json을 얻을 수 있습니다.