在centos中搭建bugzilla平台各种错
来源:互联网 发布:算法设计的基本要素 编辑:程序博客网 时间:2024/04/28 23:32
1:
[root@zhm bugzilla]# perl -MCPAN -e shellCan't locate CPAN.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .).Check whether you have 'perl-CPAN‘ package installed in your system.
>>>>
CPAN是Comprehensive Perl Archive Network的缩写.。它是一个巨大的Perl软件收藏库,收集了大量有用的Perl模块(modules)及其相关的文件。如果返回上述信息说明系统没有安装CPAN模块。
查询是否安装CPAN模块可以用:[root@zhm bugzilla]# rpm -q perl-CPAN
安装CPAN命令:[root@zhm bugzilla]#yum -y install perl-CPAN
2:
[root@zhm conf]# service httpd restart停止 httpd: [确定]正在启动 httpd:httpd: apr_sockaddr_info_get() failed for zhmhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName>>>>
主要是ServerName没有与localhost(即本地127.0.0.1)绑定,解决方法如下:
[root@zhm conf]#vim /etc/httpd/conf/httpd.conf
加入一句 ServerName localhost:80
3:
[root@zhm conf]#/usr/bin/perl install-module.pl XML::Twig
>>>>
一切显示ok,但是checksetup.pl 查询时却显示未安装,可进行如下安装:
/usr/bin/perl -MCPAN -e 'install XML::Twig'
或
perl -MCPAN -e shell
install XML::Twig
或强制安装
perl -MCPAN -e shell
force install XML::Twig
4:
/bin/sh: line 1: gcc: command not foundmake: *** [GD.o] Error 127/usr/bin/make -- NOT OKRunning make testCan't test without successful makeRunning make installmake had returned bad status, install seems impossible
>>>>
说明没有安装gcc工具
其实判断是否安装gcc,最简单方法是输入gcc,未安装的话会显示命令没找到,如果安装了,一般显示“gcc: 没有输入文件”
如果安装来gcc则:export CC=gcc
------
安装gcc:
yum -y install gcc
yum -y install gcc-c++
yum install make
--或者
yum groupinstall "Development Tools"
--或者
yum install gcc gcc-c++ kernel-devel
------
5:
Can't locate ExtUtils/Embed.pm in @INC (@INC contains: lib Apache-Test/lib /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at lib/Apache2/Build.pm line 27.BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 27.Compilation failed in require at Makefile.PL line 37.BEGIN failed--compilation aborted at Makefile.PL line 37.Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] PHRED/mod_perl-2.0.7.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OKRunning make test Make had some problems, won't testRunning make install Make had some problems, won't installFailed during this command: PHRED/mod_perl-2.0.7.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 51>>>>
缺少必须的perl-ExtUtils-Embed模块,安装即可。
yum -y install perl-devel perl-ExtUtils-Embed
6:
Please provide a full path to 'apxs' executable(press Enter if you don't have it installed):/etc/apache2/>>如果路径错误,则报Please provide the location of the Apache directory: /etc/apache2/[ error] Unable to open /etc/apache2//ap_release.h: No such file or directory[ error] Unable to determine server version, aborting.[ error] Please specify MP_APXS or MP_AP_PREFIX.
>>>>
一般这个错说明apxs没有安装。apxs是apache的一个辅助工具软件,它通常用来为apache安装扩展模块,甚至可以直接将.c的源程序自动编译成.so程序,并能自动配置httpd.conf文件,将新安装的扩展添加到配置文件中启用。CentOS下安装httpd的时候,默认是没有这个工具的。要安装apxs其实也简单,只需要安装httpd-devel就可以了:
yum install httpd-devel
httpd-devel安装完成之后,apxs工具默认会安装在目录:/usr/sbin/ 里面。
查看httpd-devel安装的软件相关路径:rpm -ql httpd-devel
7:安装XML::Twig时:
t/zz_dump_config.t .................. ok Test Summary Report.......t/xmlxpath_xpath_cond.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP outputFiles=101, Tests=72, 4 wallclock secs ( 0.29 usr 0.20 sys + 2.94 cusr 0.82 csys = 4.25 CPU)Result: FAILFailed 96/101 test programs. 32/72 subtests failed.make: *** [test_dynamic] 错误 255 MIROD/XML-Twig-3.42.tar.gz /usr/bin/make test -- NOT OK//hint// to see the cpan-testers results for installing this module, try: reports MIROD/XML-Twig-3.42.tar.gzRunning make install make test had returned bad status, won't install without forceFailed during this command: MIROD/XML-Twig-3.42.tar.gz : make_test NO>>>>
需要先安装了mod_perl2,再安装XML::Twig就不会报错了。
8:
Can't find mod_perl installedThe error was: Can't locate mod_perl2.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 149.Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]Warning (usually harmless): 'YAML' not installed, will not store persistent state PHRED/Apache-SizeLimit-0.96.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OKRunning make test Make had some problems, won't testRunning make install Make had some problems, won't installCould not read '/root/.cpan/build/Apache-SizeLimit-0.96-UHFg3X/META.yml'. Falling back to other methods to determine prerequisitesFailed during this command: PHRED/Apache-SizeLimit-0.96.tar.gz
>>>>
Apache2::SizeLimit无法安装时,先装mod_perl2就可以通过了。
9:
url访问: http://localhost报500到错
>>>>
[root@zhm conf]#vim /etc/httpd/conf/httpd.conf
将AllowOverride Limit 改成 AllowOverride ALL
10:
url访问: http://localhost
Can't locate Moose.pm in @INC (@INC contains: ./Uniscan /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at Uniscan/Crawler.pm line 3.BEGIN failed--compilation aborted at Uniscan/Crawler.pm line 3.Compilation failed in require at ./uniscan.pl line 4.BEGIN failed--compilation aborted at ./uniscan.pl line 4.
或终端 ./checksetup.pl
Attempt to reload Math/Random/Secure.pm aborted.Compilation failed in require at Bugzilla/Util.pm line 58.BEGIN failed--compilation aborted at Bugzilla/Util.pm line 58.Compilation failed in require at Bugzilla/Error.pm line 33.BEGIN failed--compilation aborted at Bugzilla/Error.pm line 33.Compilation failed in require at Bugzilla/Install/Filesystem.pm line 31.BEGIN failed--compilation aborted at Bugzilla/Install/Filesystem.pm line 31.Compilation failed in require at Bugzilla/Config.pm line 38.BEGIN failed--compilation aborted at Bugzilla/Config.pm line 38.Compilation failed in require at Bugzilla.pm line 38.BEGIN failed--compilation aborted at Bugzilla.pm line 38.Compilation failed in require at ./checksetup.pl line 102.
>>>>
说明缺少必须到Moose模块,安装即可:
# cpan -i Moose
11:
url访问 : http://localhost 报
Access denied for user ''@'localhost'
>>>>
说明user没有访问数据库到权限,要么设置user到权限,要没改配置,用root用户。
12:
url访问 : http://localhost 报
Can't connect to the database.Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Is your database installed and up and running? Do you have the correct username and password selected in localconfig?
>>>>
可能是MYSQL服务没有启动,(初始配置到时候更大可能是用户名密码错误)。
13:
url访问 : http://localhost 报"无法连接"时,一般是apache没有启动或者apache没有装好。
14:
Checking for GD (v1.20) not found Checking for Chart (v2.1) not found Checking for Template-GD (any) not found Checking for GDTextUtil (any) not found Checking for GDGraph (any) not found
>>
yum -y install gd-devel
yum -y install gd
- 在centos中搭建bugzilla平台各种错
- centos中搭建bugzilla过程
- 在centos 7中搭建lamp平台
- Bugzilla在centos上的安装操作
- 如何在Ubuntu/CentOS上装Bugzilla 4.4
- 在Ubuntu14.04上搭建Bugzilla
- ubuntu 系统中搭建bugzilla系统
- Win7系统搭建4.4.6—Bugzilla平台
- win7 64位系统bugzilla故障管理平台搭建过程
- 【Linux】在Linux中安装bugzilla
- 在Centos系统中搭建Hadoop集群
- 在CentOS中搭建Gogs服务器
- mongodb集群在Centos中搭建
- 在CentOS 7中搭建Git服务器
- 如何在Ubuntu / CentOS 6.x上安装Bugzilla
- 在eclipse中搭建android开发平台
- 在Centos中搭建Java环境并搭建tomcat
- Windows平台安装Bugzilla
- Solaris 10中的root禁用问题
- 【技术类】Esri大规模影像管理与共享解决方案
- 【应用类】【数据下载】“ZY1-02C、ZY3卫星数据服务系统”抢先看!
- Java中的"感知哈希算法"——找出相似的图片
- android项目编译过程---详细分析与实例
- 在centos中搭建bugzilla平台各种错
- 编译只包含h264 decoder的ffmpeg
- Mysql Master/Slave环境搭建
- 《编写高质量代码——web前端开发修炼之道》读书笔记(2)
- 编译LFS---个人心得教程
- 我的第一个minigui程序
- 使用oprofile查找性能瓶颈--错误及解决
- 中国前十月进口大米6088万吨
- 【技术类】通过栅格类型扩展使ArcGIS 支持更多传感器类型