Openindiana

From Request Tracker Wiki
Jump to navigation Jump to search

Unofficial Installation Guide

This is an unofficial installation guide. It may be outdated or apply only to very specific configurations and versions. The official and maintained installation steps for RT are in the README and UPGRADING documents included in the official .tar.gz packages.

Tested on oi_151a4 / oi_151a5

# Packages install
pkg install gcc-3 apache-22 mysql-51 mysql-51/library header-math gd gnupg

# Add /usr/mysql/bin to path and source .profile for gnu cc fix
# Enable mysql
svcadm enable mysql
mysql_secure_installation

# symlink gpg
ln -s /usr/bin/gpg2 /usr/bin/gpg

# Remove in /usr/perl5/5.10.0/lib/i86pc-solaris-64int/Config_heavy.pl
cccdlflags='-KPIC'
optimize='-xO3 -xspace -xildoff'

# Configure CPAN and update perl modules
perl -MCPAN -e shell
perl -MCPAN -e 'install CPAN'
perl -MCPAN -e 'install Module::Build'
perl -MCPAN -e 'install Sys::Syslog'

# Get and configure rt
curl -O http://download.bestpractical.com/pub/rt/release/rt.tar.gz
./configure --with-web-user=webservd --with-web-group=webservd

# Fix deps
yes | make fixdeps

## Fixes to make DBD::mysql compile
crle -l /usr/mysql/5.1/lib/mysql -u

# get DBD::mysql from http://search.cpan.org/~capttofu/DBD-mysql-4.021/lib/DBD/mysql.pm
perl Makefile.PL

# edit the Makefile
# remove -lcrun
# remove -xprefetch=auto -xprefetch_level=3 -mt -fns=no -fsimple=1 -xbuiltin=%all -xlibmil -xlibmopt -xnorunpath
# compile

## Apache2 ##
# Load mod_perl
echo "LoadModule perl_module libexec/mod_perl.so" >> /etc/apache2/2.2/conf.d/modules-32.load
# Follow
http://requesttracker.wikia.com/wiki/ManualApacheConfig
# Start
svcadm enable apache22

## oi_151a5 ##
# If upgrading from oi_151a4 to oi_151a5 is making apache crash and cat `svcs -L apache22` reveals:
# "Encode object version 2.23 does not match bootstrap parameter 2.44.."
perl -MCPAN -e 'install Encode'
perl -MCPAN -e 'install Sys::Syslog'
svcadm clear apache22