源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

linux下为php添加iconv模块的方法

  • 时间:2020-03-28 06:33 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:linux下为php添加iconv模块的方法
./configure --with-mysql=/backup/mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-curl --with-gd --enable-gd-native-ttf --with-apxs2=/usr/local/apache/bin/apxs --enable-sockets --with-iconv make时提示:
[url=http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz]http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz[/url] tar -zxvf libiconv-1.13.1.tar.gz cd libiconv-1.13.1 ./configure --prefix=/usr/local/libiconv make make install
再检查php
[u]复制代码[/u] 代码如下:
#./configure --with-mysql=/backup/mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-curl --with-gd --enable-gd-native-ttf --with-apxs2=/usr/local/apache/bin/apxs --enable-sockets --with-iconv=/usr/local/libiconv #make #make install
另一种解决方法为去除iconv模块也能正常编译php,如下: 編輯 Makefile 大約 77 行左右的地方: EXTRA_LIBS = ..... -lcrypt 在最後加上 -liconv,例如: EXTRA_LIBS = ..... -lcrypt -liconv 再运行make就可以了。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部