Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FireBlade's avatar

Install PHP GMP for elliptic curve cryptography

This command

composer require simplito/elliptic-php 

fails with many errors.I guess its due to missing GMP module so I try

sudo apt-get install php8.0-gmp 

but it says unknown module. When I install with

composer require simplito/elliptic-php --ignore-platform-reqs 

it installs successfully but my Laravel app fails with error

Cannot use BigInteger. Neither gmp nor bcmath module is loaded
0 likes
4 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Try

sudo apt-get install php8.0-bcmath
FireBlade's avatar

@Sinnbeck

sudo apt-get install php8.0-bcmath

E: Unable to locate package php8.0-bcmath
E: Couldn't find any package by glob 'php8.0-bcmath'
E: Couldn't find any package by regex 'php8.0-bcmath'

php -v 

PHP 8.0.12 (cli) (built: Oct 22 2021 12:34:00) ( NTS )
Copyright (c) The PHP Group

Please or to participate in this conversation.