Расширение PHP PHAR не найдено в PHP 8.1 при установке ComposerPhp

Кемеровские программисты php общаются здесь
Anonymous
Расширение PHP PHAR не найдено в PHP 8.1 при установке Composer

Сообщение Anonymous »

Я пытался установить композитор из официальной документации, когда появилось это сообщение:

Код: Выделить всё

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The phar extension is missing.
Install it or recompile php without --disable-phar

The iconv OR mbstring extension is required and both are missing.
Install either of them or recompile php without --disable-iconv
Я пробовал установить php-phar и php8.1-phar с помощью apt-get, но, похоже, он был заменен на php8.1- обычное дело.

Код: Выделить всё

lvjhn@peridot:~/Temp$ sudo apt install php8.1-phar
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php8.1-common' instead of 'php8.1-phar'
php8.1-common is already the newest version (8.1.11-1+ubuntu22.04.1+deb.sury.org+2).
Изменить: вместо установки я использовал неправильный поиск по слову.
Я использую вариант из репозитория ondrej.
p>
Как решить? Спасибо.

Подробнее здесь: https://stackoverflow.com/questions/739 ... g-composer

Вернуться в «Php»