gpt4 book ai didi

mysql - Nagios NDOUtils 安装 - 无法加载 mysql.so 错误

转载 作者:太空宇宙 更新时间:2023-11-04 04:24:36 24 4
gpt4 key购买 nike

嗨,我对 Linux 和 mysql 很陌生...当我为 nagios 安装 ndoutils 时,我必须从 Db 文件夹执行此命令---

./installdb -u root -p root -h localhost -d nagios

执行此命令时出现此错误-

install_driver(mysql) failed: Can't load '/usr/lib/perl5/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.16: cannot open shared object file: No such file or directory at /usr/lib/perl5/DynaLoader.pm line 200. at (eval 7) line 3 Compilation failed in require at (eval 7) line 3. Perhaps a required shared library or dll isn't installed where expected at ./installdb line 41

我应该怎样做才能消除这个错误?帮帮我

最佳答案

看起来您需要为 perl 安装 DRD::mysql。

http://metacpan.org/pod/DBD::mysql

关于mysql - Nagios NDOUtils 安装 - 无法加载 mysql.so 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10222123/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com