Rumah pembangunan bahagian belakang tutorial php PHP编译安装时常见错误解决办法_PHP

PHP编译安装时常见错误解决办法_PHP

May 30, 2016 am 08:47 AM
php Pasang Kesilapan biasa menyusun

This article is post on https://coderwall.com/p/ggmpfa

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

代码如下:


yum -y install libxslt-devel


configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

代码如下:


yum -y install net-snmp-devel


configure: error: Please reinstall readline - I cannot find readline.h

代码如下:


yum -y install readline-devel


configure: error: Cannot find pspell

代码如下:


yum -y install aspell-devel


checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!

代码如下:


yum -y install unixODBC-devel


configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.

代码如下:


yum -y install libicu-devel


configure: error: utf8mime2text() has new signature, but U8TCANONICAL is missing. This should not happen. Check config.log for additional information.

代码如下:


yum -y install libc-client-devel


configure: error: freetype.h not found.

代码如下:


yum -y install freetype-devel


configure: error: xpm.h not found.

代码如下:


yum -y install libXpm-devel


configure: error: png.h not found.

代码如下:


yum -y install libpng-devel


configure: error: vpx_codec.h not found.

代码如下:


yum -y install libvpx-devel


configure: error: Cannot find enchant

代码如下:


yum -y install enchant-devel


configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

代码如下:


yum -y install libcurl-devel


LAOGAO added 20140907:

 

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

代码如下:


wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz
tar zxf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure
make && make install


added 20141003:

 

Cannot find imap

代码如下:


ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so


configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing.

代码如下:


yum -y install libc-client-devel


Cannot find ldap.h

代码如下:


yum -y install openldap
yum -y install openldap-devel


configure: error: Cannot find ldap libraries in /usr/lib

代码如下:


cp -frp /usr/lib64/libldap* /usr/lib/


configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

代码如下:


yum -y install postgresql-devel


configure: error: Please reinstall the lib curl distribution

代码如下:


yum -y install curl-devel


configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

代码如下:


yum -y install net-snmp-devel


configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

代码如下:


yum -y install libxslt-devel


checking for BZip2 support… yes checking for BZip2 in default path… not found configure: error: Please reinstall the BZip2 distribution

 

Fix:

代码如下:


yum -y install bzip2-devel


checking for cURL support… yes checking if we should use cURL for url streams… no checking for cURL in default path… not found configure: error: Please reinstall the libcurl distribution – easy.h should be in/include/curl/

 

Fix:

代码如下:


yum -y install curl-devel


checking for curl_multi_strerror in -lcurl… yes checking for QDBM support… no checking for GDBM support… no checking for NDBM support… no configure: error: DBA: Could not find necessary header file(s).

 

Fix:

代码如下:


yum -y install db4-devel


checking for fabsf… yes checking for floorf… yes configure: error: jpeglib.h not found.

 

Fix:

代码如下:


yum -y install libjpeg-devel


checking for fabsf… yes checking for floorf… yes checking for jpeg_read_header in -ljpeg… yes configure: error: png.h not found.

 

Fix:

代码如下:


yum -y install libpng-devel


checking for png_write_image in -lpng… yes If configure fails try –with-xpm-dir=

 

configure: error: freetype.h not found.
Fix:

代码如下:


Reconfigure your PHP with the following option. --with-xpm-dir=/usr


checking for png_write_image in -lpng… yes configure: error: libXpm.(a|so) not found.

 

Fix:

代码如下:


yum -y install libXpm-devel


checking for bind_textdomain_codeset in -lc… yes checking for GNU MP support… yes configure: error: Unable to locate gmp.h

 

Fix:

代码如下:


yum -y install gmp-devel


checking for utf8_mime2text signature… new checking for U8T_DECOMPOSE… configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

 

Fix:

代码如下:


yum -y install libc-client-devel


checking for LDAP support… yes, shared checking for LDAP Cyrus SASL support… yes configure: error: Cannot find ldap.h

 

Fix:

代码如下:


yum -y install openldap-devel


checking for mysql_set_character_set in -lmysqlclient… yes checking for mysql_stmt_next_result in -lmysqlclient… no checking for Oracle Database OCI8 support… no checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!

 

Fix:

代码如下:


yum -y install unixODBC-devel


checking for PostgreSQL support for PDO… yes, shared checking for pg_config… not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

 

Fix:

代码如下:


yum -y install postgresql-devel


checking for sqlite 3 support for PDO… yes, shared checking for PDO includes… (cached) /usr/local/src/php-5.3.7/ext checking for sqlite3 files in default path… not found configure: error: Please reinstall the sqlite3 distribution

 

Fix:

代码如下:


yum -y install sqlite-devel


checking for utsname.domainname… yes checking for PSPELL support… yes configure: error: Cannot find pspell

 

Fix:

代码如下:


yum -y install aspell-devel


checking whether to enable UCD SNMP hack… yes checking for default_store.h… no

 

checking for kstat_read in -lkstat… no checking for snmp_parse_oid in -lsnmp… no checking for init_snmp in -lsnmp… no configure: error: SNMP sanity check failed. Please check config.log for more information.

Fix:

代码如下:


yum -y install net-snmp-devel


checking whether to enable XMLWriter support… yes, shared checking for xml2-config path… (cached) /usr/bin/xml2-config checking whether libxml build works… (cached) yes checking for XSL support… yes, shared configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

 

Fix:

代码如下:


yum -y install libxslt-devel


configure: error: xml2-config not found. Please check your libxml2 installation.

 

Fix:

代码如下:


yum -y install libxml2-devel


checking for PCRE headers location… configure: error: Could not find pcre.h in /usr

 

Fix:

代码如下:


yum -y install pcre-devel


configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore!

 

Fix:

代码如下:


yum -y install mysql-devel


checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!

 

Fix:

代码如下:


yum -y install unixODBC-devel


checking for pg_config… not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

 

Fix:

代码如下:


yum -y install postgresql-devel


configure: error: Cannot find pspell

 

Fix:

代码如下:


yum -y install pspell-devel


configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

 

Fix:

代码如下:


yum -y install net-snmp-devel


configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

 

Fix:

代码如下:


yum -y install libxslt-devel

 

Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn

Alat AI Hot

Undresser.AI Undress

Undresser.AI Undress

Apl berkuasa AI untuk mencipta foto bogel yang realistik

AI Clothes Remover

AI Clothes Remover

Alat AI dalam talian untuk mengeluarkan pakaian daripada foto.

Undress AI Tool

Undress AI Tool

Gambar buka pakaian secara percuma

Clothoff.io

Clothoff.io

Penyingkiran pakaian AI

Video Face Swap

Video Face Swap

Tukar muka dalam mana-mana video dengan mudah menggunakan alat tukar muka AI percuma kami!

Alat panas

Notepad++7.3.1

Notepad++7.3.1

Editor kod yang mudah digunakan dan percuma

SublimeText3 versi Cina

SublimeText3 versi Cina

Versi Cina, sangat mudah digunakan

Hantar Studio 13.0.1

Hantar Studio 13.0.1

Persekitaran pembangunan bersepadu PHP yang berkuasa

Dreamweaver CS6

Dreamweaver CS6

Alat pembangunan web visual

SublimeText3 versi Mac

SublimeText3 versi Mac

Perisian penyuntingan kod peringkat Tuhan (SublimeText3)

Panduan Pemasangan dan Naik Taraf PHP 8.4 untuk Ubuntu dan Debian Panduan Pemasangan dan Naik Taraf PHP 8.4 untuk Ubuntu dan Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 membawa beberapa ciri baharu, peningkatan keselamatan dan peningkatan prestasi dengan jumlah penamatan dan penyingkiran ciri yang sihat. Panduan ini menerangkan cara memasang PHP 8.4 atau naik taraf kepada PHP 8.4 pada Ubuntu, Debian, atau terbitan mereka

7 Fungsi PHP Saya Menyesal Saya Tidak Tahu Sebelum ini 7 Fungsi PHP Saya Menyesal Saya Tidak Tahu Sebelum ini Nov 13, 2024 am 09:42 AM

Jika anda seorang pembangun PHP yang berpengalaman, anda mungkin merasakan bahawa anda telah berada di sana dan telah melakukannya. Anda telah membangunkan sejumlah besar aplikasi, menyahpenyahpepijat berjuta-juta baris kod dan mengubah suai sekumpulan skrip untuk mencapai op

Cara Menyediakan Kod Visual Studio (Kod VS) untuk Pembangunan PHP Cara Menyediakan Kod Visual Studio (Kod VS) untuk Pembangunan PHP Dec 20, 2024 am 11:31 AM

Kod Visual Studio, juga dikenali sebagai Kod VS, ialah editor kod sumber percuma — atau persekitaran pembangunan bersepadu (IDE) — tersedia untuk semua sistem pengendalian utama. Dengan koleksi sambungan yang besar untuk banyak bahasa pengaturcaraan, Kod VS boleh menjadi c

Jelaskan JSON Web Tokens (JWT) dan kes penggunaannya dalam PHP API. Jelaskan JSON Web Tokens (JWT) dan kes penggunaannya dalam PHP API. Apr 05, 2025 am 12:04 AM

JWT adalah standard terbuka berdasarkan JSON, yang digunakan untuk menghantar maklumat secara selamat antara pihak, terutamanya untuk pengesahan identiti dan pertukaran maklumat. 1. JWT terdiri daripada tiga bahagian: header, muatan dan tandatangan. 2. Prinsip kerja JWT termasuk tiga langkah: menjana JWT, mengesahkan JWT dan muatan parsing. 3. Apabila menggunakan JWT untuk pengesahan di PHP, JWT boleh dijana dan disahkan, dan peranan pengguna dan maklumat kebenaran boleh dimasukkan dalam penggunaan lanjutan. 4. Kesilapan umum termasuk kegagalan pengesahan tandatangan, tamat tempoh, dan muatan besar. Kemahiran penyahpepijatan termasuk menggunakan alat debugging dan pembalakan. 5. Pengoptimuman prestasi dan amalan terbaik termasuk menggunakan algoritma tandatangan yang sesuai, menetapkan tempoh kesahihan dengan munasabah,

Bagaimana anda menghuraikan dan memproses HTML/XML dalam PHP? Bagaimana anda menghuraikan dan memproses HTML/XML dalam PHP? Feb 07, 2025 am 11:57 AM

Tutorial ini menunjukkan cara memproses dokumen XML dengan cekap menggunakan PHP. XML (bahasa markup extensible) adalah bahasa markup berasaskan teks yang serba boleh yang direka untuk pembacaan manusia dan parsing mesin. Ia biasanya digunakan untuk penyimpanan data

Program PHP untuk mengira vokal dalam rentetan Program PHP untuk mengira vokal dalam rentetan Feb 07, 2025 pm 12:12 PM

Rentetan adalah urutan aksara, termasuk huruf, nombor, dan simbol. Tutorial ini akan mempelajari cara mengira bilangan vokal dalam rentetan yang diberikan dalam PHP menggunakan kaedah yang berbeza. Vokal dalam bahasa Inggeris adalah a, e, i, o, u, dan mereka boleh menjadi huruf besar atau huruf kecil. Apa itu vokal? Vokal adalah watak abjad yang mewakili sebutan tertentu. Terdapat lima vokal dalam bahasa Inggeris, termasuk huruf besar dan huruf kecil: a, e, i, o, u Contoh 1 Input: String = "TutorialSpoint" Output: 6 menjelaskan Vokal dalam rentetan "TutorialSpoint" adalah u, o, i, a, o, i. Terdapat 6 yuan sebanyak 6

Terangkan pengikatan statik lewat dalam php (statik: :). Terangkan pengikatan statik lewat dalam php (statik: :). Apr 03, 2025 am 12:04 AM

Mengikat statik (statik: :) Melaksanakan pengikatan statik lewat (LSB) dalam PHP, yang membolehkan kelas panggilan dirujuk dalam konteks statik dan bukannya menentukan kelas. 1) Proses parsing dilakukan pada masa runtime, 2) Cari kelas panggilan dalam hubungan warisan, 3) ia boleh membawa overhead prestasi.

Apakah kaedah Magic PHP (__construct, __destruct, __call, __get, __set, dll) dan menyediakan kes penggunaan? Apakah kaedah Magic PHP (__construct, __destruct, __call, __get, __set, dll) dan menyediakan kes penggunaan? Apr 03, 2025 am 12:03 AM

Apakah kaedah sihir PHP? Kaedah sihir PHP termasuk: 1. \ _ \ _ Membina, digunakan untuk memulakan objek; 2. \ _ \ _ Destruct, digunakan untuk membersihkan sumber; 3. \ _ \ _ Call, mengendalikan panggilan kaedah yang tidak wujud; 4. \ _ \ _ Mendapatkan, melaksanakan akses atribut dinamik; 5. \ _ \ _ Set, melaksanakan tetapan atribut dinamik. Kaedah ini secara automatik dipanggil dalam situasi tertentu, meningkatkan fleksibiliti dan kecekapan kod.

See all articles