免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6146 | 回复: 13
打印 上一主题 下一主题

[Mail] extmail 错误 (悬赏) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-06 16:28 |只看该作者 |倒序浏览
20可用积分
网址:http://mail.pc345.cn/


报错:
install_driver(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. 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 /var/www/extsuite/extman/libs/Ext/Mgr/MySQL.pm line 45

帮看看啊,都快晕啦~~

先谢谢,各位啦!!

问题解决:

首选为per DBD mysql的问题
unset LANG
perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config '--testuser=root'  '--testpassword=root'
make
make test
make install
这样安装成功
PS:如果你的数据库有密码的话,最好把'--testpassword=密码' 加要 要不make test会出错

装好per DBD mysql后问题还是没有解决

最后liang3391 要求我从新编译一下mysql

我之前的参数是:./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql

后来要求我这个编译:./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql --enable-thread-safe-client --enable-local-infile --with-extra-charset=all --with-low-memory

安装好后,就成功了~~~

谢谢 各位啦~

[ 本帖最后由 17lab 于 2009-1-7 10:22 编辑 ]

最佳答案

查看完整内容

使用extman源码目录下docs目录中的extmail.sql和init.sql建立数据库:# cd /var/www/extsuite/extman/docs# mysql -u root -p GRANT all privileges on extmail.* TO IDENTIFIED BY 'webman';在apache的主配置文件中Extmail的虚拟主机部分,添加如下两行:ScriptAlias /extman/cgi /var/www/extsuite/extman/cgiAlias /extman /var/www/extsuite/extman/html创建其运行时所需的临时目录,并修改其相应的权限:#mkdir -pv /tmp/ ...

论坛徽章:
0
2 [报告]
发表于 2009-01-06 16:28 |只看该作者

这是我以前遇到这种问题处理的方法:供参考

使用extman源码目录下docs目录中的extmail.sql和init.sql建立数据库:

# cd /var/www/extsuite/extman/docs
# mysql -u root -p <extmail.sql
# mysql -u root -p <init.sql

修改cgi目录的属主:
# chown -R postfix.postfix /var/www/extsuite/extman/cgi/

如果extman访问数据库权限不足的话,可采用以下命令将新生成的数据库赋予webman用户具有所有权限:
mysql> GRANT all privileges on extmail.* TO webman@localhost IDENTIFIED BY 'webman';
mysql> GRANT all privileges on extmail.* TO webman@127.0.0.1 IDENTIFIED BY 'webman';

在apache的主配置文件中Extmail的虚拟主机部分,添加如下两行:
ScriptAlias /extman/cgi /var/www/extsuite/extman/cgi
Alias /extman /var/www/extsuite/extman/html

创建其运行时所需的临时目录,并修改其相应的权限:
#mkdir  -pv  /tmp/extman
#chown postfix.postfix  /tmp/extman

论坛徽章:
0
3 [报告]
发表于 2009-01-06 16:34 |只看该作者
你这是mysql部分你没设置好 貌似不能写入mysql数据库。你检查下

论坛徽章:
0
4 [报告]
发表于 2009-01-06 16:41 |只看该作者
[root@mail DBD-mysql-3.0002]# cat /var/www/extsuite/extmail/webmail.cf
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock

[root@mail DBD-mysql-3.0002]# cat /var/www/extsuite/extman/webman.cf
# if mysql, all relate paramters should prefix as SYS_MYSQL
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock

[root@mail DBD-mysql-3.0002]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/mysql/lib/mysql/
/usr/local/BerkeleyDB/lib
/usr/local/ssl/lib
/usr/local/sasl2/lib
/usr/local/sasl2/lib/sasl2
/usr/local/courier-authlib/lib/courier-authlib


[root@mail DBD-mysql-3.0002]# mysql -u extmail -pextmail
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 169
Server version: 5.0.40 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use extmail;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

论坛徽章:
0
5 [报告]
发表于 2009-01-06 16:42 |只看该作者
[root@mail DBD-mysql-3.0002]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.............ok                                                      
t/10dsnlist..........ok                                                      
t/20createdrop.......ok                                                      
t/30insertfetch......ok                                                      
t/35limit............ok                                                      
t/40bindparam........ok                                                      
t/40blobs............ok                                                      
t/40listfields.......ok                                                      
t/40nulls............ok                                                      
t/40numrows..........ok                                                      
t/41blobs_prepare....ok                                                      
t/50chopblanks.......ok                                                      
t/50commit...........ok                                                      
t/60leaks............skipped
        all skipped: $ENV{SLOW_TESTS} is not set or Proc:rocessTable not installed
t/ak-dbd.............ok                                                      
t/akmisc.............ok                                                      
t/dbdadmin...........ok                                                      
t/insertid...........ok                                                      
t/mysql..............ok                                                      
t/mysql2.............ok                                                      
All tests successful, 1 test skipped.
Files=20, Tests=903, 26 wallclock secs ( 0.93 cusr +  3.96 csys =  4.89 CPU)
[root@mail DBD-mysql-3.0002]#

论坛徽章:
0
6 [报告]
发表于 2009-01-06 16:49 |只看该作者
本帖最后由 liang3391 于 2010-04-05 23:23 编辑

楼主搞定没?不行加我

论坛徽章:
0
7 [报告]
发表于 2009-01-06 16:50 |只看该作者
原帖由 liang3391 于 2009-1-6 16:49 发表
楼主搞定没?不行加我QQ:245864009

好的~

论坛徽章:
0
8 [报告]
发表于 2009-01-06 17:24 |只看该作者
貌似已经好了

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
9 [报告]
发表于 2009-01-06 17:50 |只看该作者
perBD::mysql:


看这个模块吧
还有libmysql相关额

论坛徽章:
0
10 [报告]
发表于 2009-01-06 17:52 |只看该作者
perl-DBD-mysql,好像是这个包名,不想麻烦,去CD上找到此RPM安装或许就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP