MySQL 的模块不能安装的解决方法
作者:hebedich 时间:2024-01-29 13:15:36
我们最常用的 DBD::mysql 模块,我发现是难住很多人的地方.因为安装老是失败,下面我介绍一下解决方法,比如我使用 cpanm 安装,有时就出 /home/nue2501j/work/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: DBIc_TRACE_LEVEL at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
如下
1.
# cpanm DBD::mysql
出错
# Tried to use 'DBD::mysql'.
# Error: Can't load '/home/nue2501j/work/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: /home/nue2501j/work/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: DBIc_TRACE_LEVEL at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
# at (eval 4) line 2
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 9
2. [代码][SQL]代码
解决方法
$ sudo perl -MCPAN -e shell
cpan> install Bundle::DBD::mysql
/usr/bin/make -- OK
/usr/bin/make test -- OK
/usr/bin/make install -- OK
cpan> install DBD::mysql
DBD::mysql is up to date.
以上所述就是本文的全部内容了,希望大家能够喜欢。
标签:MySQL,模块不能安装
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python安装Flask环境及简单应用示例
2021-09-19 10:07:24
Python assert关键字原理及实例解析
2022-11-12 09:24:10
主页移动背景代码
2009-11-16 17:54:00
通过js获取上传的图片信息(临时保存路径,名称,大小)然后通过ajax传递给后端的方法
2024-04-17 10:06:38
解决python spyder 突然打不开的问题
2022-07-07 19:43:06
MySql数据引擎简介与选择方法
2024-01-28 12:04:29
![](https://img.aspxhome.com/file/2023/5/129925_0s.jpg)
JS组件Bootstrap实现图片轮播效果
2024-04-22 13:03:11
![](https://img.aspxhome.com/file/2023/0/135900_0s.gif)
pytorch 查看cuda 版本方式
2022-07-16 23:43:05
如何用python写一个简单的词法分析器
2022-08-02 00:11:11
![](https://img.aspxhome.com/file/2023/1/94121_0s.png)
使用Python中的pytesseract模块实现抓取图片中文字
2021-05-06 18:10:28
![](https://img.aspxhome.com/file/2023/0/125890_0s.png)
Python爬虫网页元素定位术
2023-07-25 16:28:00
![](https://img.aspxhome.com/file/2023/3/76113_0s.webp)
Python基于pyecharts实现关联图绘制
2021-04-08 12:05:45
![](https://img.aspxhome.com/file/2023/7/80397_0s.png)
Python OpenCV招商银行信用卡卡号识别的方法
2022-01-16 06:31:30
![](https://img.aspxhome.com/file/2023/5/83785_0s.jpg)
Windows下ORACLE 10g完全卸载的方法分析
2012-07-11 16:09:26
php解析xml提示Invalid byte 1 of 1-byte UTF-8 sequence错误的处理方法
2023-09-09 18:55:22
Python KMeans聚类问题分析
2023-11-24 14:15:52
![](https://img.aspxhome.com/file/2023/0/124340_0s.jpg)
flask-script模块的具体使用
2022-04-08 10:53:34
一个无组件上传的ASP代码
2007-10-09 19:49:00
详细分析Python垃圾回收机制
2021-04-18 02:43:43
![](https://img.aspxhome.com/file/2023/1/100821_0s.png)
pydantic resolve解决嵌套数据结构生成痛点分析
2022-06-05 02:16:36