Hướng dẫn dùng libxml2 trong PHP
Trong quá trình complie PHP, các bạn có thể gặp một số lỗi sau, dưới đây là 22 lỗi complie PHP thườn gặp nhất mà hostvn ghi nhận được Lỗi 1 : checking for BZip2 support… yes Cách xử lý: yum install bzip2-devel Lỗi 2: checking for cURL support… yes Cách xử lý: yum install curl-devel Lỗi 3: checking for fabsf… yes checking for fabsf… yes Cách xử lý: yum install libpng-devel Lỗi 4: checking for curl_multi_strerror in -lcurl… yes Cách xử lý: yum install db4-devel Lỗi 5: checking for png_write_image in -lpng… yes configure: error: freetype.h not found. Cách xử lý: Fix: Reconfigure your PHP with the following option. Lỗi 6: checking for png_write_image in -lpng… yes Cách xử lý: yum install libXpm-devel Lỗi 7: checking for bind_textdomain_codeset in -lc… yes Cách xử lý: yum install gmp-devel Lỗi 8: checking for utf8_mime2text signature… new Cách xử lý: yum install libc-client-devel Lỗi 9: checking for LDAP support… yes, shared Cách xử lý: yum install openldap-devel Lỗi 10: checking for mysql_set_character_set in -lmysqlclient… yes Cách xử lý: yum install unixODBC-devel Lỗi 11: checking for PostgreSQL support for PDO… yes, shared Cách xử lý: yum install postgresql-devel Lỗi 12: checking for sqlite 3 support for PDO… yes, shared Cách xử lý: yum install sqlite-devel Lỗi 13: checking for utsname.domainname… yes Cách xử lý: yum install aspell-devel Lỗi 14: checking whether to enable UCD SNMP hack… yes checking for kstat_read in -lkstat… no Cách xử lý: yum install net-snmp-devel Lỗi 15: checking whether to enable XMLWriter support… yes, shared Cách xử lý: yum install libxslt-devel Lỗi 16: configure: error: xml2-config not found. Please check your libxml2 installation. Cách xử lý: yum install libxml2-devel Lỗi 17: checking for PCRE headers location… configure: error: Could not find pcre.h in /usr Cách xử lý: yum install pcre-devel Lỗi 18: libtool: link: cannot find the library `/usr/lib/libidn.la’ or unhandled argument `/usr/lib/libidn.la’ Cách xử lý: cd /usr/src/ Lỗi 19: libtool: link: `/usr/lib/libxml2.la’ is not a valid libtool archive Cách xử lý: cd /usr/src/ Lỗi 20: configure: error: Your t1lib distribution is not installed correctly. Please reinstall it. Cách xử lý: yum install t1lib-devel.x86_64 Lỗi 21: configure: error: mcrypt.h not found. Please reinstall libmcrypt. Cách xử lý: yum install libmcrypt-devel.x86_64 Lỗi 22: configure: error: Cannot find libtidy Cách xử lý: yum install libtidy libtidy-devel |