尝试bugzilla-4.2.2
在 Ubuntu 上安装12.04
。运行时checksetup.pl
出现以下错误:
YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database
you use):
PostgreSQL: /usr/bin/perl install-module.pl DBD::Pg
MySQL: /usr/bin/perl install-module.pl DBD::mysql
SQLite: /usr/bin/perl install-module.pl DBD::SQLite
Oracle: /usr/bin/perl install-module.pl DBD::Oracle
To attempt an automatic install of every required and optional module
with one command, do:
/usr/bin/perl install-module.pl --all
我已经通过 XAMPP 安装了 MySQL,因此我运行:
/urs/bin/perl install-module.pl DBD::mysql
并出现以下错误:
perl Makefile.PL --testuser=username
Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Failed to determine directory of mysql.h. Use
perl Makefile.PL --cflags=-I<dir>
to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type
perl Makefile.PL --help
Warning: No success on command[/usr/bin/perl Makefile.PL LIB="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib" INSTALLMAN1DIR="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/man/man1" INSTALLMAN3DIR="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/man/man3" INSTALLBIN="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/bin" INSTALLSCRIPT="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/bin" INSTALLDIRS=perl]
CAPTTOFU/DBD-mysql-4.021.tar.gz
/usr/bin/perl Makefile.PL LIB="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib" INSTALLMAN1DIR="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/man/man1" INSTALLMAN3DIR="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/man/man3" INSTALLBIN="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/bin" INSTALLSCRIPT="/opt/lampp/htdocs/bugzilla/4.2.2/bugzilla-4.2.2/lib/bin" INSTALLDIRS=perl -- NOT OK
Skipping test because of notest pragma
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
因此我尝试了checksetup.pl
的建议并运行:
/usr/bin/perl install-module.pl --all
而且它似乎安装得DBD::SQLite
没有任何问题,但我再次看到一个警告,说它由于而跳过了测试notest pragma
。
当我重新运行时,checksetup.pl
它在“未找到”列表中显示 4 个原始 DB 驱动程序中的 3 个:
PostgreSQL: /usr/bin/perl install-module.pl DBD::Pg
MySQL: /usr/bin/perl install-module.pl DBD::mysql
Oracle: /usr/bin/perl install-module.pl DBD::Oracle
因此,运行它--all
似乎已经毫无问题地安装了 SQLite 驱动程序,但出于某种原因,我似乎无法安装 MySQL 驱动程序。我再次需要 MySQL,因为 XAMPP 使用的是 MySQL,而且无论如何我都更喜欢 MySQL。我觉得这与这个notest pragma
错误有关。有什么想法吗?提前谢谢!
答案1
为什么不只是从 PPA 安装 Bugzilla 4并省去很多麻烦?
答案2
我知道这样说可能听起来很愚蠢,但由于我自己也刚刚这样做过,所以值得在这里提一下。
如果你收到错误信息说 make(或者其他显然应该可用的东西)在仓库中不可用,而且你正在全新安装,确保你已经运行sudo apt-get update
。一个小时前我进行了全新安装,当时正在安装 bugzilla,还没有重新启动或运行apt-get update
,当我没有看到 make available.. 时我惊慌失措apt-get update
,然后运行 sudoapt-get install make
并且安装没有问题。
希望这能帮助到那些和我一样心不在焉/健忘的人。