composer self-update?

Vom einfachen Programm zum fertigen Debian-Paket, Fragen rund um Programmiersprachen, Scripting und Lizenzierung.
Antworten
Benutzeravatar
xcomm
Beiträge: 794
Registriert: 21.09.2003 05:12:01
Wohnort: Europe
Kontaktdaten:

composer self-update?

Beitrag von xcomm » 14.08.2023 08:11:46

hi Gemeinde,

habe composer aus den Debian Repos installiert.

Ich will damit eine Shopsoftware upgrade, das ging auch beim Minor Relese, beim nächsten Schritt, möchte er aber scheinbar einen neueren Composer-Teil:

Code: Alles auswählen

- symfony/framework-bundle[v6.2.0, ..., v6.3.2] require composer-runtime-api >=2.1 -> found composer-runtime-api[2.0.0] but it does not match the constraint.
Nun habe ich an verschiedenen Stellen gefunden, das Composer sich selbst aktualisieren kann.

Code: Alles auswählen

 composer self-update
Unter Debian scheint es da ab nicht zu geben?

Code: Alles auswählen

Command "self-update" is not defined. 
Danke

schwedenmann
Beiträge: 5529
Registriert: 30.12.2004 15:31:07
Wohnort: Wegberg

Re: composer self-update?

Beitrag von schwedenmann » 14.08.2023 09:20:37

Hallo


als Root ausgeführt ?
composer self-update

mfg
schwedenmann

Benutzeravatar
xcomm
Beiträge: 794
Registriert: 21.09.2003 05:12:01
Wohnort: Europe
Kontaktdaten:

Re: composer self-update?

Beitrag von xcomm » 15.08.2023 07:28:42

Ja, sieht leider so aus:

[code}



Linux sw6 5.10.0-24-amd64 #1 SMP Debian 5.10.179-5 (2023-08-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have no mail.
Last login: Mon Aug 14 11:19:46 2023 from 93.236.90.85

s:(~)# aptitude install composer

s:(~)# composer self-update
PHP Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Symfony/Component/Console/Helper/HelperSet.php on line 103

Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Symfony/Component/Console/Helper/HelperSet.php on line 103
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?


Command "self-update" is not defined.

s:(~)# php -v
PHP 8.2.8 (cli) (built: Jul 16 2023 11:01:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.8, Copyright (c) Zend Technologies
with Zend OPcache v8.2.8, Copyright (c), by Zend Technologies

[/code]

Benutzeravatar
oln
Beiträge: 487
Registriert: 05.01.2021 09:41:24

Re: composer self-update?

Beitrag von oln » 15.08.2023 07:43:49

Der alte Composer läuft nicht mit php8.2
Hast du noch weitere PHP-Versionen auf deinem Rechner?
Wenn ja solltest du den Composer mit einer 7ner Version von PHP ausführen.
Gruß Ole
AbuseIPDB

Antworten