phpize

php5.6关键词过滤扩展php-ext-trie-filter添加

徘徊边缘 提交于 2020-04-24 14:06:20
php extension for spam word filter based on Double-Array Trie tree, it can detect if a spam word exists in a text message. 关键词过滤扩展 ,用于检查一段文本中是否出现敏感词,基于Double-Array Trie 树实现。 1、安装libiconv,这个是libdatrie的依赖项 wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar zxvf libiconv-1.14.tar.gz cd libiconv-1.14 ./configure make && make install && ldconfig 2、安装libdatrie (http://linux.thai.net/~thep/datrie/datrie.html) wget ftp://linux.thai.net/pub/ThaiLinux/software/libthai/libdatrie-0.2.4.tar.gz tar zxf libdatrie-0.2.4.tar.gz cd libdatrie-0.2.4 make clean ./configure LDFLAGS=-L/usr/local/lib

Unable to use PHPIZE after update to MacOS Mojave

半城伤御伤魂 提交于 2019-12-17 15:54:36
问题 What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools. grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: 回答1: Potential better solution - force reinstall the header files. Fixed a ton of problems for me system wide

phpize--扩展编译工具

隐身守侯 提交于 2019-12-07 20:43:43
Compiling shared PECL extensions with phpize Sometimes, using the pecl installer is not an option. This could be because you're behind a firewall, or it could be because the extension you want to install is not available as a PECL compatible package, such as unreleased extensions from SVN. If you need to build such an extension, you can use the lower-level build tools to perform the build manually. The phpize command is used to prepare the build environment for a PHP extension. In the following sample, the sources for an extension are in a directory named extname: $ cd extname 进入到源码包中的扩展目录

linux下用phpize给PHP动态添加扩展

自古美人都是妖i 提交于 2019-12-06 21:28:17
phpize简介 phpize 是属于 php-devel 中的东西,主要是设定 php 外挂模块的一些设定 所以安装 php-devel 相关套件就会有 phpize 可以使用 (档案预设存放于 /usr/bin/phpize ) phpize 命令是用来准备 PHP 外挂模块的编译环境的。下面例子中,外挂模块的源程序位于 extname 目录中 : $ cd extname $ phpize $ ./configure ( 注一 ) $ make $ make install 成功的安装将建立 extname.so 并放置于 PHP 的外挂模块目录中 (预设存放于 /usr/lib/php/modules/ 内) 。 需要调整 php.ini,加入 extension=extname.so 这一行之后才能使用此外挂模块。 注一 : 如在执行  ./configure 时出现  not find –with-php-config 时, 可重下以下指令,因 –with-php-config 预设在 /usr/bin/php-config 可找到 ./configure –with-php-config=/usr/bin/php-config 需要调整 php.ini,加入 extension=extname.so 这一行之后才能使用此扩展库。 phpize给PHP动态添加扩展

centos安装PHP扩展(bcmath)

烈酒焚心 提交于 2019-12-06 06:31:24
东西多容易忘记!写下来备份; linux下用phpize给PHP动态添加扩展 使用php的常见问题是编译php时忘记添加某扩展,后来想添加扩展,但是因为安装php后又装了一些东西如PEAR等,不想删除目录重装,这里就需要用到phpize了。 如我想增加bcmath扩展的支持,这是一个支持大整数计算的扩展。windows自带而且内置,linux“本类函数仅在 PHP 编译时配置了 --enable-bcmath 时可用”(引号内是手册中的话) 注意,有些扩展需要和php的版本保持一致才可以的. 解压bcmath包,进入里面的ext/bcmath目录,然后执行 /usr/local/php/bin/phpize ,(其实在PHP源码安装包里面进行)phpize在php安装完以后会有这个命令的, 会发现当前目录下多了一些configure文件,然后再执行./configure命令即可. #/usr/local/php/bin/phpize #./configure --with-php-config=/usr/local/php/bin/php-config 注意要先确保 /usr/local/php/bin/php-config 存在。 (如果你的php安装路径不是默认的,请修改为php安装的路径) 如果没有报错,则make,再make install ,然后它告诉你一个目录.

add yaml extension to php on using official Alpine Docker image

橙三吉。 提交于 2019-12-01 13:34:33
问题 I'm using this offical php Docker image: https://github.com/docker-library/php/blob/76a1c5ca161f1ed6aafb2c2d26f83ec17360bc68/7.1/alpine/Dockerfile Now I need to add support for yaml extension, that is not bundled with php. I see the base image I'm using uses phpize. I'm trying with this approach: FROM php:7.1.5-alpine # Install and enable yaml extension support to php RUN apk add --update yaml yaml-dev RUN pecl channel-update pecl.php.net RUN pecl install yaml-2.0.0 && docker-php-ext-enable

Mac系统升级到10.9(mavericks)时安装php扩展问题解决

安稳与你 提交于 2019-11-30 09:27:47
问题一: 执行执行 phpize 报错: grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: 解决办法: sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include /usr/include PS:经测试,适用于 Yosemite (10.10) Xcode 6.0.1 (6A317) 问题二: 如果执行 phpize 提示如下错误: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF

Unable to use PHPIZE after update to MacOS Mojave

依然范特西╮ 提交于 2019-11-29 01:23:18
What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools. grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: Potential better solution - force reinstall the header files. Fixed a ton of problems for me system wide. Running the following command will reinstall the developer tools header files and should fix the issue. $