{"id":9927,"date":"2015-06-16T16:24:21","date_gmt":"2015-06-16T14:24:21","guid":{"rendered":"http:\/\/xlogic.org\/blog\/?p=9927"},"modified":"2018-02-09T16:26:22","modified_gmt":"2018-02-09T15:26:22","slug":"compilazione-php-errori-comuni-e-risoluzione-parte-1","status":"publish","type":"post","link":"https:\/\/xlogic.org\/blog\/compilazione-php-errori-comuni-e-risoluzione-parte-1.html\/","title":{"rendered":"Compilazione PHP errori comuni e risoluzione &#8211; Parte 1"},"content":{"rendered":"<p>Questa guida \u00e8 dedicata ai nostri clienti che utilizzano uno dei nostri VPS SSD unManaged, senza cPanel.<\/p>\n<p>La compilazione PHP non \u00e8 un processo semplice, molte dipendenze sono necessarie per poterlo compilare da un\u00a0codice sorgente. Utilizzando dei\u00a0pacchetti le dipendenze vengono rilevate automaticamente e vengono installate automaticamente con il pacchetto corrispondente.<\/p>\n<p>Di seguito elenchiamo alcuni errori di compilazione PHP con la\u00a0soluzione:<\/p>\n<hr \/>\n<p>checking for BZip2 support\u2026 yes<br \/>\nchecking for BZip2 in default path\u2026 not found<br \/>\nconfigure: error: Please reinstall the BZip2 distribution<\/p>\n<p><strong>Soluzione<\/strong>:<br \/>\nyum install bzip2-devel<\/p>\n<hr \/>\n<p>checking for cURL support\u2026 yes<br \/>\nchecking if we should use cURL for url streams\u2026 no<br \/>\nchecking for cURL in default path\u2026 not found<br \/>\nconfigure: error: Please reinstall the libcurl distribution &#8211;<br \/>\neasy.h should be in \/include\/curl\/<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install curl-devel<\/p>\n<hr \/>\n<p>checking for fabsf\u2026 yes<br \/>\nchecking for floorf\u2026 yes<br \/>\nconfigure: error: jpeglib.h not found.<br \/>\nchecking for fabsf\u2026 yes<br \/>\nchecking for floorf\u2026 yes<br \/>\nchecking for jpeg_read_header in -ljpeg\u2026 yes<br \/>\nconfigure: error: png.h not found.<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install libpng-devel<\/p>\n<hr \/>\n<p>checking for curl_multi_strerror in -lcurl\u2026 yes<br \/>\nchecking for QDBM support\u2026 no<br \/>\nchecking for GDBM support\u2026 no<br \/>\nchecking for NDBM support\u2026 no<br \/>\nconfigure: error: DBA: Could not find necessary header file(s).<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install db4-devel<\/p>\n<hr \/>\n<p>checking for png_write_image in -lpng\u2026 yes<br \/>\nIf configure fails try \u2013with-xpm-dir=<br \/>\nconfigure: error: freetype.h not found.<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nConfigurare PHP con le seguenti opzioni:<br \/>\n\u2013with-xpm-dir=\/usr<\/p>\n<hr \/>\n<p>checking for png_write_image in -lpng\u2026 yes<br \/>\nconfigure: error: libXpm.(a|so) not found.<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install libXpm-devel<\/p>\n<hr \/>\n<p>checking for bind_textdomain_codeset in -lc\u2026 yes<br \/>\nchecking for GNU MP support\u2026 yes<br \/>\nconfigure: error: Unable to locate gmp.h<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install gmp-devel<\/p>\n<hr \/>\n<p>checking for utf8_mime2text signature\u2026 new<br \/>\nchecking for U8T_DECOMPOSE\u2026<br \/>\nconfigure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install libc-client-devel<\/p>\n<hr \/>\n<p>checking for LDAP support\u2026 yes, shared<br \/>\nchecking for LDAP Cyrus SASL support\u2026 yes<br \/>\nconfigure: error: Cannot find ldap.h<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install openldap-devel<\/p>\n<hr \/>\n<p>checking for mysql_set_character_set in -lmysqlclient\u2026 yes<br \/>\nchecking for mysql_stmt_next_result in -lmysqlclient\u2026 no<br \/>\nchecking for Oracle Database OCI8 support\u2026 no<br \/>\nchecking for unixODBC support\u2026 configure: error: ODBC header file \u2018\/usr\/include\/sqlext.h\u2019 not found!<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install unixODBC-devel<\/p>\n<hr \/>\n<p>checking for PostgreSQL support for PDO\u2026 yes, shared<br \/>\nchecking for pg_config\u2026 not found<br \/>\nconfigure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install postgresql-devel<\/p>\n<hr \/>\n<p>checking for sqlite 3 support for PDO\u2026 yes, shared<br \/>\nchecking for PDO includes\u2026 (cached) \/usr\/local\/src\/php-5.3.7\/ext<br \/>\nchecking for sqlite3 files in default path\u2026 not found<br \/>\nconfigure: error: Please reinstall the sqlite3 distribution<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install sqlite-devel<\/p>\n<hr \/>\n<p>checking for utsname.domainname\u2026 yes<br \/>\nchecking for PSPELL support\u2026 yes<br \/>\nconfigure: error: Cannot find pspell<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install aspell-devel<\/p>\n<hr \/>\n<p>checking whether to enable UCD SNMP hack\u2026 yes<br \/>\nchecking for default_store.h\u2026 no<br \/>\nchecking for kstat_read in -lkstat\u2026 no<br \/>\nchecking for snmp_parse_oid in -lsnmp\u2026 no<br \/>\nchecking for init_snmp in -lsnmp\u2026 no<br \/>\nconfigure: error: SNMP sanity check failed. Please check config.log for more information.<\/p>\n<p><strong>Soluzione:<\/strong><br \/>\nyum install net-snmp-devel<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong><a href=\"https:\/\/xlogic.org\/blog\/compilazione-php-errori-comuni-e-risoluzione-parte-2.html\/\" target=\"_blank\" rel=\"noopener\">PARTE2<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Questa guida \u00e8 dedicata ai nostri clienti che utilizzano uno dei nostri VPS SSD unManaged, senza cPanel. La compilazione PHP non \u00e8 un processo semplice, molte dipendenze sono necessarie per poterlo compilare da un\u00a0codice sorgente. Utilizzando dei\u00a0pacchetti le dipendenze vengono rilevate automaticamente e vengono installate automaticamente con il pacchetto corrispondente. Di seguito elenchiamo alcuni errori [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,1421],"tags":[1093],"class_list":["post-9927","post","type-post","status-publish","format-standard","hentry","category-news","category-coding","tag-errori-php"],"modified_by":"Andrea (Xlogic.org)","_links":{"self":[{"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/posts\/9927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/comments?post=9927"}],"version-history":[{"count":0,"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/posts\/9927\/revisions"}],"wp:attachment":[{"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/media?parent=9927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/categories?post=9927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlogic.org\/blog\/wp-json\/wp\/v2\/tags?post=9927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}