program tip

Composer-요청한 PHP 확장 mbstring이 시스템에 없습니다.

radiobox 2020. 10. 9. 10:42
반응형

Composer-요청한 PHP 확장 mbstring이 시스템에 없습니다.


최근에 Composer를 통해 패키지를 설치하려고했지만에서 the requested PHP extension mbstring is missing from your system.세미콜론을 제거 했는데 오류가 발생 php.ini했지만 여전히 작동하지 않습니다. 어떻게해야합니까?


sudo apt-get install php-mbstring

# if your are using php 7.1
sudo apt-get install php7.1-mbstring

# if your are using php 7.2
sudo apt-get install php7.2-mbstring

  1. 당신의 php.ini
  2. 지시문 extension_dir=C:\path\to\server\php\ext이 설정되어 있는지 확인하고 경로를 조정하십시오 (PHP 확장 디렉토리 설정).
  3. 지시문 extension=php_mbstring.dll이 설정되어 있는지 확인하십시오 (주석 없음).

이것이 작동하지 않고 php_mbstring.dll 파일이 없으면이 스택의 PHP 설치가 손상된 것입니다.


PHP 7.1의 경우

sudo apt-get install php7.1-mbstring

건배!


나는 PHPRC 변수를 설정하고 주석을 제거 zend_extension=php_opcache.dll했으며 php.ini모두 잘 작동합니다.

참고 URL : https://stackoverflow.com/questions/32488917/composer-the-requested-php-extension-mbstring-is-missing-from-your-system

반응형