[SOLVED] [mg8] Can't install composer

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] [mg8] Can't install composer

Postby bitit » Jan 6th, '23, 13:18

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
Last edited by bitit on Jan 6th, '23, 20:25, edited 1 time in total.
bitit
 
Posts: 162
Joined: Feb 3rd, '16, 14:01

Re: [mg8] Can't install composer

Postby doktor5000 » Jan 6th, '23, 16:15

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)"
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [mg8] Can't install composer

Postby bitit » Jan 6th, '23, 18:46

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
bitit
 
Posts: 162
Joined: Feb 3rd, '16, 14:01

Re: [mg8] Can't install composer

Postby sturmvogel » Jan 6th, '23, 19:21

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.
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: [mg8] Can't install composer

Postby bitit » Jan 6th, '23, 20:25

ohh.. Ok. thank you

Solved
bitit
 
Posts: 162
Joined: Feb 3rd, '16, 14:01


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron