Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmp: Unable to initialize module #109

Closed
hvipana opened this issue Nov 26, 2020 · 6 comments
Closed

gmp: Unable to initialize module #109

hvipana opened this issue Nov 26, 2020 · 6 comments

Comments

@hvipana
Copy link

hvipana commented Nov 26, 2020

Hi, gmp is not working anymore.

PHP Warning:  PHP Startup: gmp: Unable to initialize module
Module compiled with build ID=API20190902,TS
PHP    compiled with build ID=API20190902,NTS
These options need to match

composer.json:

"bref/bref": "^1.0",
"bref/extra-php-extensions": "^0.6.3",

Runtime: provided.al2

@Nyholm
Copy link
Collaborator

Nyholm commented Nov 26, 2020

All the issues should be solved in 0.6.4 (will be released today)

@hvipana
Copy link
Author

hvipana commented Nov 27, 2020

Thank you, gmp is working now.

@hvipana hvipana closed this as completed Nov 27, 2020
@Nyholm
Copy link
Collaborator

Nyholm commented Nov 27, 2020

Cool. I got a bit worried for a moment. 0.7.0 will include some tests so this will not be repeated.

@himal250692
Copy link

I am still getting this issue.
PHP Warning: PHP Startup: gmp: Unable to initialize module
Module compiled with build ID=API20190902,NTS  
PHP compiled with build ID=API20190902,TS  

Below are the Layer I am using:

  • 'arn:aws:lambda:us-east-1:209497400698:layer:php-74-fpm:12'
  • 'arn:aws:lambda:us-east-1:403367587399:layer:gmp-php-74:25'

Thanks

@Nyholm
Copy link
Collaborator

Nyholm commented Oct 6, 2021

It seams like you are running an old version of the bref layer (php-74-fpm).

Do you have the same issue with version 32?
https://github.com/brefphp/bref/blob/master/layers.json#L110

@himal250692
Copy link

I have changed to version 32, I am getting another

/opt/bin/php: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants