Chinaunix首页 | 论坛 | 博客
  • 博客访问: 229297
  • 博文数量: 57
  • 博客积分: 2135
  • 博客等级: 大尉
  • 技术积分: 570
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-10 13:55
文章分类

全部博文(57)

文章存档

2017年(1)

2011年(4)

2010年(4)

2009年(8)

2008年(3)

2007年(37)

我的朋友

分类: BSD

2007-05-17 17:15:03

在FreeBSD上安装Request Tracker


准备工作:
1 - 安装FreeBSD。
我用FreeBSD-6.1-Release + MySQL
2 - 下载软件包:
Request Tracker. 官方网站:
我用的是Request Tracker 3.6.3

开始安装:
1 - Tar --vzxv rt.tar.gz
2 - cd rt-3.6.3
    ./configure
3 - make testdeps
BSD1# make testdeps
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --with-mysql
perl:
        >=5.8.3(5.008008)...found
users:
        rt group (www)...found
        bin owner (root)...found
        libs owner (root)...found
        libs group (bin)...found
        web owner (www)...found
        web group (www)...found
CLI dependencies:
        Getopt::Long >=2.24...found
CORE dependencies:
        Digest::base...found
        Digest::MD5 >=2.27...found
        DBI >=1.37...found
        Test::Inline...found
        Class::ReturnValue >=0.40...found
        Date::Format...found
        DBIx::SearchBuilder >=1.40...found
        Text::Template...found
        File::Spec >=0.8...found
        HTML::Entities...found
        HTML::Scrubber >=0.08...found
        Net::Domain...found
        Log::Dispatch >=2.0...found
        Locale::Maketext >=1.06...found
        Locale::Maketext::Lexicon >=0.32...found
        Locale::Maketext::Fuzzy...found
        MIME::Entity >=5.108...found
        Mail::Mailer >=1.57...found
        Net::SMTP...found
        Text::Wrapper...found
        Time::ParseDate...found
        Time::HiRes...found
        File::Temp...found
        Term::ReadKey...found
        Text::Autoformat...found
        Text::Quoted >=1.3...found
        Tree::Simple >=1.04...found
        Scalar::Util...found
        Module::Versions::Report...found
        Cache::Simple::TimedExpiry...found
        UNIVERSAL::require...found
        Calendar::Simple...found
DEV dependencies:
        Regexp::Common...found
        Test::Inline...found
        Apache::Test...found
        HTML::Form...found
        HTML::TokeParser...found
        WWW::Mechanize...found
        Test::WWW::Mechanize 1.04...MISSING
        Module::Refresh 0.03...MISSING
        Test::Expect 0.30...MISSING
        XML::Simple ...MISSING
        File::Find...found
MAILGATE dependencies:
        HTML::TreeBuilder ...MISSING
        HTML::FormatText ...MISSING
        Getopt::Long...found
        LWP::UserAgent...found
MASON dependencies:
        Params::Validate >=0.02...found
        Cache::Cache ...MISSING
        Exception::Class 1.14...MISSING
        HTML::Mason 1.23...MISSING
        MLDBM ...MISSING
        Errno...found
        FreezeThaw...found
        Digest::MD5 >=2.27...found
        CGI::Cookie >=1.20...found
        Storable >=2.08...found
        Apache::Session 1.53...MISSING
        XML::RSS 1.05...MISSING
        HTTP::Server::Simple 0.07...MISSING
        HTTP::Server::Simple::Mason 0.09...MISSING
        GD ...MISSING
        GD::Graph ...MISSING
        GD::Text ...MISSING
        Text::WikiFormat 0.76...MISSING
MYSQL dependencies:
        DBD::mysql 2.1018...MISSING
 
SOMETHING WAS MISSING!
上面列出了缺少的dependencies.
4 - make fixdeps
按官方的安装说明文档运行make fixdeps,不能安装上面列出的dependencies.只能手动安装那些包。
5 - perl -MCPAN -e shell
    cpan>install [dependencies]
    花了我好多时间。
    其中安装Apache::Test时出错,好像是不能在root下允许检测,我选择skip后可以安装。
6 - make install
    在允许make install前再次运行make testdeps,出现Everything  was found后才运行
    make install
7 - 接着初始化数据库:make initialize-database. 我用MySQL。 运行
    make initialize-database后会创建数据库rt3,表有如下:
+-------------------------+
| Tables_in_rt3           |
+-------------------------+
| ACL                     |
| Attachments             |
| Attributes              |
| CachedGroupMembers      |
| CustomFieldValues       |
| CustomFields            |
| GroupMembers            |
| Groups                  |
| Links                   |
| ObjectCustomFieldValues |
| ObjectCustomFields      |
| Principals              |
| Queues                  |
| ScripActions            |
| ScripConditions         |
| Scrips                  |
| Templates               |
| Tickets                 |
| Transactions            |
| Users                   |
| sessions                |
+-------------------------+

8 - Web Interface
    按说明文档把下面的配置粘到http.conf中
   
    ServerName your.rt.server.hostname
    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8
 
    PerlModule Apache::DBI
    PerlRequire /opt/rt3/bin/webmux.pl
 
   
     SetHandler perl-script
     PerlHandler RT::Mason
   

   

    我修改了一些,如下:
   
        ServerName 192.168.0.21
        DocumentRoot /opt/rt3/share/html
        AddDefaultCharset UTF-8
 
        PerlModule Apache::DBI
        PerlRequire /opt/rt3/bin/webmux.pl
 
       
             SetHandler perl-script
             PerlHandler RT::Mason
       

   

    然后打开IE输入:就可以看到登陆界面了。
    默认用户:root 密码:password << 请马上改,安全问题 >>

    安装出错时,注意看出错信息,然后google,应该可以解决。 ^_^

阅读(1735) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~