我在一台gentoo机器上安装bugzilla的问题记录,过程实在是太折腾了。 安装方法参考README文件,下面记录的是遇到的问题. bugzilla是perl编写的,所以需要apache + mod_perl mod_perl需要perl,libperl启用ithread

10 ~ # emerge -pv apache perl libperl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] app-admin/apache-tools-2.2.10 [2.2.9] USE="ssl" 4,950 kB
[ebuild   R   ] sys-devel/libperl-5.8.8-r2  USE="berkdb gdbm -debug -ithreads" 0 kB
[ebuild   R   ] dev-lang/perl-5.8.8-r5  USE="berkdb gdbm ithreads -build -debug -doc -perlsuid" 0 kB
[ebuild     U ] www-servers/apache-2.2.10 [2.2.9] USE="ldap ssl threads -debug -doc (-selinux) -sni -static -suexec" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -authn_alias -cern_meta -charset_lite -dumpio -log_forensic -proxy_ftp -substitute -version" APACHE2_MPMS="worker -event -itk -peruser -prefork" 59 kB

Total: 4 packages (2 upgrades, 2 reinstalls), Size of downloads: 5,009 kB

如果没有ithreads,则修改/etc/portage/package.use

dev-lang/perl ithreads
sys-devel/libperl ithreads

然后重新emerge perl

emerge -av perl
emerge -av libperl

在httpd.conf里增加个cgi目录的配置.

        AddHandler cgi-script .cgi
        DirectoryIndex index.cgi
	Options +Indexes +ExecCGI -MultiViews +FollowSymLinks
	AllowOverride Limit
	Order allow,deny
	Allow from all

另外一个要注意的就是,不要把非cgi脚本放入ScriptAlias的目录里 参考: http://www.techlists.org/archives/web/apache-users/2007-04/msg00307.shtml 另外:重新编译perl后,vi似乎出问题了….

emerge -av vim

用gentoo还真折腾啊...