Home> php教程> php手册> body text

WDCP从php5.2升级到5.3的办法,以及升级过程中iconv错误的处理

WBOY
Release: 2016-06-06 19:43:26
Original
1018 people have browsed it

从wdcp官方论坛我们可以找到一个询问升级的帖子,然后管理员在回复中也提供了升级方法: cd / tmp wget -c http: // dl.wdlinux.cn:5180/soft/php-5.3.10.tar.gz tar zxvf php- 5.3 . 10 . tar .gzcd php - 5.3 . 10 . /configure --prefix=/www/wdlinux/php

从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
Copy after login

但是在实际升级过程中,部分朋友执行到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
Copy after login

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

wget http://down.wdlinux.cn/in/iconv_ins.sh sh iconv_ins.sh
Copy after login

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

Stopping httpd: [ OK ] Starting httpd: [ OK ]
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!