在路径中找到phpize

在需要编译的模块文件夹中执行

如:

/usr/bin/phpize

Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226

以上命令在需要编译的模块文件夹中生成了 configure 文件。

在执行:

./configure --with-php-config=/usr/php/bin/php-config
make && make install
Installing shared extensions:     /usr/php/lib/php/extensions/no-debug-non-zts-20131226/

 

会在以上路径中生成模块文件  .so 文件

然后在php.ini中引用文件就会启用模块文件

如:

[gmagick]
extension=gmagick.so

 

相关文章:

  • 2021-11-19
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-25
  • 2021-06-15
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
相关资源
相似解决方案