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

推荐订阅源

Application and Cybersecurity Blog
Application and Cybersecurity Blog
A
About on SuperTechFans
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Help Net Security
Help Net Security
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
O
OpenAI News
美团技术团队
月光博客
月光博客
Apple Machine Learning Research
Apple Machine Learning Research
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
Cyberwarzone
Cyberwarzone
Hacker News - Newest:
Hacker News - Newest: "LLM"
Google Online Security Blog
Google Online Security Blog
T
Tenable Blog
S
Security Affairs
博客园_首页
S
Schneier on Security
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
Spread Privacy
Spread Privacy
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
K
Kaspersky official blog
Hugging Face - Blog
Hugging Face - Blog
TaoSecurity Blog
TaoSecurity Blog
博客园 - 聂微东
Vercel News
Vercel News
M
MIT News - Artificial intelligence
T
Troy Hunt's Blog
B
Blog
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
Attack and Defense Labs
Attack and Defense Labs
L
LINUX DO - 最新话题
D
DataBreaches.Net
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - Franky
W
WeLiveSecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
F
Fortinet All Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Check Point Blog
H
Hacker News: Front Page

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

打车抬表费用图 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)  评论()    收藏  举报