Page 1 of 1

[SOLVED] [mg8] Can't install composer

PostPosted: Jan 6th, '23, 13:18
by bitit
Code: Select all
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"PHP Warning:  PHP Startup: Phar: Unable to initialize module
Module compiled with module API=20200930
PHP    compiled with module API=20210902
These options need to match
 in Unknown on line 0


Some tips?
Enrico

Re: [mg8] Can't install composer

PostPosted: Jan 6th, '23, 16:15
by doktor5000
What php packages do you have installed, as they don't seem to match according to the error message ?
Code: Select all
rpm -qa|grep -iE "php-(cli|phar)"

Re: [mg8] Can't install composer

PostPosted: Jan 6th, '23, 18:46
by bitit
This
Code: Select all
# rpm -qa|grep -iE "php-(cli|phar)"
php-phar-8.0.2-1.mga8
php-cli-8.1.13-1.mga8


enrico

Re: [mg8] Can't install composer

PostPosted: Jan 6th, '23, 19:21
by sturmvogel
It is the same problem as the last time. You have packages from backports installed:
viewtopic.php?f=7&t=14785&p=86832&hilit=php#p86832
https://wiki.mageia.org/en/Mageia_8_Err ... s_problems

The correct way to solve this problem is described in the Errata.

Re: [mg8] Can't install composer

PostPosted: Jan 6th, '23, 20:25
by bitit
ohh.. Ok. thank you

Solved