php动态加载模块gettext

安装php的模块有两种方式:

一、重新编译php,加上--with-gettext

二、动态安装

  1、下载同版本的php原包,解压后进入ext目录,目录下便是模块

  2、进入gettext目录下执行:

    /usr/local/php/bin/phpize

    ./configure --with-php-config=/usr/local/php/bin/php-config

    make

    make install

      MAC安装时如遇到如下错误:

      Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20131226/

      cp: /usr/lib/php/extensions/no-debug-non-zts-20131226/#INST@79807#: Operation not permitted

      重启,按command+R,在命令终端输入csrutil disable

   3、在php.ini里添加上gettext.so

    extension = "gettext.so"

猜你喜欢

转载自www.cnblogs.com/instar/p/10130628.html
今日推荐