What to do if Iconv error occurs when compiling PHP

藏色散人
Release: 2023-03-13 18:30:02
Original
1848 people have browsed it

Solution to php compilation iconv error: 1. Use "make ZEND_EXTRA_LIBS='-liconv'" instead when making; 2. Add "EXTRA_LIBS = ..... -lcrypt -liconv".

What to do if Iconv error occurs when compiling PHP

The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer

What should I do if there is an iconv error when compiling php?

Solution to iconv error encountered when compiling php5

The first method:

When making, use make ZEND_EXTRA_LIBS='- liconv' instead

The second method is more troublesome

http://rental.zhupiter.com/postshow_273_1_1.html
Copy after login

If an error message such as "undefined reference to `libiconv_open'" appears when installing PHP into the system, it means that in ". /configure" failed to capture some environment variable values. The error occurred when creating "-o sapi/cli/php", and the iconv function library parameter to be linked was not given.

The quick solution is:

VI Makefile about line 70:

EXTRA_LIBS = ..... -lcrypt
Copy after login

Add -liconv at the end, for example:

EXTRA_LIBS = ..... -lcrypt  -liconv
Copy after login

Then Just make again.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What to do if Iconv error occurs when compiling PHP. For more information, please follow other related articles on the PHP Chinese website!

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 Tutorials
More>
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!