Home  >  Q&A  >  body text

Fatal error: Call to undefined function gmp_sign() in PHP

I tried to use the gmp_sign function in my file to find out the sign of the value, but I got a fatal error similar to "call to undefined function".

P粉848442185P粉848442185458 days ago415

reply all(1)I'll reply

  • P粉300541798

    P粉3005417982023-07-18 11:37:42

    这是Ubuntu/Linux吗?看起来系统上没有安装GMP。按照以下步骤进行操作:

    1. 使用apt-get install php5-gmp命令安装GMP。

    2. 在php.ini文件中添加extension=php_gmp.so。

    你可以按照以下方式使用gmp_sign函数:

    使用以下命令安装GMP:

    apt-get install php5-gmp

    添加以下内容到php.ini文件中:

    extension=php_gmp.so


    reply
    0
  • Cancelreply