php安装出现的部分错误

在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决。以下是具体的一些解决办法:

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

Fix: yum 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 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 install db4-devel

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

Fix: yum 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 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 yum install freetype-devel

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

Fix: yum 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 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 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 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 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 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 install sqlite-devel

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

Fix: yum 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 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 install libxslt-devel

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

Fix: yum install libxml2-devel

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

Fix: yum install pcre-devel

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

Fix: yum install mysql-devel

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

Fix: yum install unixODBC-devel

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

Fix:

yum install postgresql-devel

configure: error: Cannot find pspell

Fix: yum install pspell-devel

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

Fix: yum install net-snmp-devel

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

Fix: yum install libxslt-devel

编译安装PDO_MYSQL拓展模块,总是提示


1

2

3

4

5

6

7

In file included from /data0/software/PDO_MYSQL-1.0.2/pdo_mysql.c:31:

/data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:25:19: error: mysql.h: No such file or directory

In file included from /data0/software/PDO_MYSQL-1.0.2/pdo_mysql.c:31:

/data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:36: error: expected specifier-qualifier-list before ‘MYSQL’

/data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:48: error: expected specifier-qualifier-list before ‘MYSQL_FIELD’

/data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:53: error: expected specifier-qualifier-list before ‘MYSQL_RES’

make: *** [pdo_mysql.lo] Error 1

这是因为这是因为在编译时需要 MySQL 的头的文件。而它按默认搜索找不到头文件的位置,所以才出现这个问题。通过软连接把MySQL头文件对应到/usr/local/include/下就好

比如你的MySQL安装文件位于/usr/local/mysql,那么就执行以下命令:

# ln -s /usr/local/mysql/include/* /usr/local/include/

时间: 2024-08-10 14:02:26

php安装出现的部分错误的相关文章

解决安装mysql-connector-odbc-5.3.2 错误1918……不能加载安装或转换器库……的BUG

还是在虚拟机Windows Server 2003上安装mysql-connector-odbc-5.3.2,装着装着就报错了,大致是"错误1918--不能加载安装或转换器库--",问我Retry,Ignore还是Abort.Retry是过不去的,Ignore就装坏了,Abort就是放弃咯. Google了一下,大致是安装包缺少某些dll.参考:http://bugs.mysql.com/bug.php?id=72292 回到Windows 8.1,把C:\Windows\SysWOW

Oracle Warehouse Builder(OWB) 安装报seeding owbsys错误的解决

今天在RHEL6.4上安装Oracle Warehouse Builder 11.2时在最后一步报错,打开日志查看有如下信息: main.TaskScheduler timer[5][email protected]:27:55.055: 00> oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition.display(AssistantWizardDefinition.java:1476): [executeOwbRepo

使用vMware workstation 10安装操作系统显示内部错误的解决办法

在打开vMware workstation 10以后,准备安装Solaris 10操作系统,但是当点击"创建新的虚拟机"的时候,弹出一个对话框,显示"内部错误". 百度了一下,说去程序和功能里面找到vMware workstation 10的安装程序,里面有个修复,修复它既可.可是我试了几遍,都未能成功. 后来才发现,服务项里的vMware有启动状态,有停止状态,把停止状态启动它就OK了. 重新启动vMware workstation 10,正常运行. 使用vMwa

Oracle Study之--AMD CPU安装Oracle 11gR2 RAC错误

Oracle Study之--AMD CPU安装Oracle 11gR2 RAC错误 系统环境: 操作系统: RedHat  EL55     Oracle :     Oracle 11gR2 Grid +  Oracle 1.错误现象 [[email protected] install]# /u01/11.2.0/grid/root.shRunning Oracle 11g root.sh script... The following environment variables are 

Win7 SP1或安装补丁后安装VS2010出现无法安装FrameWork 4.0错误

出现这个问题,是因为 (1)你曾经手工安装了FrameWork 4.0或你安装的软件为你安装了FrameWork 4.0. (2)SP1补丁中包含了FrameWork 4.0,安装SP1之后FrameWork 4.0 即相当于安装到了电脑上(估计是不完全的,只提供了FrameWork 4.0运行的基础组件),所以VS 2010再安装FrameWork 4就会因当前已有的组件阻塞而无法安装,导致VS安装失败.(3)另外所有关于FrameWork 3.5和3.5.1的更新也会阻塞FrameWork

安装GI时出现错误 [INS-20802] Automatic storage Management Configuration Failed.

完整图文版 http://note.youdao.com/share/?id=87a8268293ea71992c78c564b032f077&type=note [INS-20802] Automatic storage Management Configuration Failed. 原因是上一次的安装没有彻底清除, /etc/oratab 里面相关内容删除 重新点下图的retry,此时就可以通过了. 安装GI时出现错误 [INS-20802] Automatic storage Manag

[openfair]解决在centos x64 上安装openfire出现的错误

在centos x64 上安装openfire,运行  /etc/init.d/openfire start后发现服务器没法开启,查看log日志: nohup: failed to run command `/opt/openfire/jre/bin/java': No such file or directory 很奇怪,我是在centos上安装了java,openfire自带的jre就没法使用了,在论坛上搜索到下面的解决办法: http://community.igniterealtime.

安装git出现的错误

Git在make的时候报错:Can't locate ExtUtils/MakeMaker.pm in @INC 解决方法如下: yum -y install perl-devel perl-CPAN git 需要perl来编译.然后重新make Git Make时出现:tclsh failed; using unoptimized loading MSGFMT    po/bg.msg make[1]: *** [po/bg.msg] 错误 127 yum install tcl  build

安装Mathematics Add-In时错误“需要适用于 Microsoft Office 的 .NET 可编程

使用Word或Onenote的人都知道,Mathematics Add-In可以在 Word 文档和 OneNote 笔记本中轻松地绘制二维和三维图表,对等式和不等式求解以及化简代数表达式.极大的方便数学教学和学生上数学课记笔记的问题.下载 前几天有一个活动,演示要用到数学公式,于是就下载安装它,但在安装时显示此错误: "需要适用于 Microsoft Office 的 .NET 可编程性支持才能安装 Microsoft Mathematics Add-in.". 于是就下载:dotN

centreon安装使用过程日志错误处理

按照上篇centreon部署文档安装centreon服务器,使用时发现centreon.nagios.系统日志出现很多报错,并且centreonweb页面不能查看监控到的主机状态,现将错误处理记录如下. 1.使用service ndo2db start 启动nod2db时,报错: Starting ndo2db:Could not bind socket:  Address already in usedone. 使用service ndo2db status 查看状态时,报错: ndo2db