zoukankan      html  css  js  c++  java
  • WDCP从php5.2升级到5.3的办法,以及升级过程中iconv错误的处理

    从wdcp官方论坛我们可以找到一个询问升级的帖子,然后管理员在回复中也提供了升级方法:

    cd /tmp
    wget -c http://dl.wdlinux.cn:5180/soft/php-5.3.10.tar.gz
    tar zxvf php-5.3.10.tar.gz
    cd php-5.3.10
    ./configure --prefix=/www/wdlinux/php-5.3.10 --with-config-file-path=/www/wdlinux/etc --with-mysql=/www/wdlinux/mysql --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp --with-apxs2=/www/wdlinux/apache/bin/apxs
    make
    make install
    rm -f /www/wdlinx/php
    ln -s /www/wdlinux/php-5.3.10 /www/wdlinux/php
    service httpd restart

    但是在实际升级过程中,部分朋友执行到make这一部的时候会遇到iconv错误,提示:

    /root/php-5.3.17/ext/iconv/iconv.c: In function ‘zm_startup_miconv’:
    /root/php-5.3.17/ext/iconv/iconv.c:254: 错误:‘_libiconv_version’ 未声明 (在此函数内第一次使用)
    /root/php-5.3.17/ext/iconv/iconv.c:254: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
    /root/php-5.3.17/ext/iconv/iconv.c:254: 错误:所在的函数内只报告一次。)
    make: *** [ext/iconv/iconv.lo] 错误 1

    这时候可以执行下面的命令:

    wget http://down.wdlinux.cn/in/iconv_ins.sh
    sh iconv_ins.sh

    这个命令成功执行之后重新make就没问题了,接着执行上面的升级命令,当你看到下面的提示的时候则表示你升级成功了,,看一下phpinfo()的结果吧!

    Stopping httpd:                                            [  OK  ]
    Starting httpd:                                            [  OK  ]
  • 相关阅读:
    DGA域名可以是色情网站域名
    使用cloudflare加速你的网站隐藏你的网站IP
    167. Two Sum II
    leetcode 563. Binary Tree Tilt
    python 多线程
    leetcode 404. Sum of Left Leaves
    leetcode 100. Same Tree
    leetcode 383. Ransom Note
    leetcode 122. Best Time to Buy and Sell Stock II
    天津Uber优步司机奖励政策(12月28日到12月29日)
  • 原文地址:https://www.cnblogs.com/dragondean/p/wdcp-php52-to-php53.html
Copyright © 2011-2022 走看看