在Ubuntu上安装PECL id3扩展

 井然洞中别样天 发布于 2023-02-03 10:00

我一直在尝试这个,现在仍然无法找到答案,当我尝试 sudo pecl install id3这个错误发生

downloading id3-0.2.tgz ...
Starting to download id3-0.2.tgz (20,693 bytes)
.....done: 20,693 bytes
4 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

If the command failed with 'phpize: not found' then you need to install php5-dev     packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed

请帮忙 !!!我已经安装了php5-dev.

1 个回答
  • http://php.net/manual/en/id3.installation.php

    您需要先使用以下命令下载id3:

    pecl download id3-alpha
    tar -zxvf id3*.tgz
    vim id3.c 
    

    必须在第196行更改:function_entry id3_functions [] = {

    zend_function_entry id3_functions [] = {

    phpize
    ./configure
    make
    make test
    make install
    

    然后将id3.so添加到php.ini文件中并重新启动apache

    2023-02-03 10:02 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有