惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Last Watchdog
The Last Watchdog
博客园_首页
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
美团技术团队
小众软件
小众软件
V
V2EX
博客园 - Franky
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Attack and Defense Labs
Attack and Defense Labs
S
Security Affairs
Simon Willison's Weblog
Simon Willison's Weblog
I
Intezer
T
The Exploit Database - CXSecurity.com
有赞技术团队
有赞技术团队
S
Schneier on Security
人人都是产品经理
人人都是产品经理
Security Archives - TechRepublic
Security Archives - TechRepublic
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
K
Kaspersky official blog
PCI Perspectives
PCI Perspectives
AI
AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
O
OpenAI News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Register - Security
The Register - Security
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
博客园 - 【当耐特】
C
Cisco Blogs
大猫的无限游戏
大猫的无限游戏
Help Net Security
Help Net Security
Google DeepMind News
Google DeepMind News
S
Securelist
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Proofpoint News Feed
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
L
LangChain Blog
SecWiki News
SecWiki News
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V2EX - 技术
V2EX - 技术
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
L
LINUX DO - 热门话题
Cisco Talos Blog
Cisco Talos Blog

博客园 - 古月春秋(刘云涛)

打车抬表费用图 vi的一点小经验 修正mysqlcc在MySQL 5.0上常报的 Table 'xxx' doesn't exist 错误 Perl中不寻常的 ?: 运算符 - 古月春秋(刘云涛) Ubuntu 5.10 下 Apache2 SSL 的配置方法 一行shell命令求素数 Boot FreeBSD from Windows boot loader Turtles - So Happy Together 关于IoC、低耦合、配置文件及其本质意义的思考 Perl与数据库 Perl无废话入门指南 W3C XSL Transformations (XSLT) Version 2.0 翻译计划 新版 apache_2.0.54 php-5.0.4 mysql-4.1.12a 组合安装向导(原创) Why MSN Messenger ask me to verify email address all the time? SharpDevelop的AddInTree View 插件 SharpDevelop源码分析 (三、插件系统) SharpDevelop源码分析 (二、主程序+隐藏的初始化) SharpDevelop代码分析 (一、序+基本概念) 亚洲3S节目表
Solaris 下安装Perl的DBD-mysql模块失败的原因以及解决办法
古月春秋(刘云涛) · 2005-07-05 · via 博客园 - 古月春秋(刘云涛)


Solaris下安装Perl的DBD::Mysql模块,已经出了两次问题了。现总结如下:

问题一:无法找到mysql_config
1. 下载DBD-mysql-3.0000
2. 解压
3. make Makefile.PL
4. 提示找不到mysql_config
解决办法:
出现这个问题是因为没有将mysql_config加入环境变量PATH中,只要将mysql/bin目录加入到路径中就可以了。
PATH=$PATH:/usr/local/mysql/bin
export PATH
然后重新make Makefile.PL

问题二:无法找到库libmysqlclient.so
solaris的mysql发行版本的库文件都是.a的静态库,DBD::Mysql模块需要.so的动态库编译。可以下载带源码的Mysql自行编译出.so的动态库。

问题三:编译不通过
那是因为mysql_config给Makefile.PL的cflags参数不正确。在我的Solaris上,给的参数是
-I/usr/local/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9
gcc 版本是 3.4.0,而-Xa -xstrconst -mt -xarch=v9这几个参数,solaris上的gcc不认。因此我手工指定参数生成Makefile:
perl Makefile.PL --cflags="-I/usr/local/mysql/include -D_FORTEC_"

之后make ; make install 一切顺利。

posted on 2005-07-05 11:47  古月春秋(刘云涛)  阅读(1256)  评论()    收藏  举报