[pdo_mysql.lo] Error 1 或者 [php_mysql.lo] Error 1

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

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

这是因为这是因为在编译时需要 MySQL 的头的文件。而它按默认搜索找不到头文件的位置,所以才出现这个问题。通过软连接把MySQL头文件对应到/usr/local/include/下就好
比如你的MySQL安装文件位于/usr/local/mysql,那么就执行以下命令:

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

原文地址:https://www.cnblogs.com/heijinli/p/10459789.html

时间: 2024-10-18 15:03:42

[pdo_mysql.lo] Error 1 或者 [php_mysql.lo] Error 1的相关文章

解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing

git提交代码时,出现这个错误"error: The requested URL returned error: 403 Forbidden while accessing https" 解决方法: 编辑.git文件夹下的config文件就可以. vim .git/config #改动对于的配置 #原来的url = https://github.com/elitecodegroovy/PhoenixC.git url = https://[email protected]/elitec

Error page: /dede/login.php Error infos: No database

登陆dede后台这样提示Error page: /dede/login.php Error infos: No database selected Error sql: Select admin.*,atype.purviews From `dede_admin` admin left join `dede_admintype` atype on atype.rank=admin.usertype where admin.userid like 'admin' limit 0,1登陆dede后台

ERROR 1160 (08S01) : Got an error writing communication packets

? 应用程序端碰到错误提示,MySQLNonTransientConnectionException:Got an error writing communication packets.与packet有关,之前一直都没有碰到过这个问题.数据库error日志也未见半点异常,到底是怎么一回事呢? 1.故障现象故障环境:$ cat /etc/issueCentOS release 5.9 (Final)Kernel \r on an \m [[email protected] ~]$ mysql -

java.lang.Error: Unresolved compilation problems: Syntax error on token "return", delete this token Type mismatch: cannot convert from Init to String

java.lang.Error: Unresolved compilation problems:   Syntax error on token "return", delete this token  Type mismatch: cannot convert from Init to String Dubbo 在调用服务时候报的错误! 那么问题来了.这什么错? ? 英语不好.     Type mismatch: cannot convert from Init to Strin

Internal error: (org.jdom.input.JDOMParseException) Error on line 1: 文件提前结束。

环境: maven idea tomcat 异常描述: maven clean ,install都没问题,就是点击启动tomcat,时就报错,错误信息如下: Internal error: (org.jdom.input.JDOMParseException) Error on line 1: 文件提前结束.org.jdom.input.JDOMParseException: Error on line 1: 文件提前结束. at org.jdom.input.SAXBuilder.build(

BIP Requests Are Failing With Error "OPP Error Oracle.apps.xdo.XDOException: Error Creating Lock Fil

In this Document   Symptoms   Cause   Solution   References Applies to: BI Publisher (formerly XML Publisher) - Version 12.1 to 12.2 [Release 12.1 to 12.2] Information in this document applies to any platform. Symptoms BiP Requests are failing: ERROR

怎样处理“error C2220: warning treated as error - no object file generated”错误

最近用VS2010 编译ceflib开源库是出现"怎样处理"error C2220: warning treated as error - no object file generated"错误" 产生原因为:有些Project编译选项中,Treat Warnings As Errors(把警告看作错误来处理)选项开启了. 只要把此选项关闭,就可以正常编译了. 在Solution中,选择libMXF工程,右键菜单中选择"Properties".弹

error: Setup script exited with error: command 'gcc' failed with exit status 1

安装python模块时出现:error: Setup script exited with error: command 'gcc' failed with exit status 1 解决方法: yum -y install python-devel error: Setup script exited with error: command 'gcc' failed with exit status 1

启动监听报错:TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection closed Linux Error: 29: Illegal seek

启动监听程序报错: 说明:在rhel5.8上安装完成oracle11g数据库后,使用netca创建完监听,启动监听时报错.还未使用dbca创建实例. [[email protected] ~]$ lsnrctl start LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-APR-2015 08:33:53 Copyright (c) 1991, 2009, Oracle. All rights reserved. Starting