Problem install composer php8.2

I’m trying to install Librems and composer gives me an error, I think it’s a problem of composer not compatible with php8.2

librenms@LIBRENMS:~$ ./scripts/composer_wrapper.php install --no-dev
Could not scan for classes inside “vendor/dapphp/radius” which does not appear t o be a file nor a folder

LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run compose r update.

Problem 1
- fgrosse/phpasn1 is locked to version v2.4.0 and an update of this package was not requested.
- fgrosse/phpasn1 v2.4.0 requires php ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 | | ~8.0.0 || ~8.1.0 → your php version (8.2.0) does not satisfy that requirement .
Problem 2
- fgrosse/phpasn1 v2.4.0 requires php ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 | | ~8.0.0 || ~8.1.0 → your php version (8.2.0) does not satisfy that requirement .
- web-token/jwt-core v2.2.11 requires fgrosse/phpasn1 ^2.0 → satisfiable by fgrosse/phpasn1[v2.4.0].
- web-token/jwt-core is locked to version v2.2.11 and an update of this pack age was not requested.

Is there any update???

Php 8.1 is the only supported version atm.

in the installation process “apt install acl curl fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php-cli php-curl php-fpm php-gd php-gmp php-json php-mbstring php- mysql php-snmp php-xml php-zip rrdtool snmp snmpd whois unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-systemd python3-pip”

php8.2 is automatically installed, what changes would I have to make to install php8 .1 ???

Same issue here. Is there an 8.1 compatibility to install? Or can we run 8.1 and 8.2 side by side?

So, I was able to get this to work but I had to uninstall php8.2 and install php8.1. I did the installs by doing 8.1 in the middle of the apt install options. Example:
apt install php8.1-cli php8.1-curl php8.1-fpm php8.1-gd php8.1-gmp php8.1-mbstring php8.1-mysql php8.1-snmp php8.1-xml php8.1-zip

1 Like

This issue is now fixed and the changes have been pushed to Github.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.