検索
ホームページバックエンド開発PHPチュートリアルPHP编译安装时常见错误解决办法_PHP

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

May 30, 2016 am 08:47 AM
phpインストールよくある間違いコンパイル

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

 

声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
誇大広告を超えて:今日のPHPの役割の評価誇大広告を超えて:今日のPHPの役割の評価Apr 12, 2025 am 12:17 AM

PHPは、特にWeb開発の分野で、最新のプログラミングで強力で広く使用されているツールのままです。 1)PHPは使いやすく、データベースとシームレスに統合されており、多くの開発者にとって最初の選択肢です。 2)動的コンテンツ生成とオブジェクト指向プログラミングをサポートし、Webサイトを迅速に作成および保守するのに適しています。 3)PHPのパフォーマンスは、データベースクエリをキャッシュおよび最適化することで改善でき、その広範なコミュニティと豊富なエコシステムにより、今日のテクノロジースタックでは依然として重要になります。

PHPの弱い参照は何ですか、そしていつ有用ですか?PHPの弱い参照は何ですか、そしていつ有用ですか?Apr 12, 2025 am 12:13 AM

PHPでは、弱い参照クラスを通じて弱い参照が実装され、ガベージコレクターがオブジェクトの回収を妨げません。弱い参照は、キャッシュシステムやイベントリスナーなどのシナリオに適しています。オブジェクトの生存を保証することはできず、ごみ収集が遅れる可能性があることに注意する必要があります。

PHPで__invoke Magicメソッドを説明してください。PHPで__invoke Magicメソッドを説明してください。Apr 12, 2025 am 12:07 AM

\ _ \ _ Invokeメソッドを使用すると、オブジェクトを関数のように呼び出すことができます。 1。オブジェクトを呼び出すことができるように\ _ \ _呼び出しメソッドを定義します。 2。$ obj(...)構文を使用すると、PHPは\ _ \ _ Invokeメソッドを実行します。 3。ロギングや計算機、コードの柔軟性の向上、読みやすさなどのシナリオに適しています。

同時性については、PHP 8.1の繊維を説明します。同時性については、PHP 8.1の繊維を説明します。Apr 12, 2025 am 12:05 AM

繊維はPhp8.1で導入され、同時処理機能が改善されました。 1)繊維は、コルーチンと同様の軽量の並行性モデルです。 2)開発者がタスクの実行フローを手動で制御できるようにし、I/O集約型タスクの処理に適しています。 3)繊維を使用すると、より効率的で応答性の高いコードを書き込むことができます。

PHPコミュニティ:リソース、サポート、開発PHPコミュニティ:リソース、サポート、開発Apr 12, 2025 am 12:04 AM

PHPコミュニティは、開発者の成長を支援するための豊富なリソースとサポートを提供します。 1)リソースには、公式のドキュメント、チュートリアル、ブログ、LaravelやSymfonyなどのオープンソースプロジェクトが含まれます。 2)StackOverFlow、Reddit、およびSlackチャネルを通じてサポートを取得できます。 3)開発動向は、RFCに従うことで学ぶことができます。 4)コミュニティへの統合は、積極的な参加、コード共有への貢献、および学習共有への貢献を通じて達成できます。

PHP対Python:違いを理解しますPHP対Python:違いを理解しますApr 11, 2025 am 12:15 AM

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHPは、シンプルな構文と高い実行効率を備えたWeb開発に適しています。 2。Pythonは、簡潔な構文とリッチライブラリを備えたデータサイエンスと機械学習に適しています。

PHP:それは死にかけていますか、それとも単に適応していますか?PHP:それは死にかけていますか、それとも単に適応していますか?Apr 11, 2025 am 12:13 AM

PHPは死にかけていませんが、常に適応して進化しています。 1)PHPは、1994年以来、新しいテクノロジーの傾向に適応するために複数のバージョンの反復を受けています。 2)現在、電子商取引、コンテンツ管理システム、その他の分野で広く使用されています。 3)PHP8は、パフォーマンスと近代化を改善するために、JITコンパイラおよびその他の機能を導入します。 4)Opcacheを使用してPSR-12標準に従って、パフォーマンスとコードの品質を最適化します。

PHPの未来:適応と革新PHPの未来:適応と革新Apr 11, 2025 am 12:01 AM

PHPの将来は、新しいテクノロジーの傾向に適応し、革新的な機能を導入することで達成されます。1)クラウドコンピューティング、コンテナ化、マイクロサービスアーキテクチャに適応し、DockerとKubernetesをサポートします。 2)パフォーマンスとデータ処理の効率を改善するために、JITコンパイラと列挙タイプを導入します。 3)パフォーマンスを継続的に最適化し、ベストプラクティスを促進します。

See all articles

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

AI Hentai Generator

AI Hentai Generator

AIヘンタイを無料で生成します。

ホットツール

DVWA

DVWA

Damn Vulnerable Web App (DVWA) は、非常に脆弱な PHP/MySQL Web アプリケーションです。その主な目的は、セキュリティ専門家が法的環境でスキルとツールをテストするのに役立ち、Web 開発者が Web アプリケーションを保護するプロセスをより深く理解できるようにし、教師/生徒が教室環境で Web アプリケーションを教え/学習できるようにすることです。安全。 DVWA の目標は、シンプルでわかりやすいインターフェイスを通じて、さまざまな難易度で最も一般的な Web 脆弱性のいくつかを実践することです。このソフトウェアは、

AtomエディタMac版ダウンロード

AtomエディタMac版ダウンロード

最も人気のあるオープンソースエディター

SublimeText3 Mac版

SublimeText3 Mac版

神レベルのコード編集ソフト(SublimeText3)

SublimeText3 英語版

SublimeText3 英語版

推奨: Win バージョン、コードプロンプトをサポート!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

強力な PHP 統合開発環境