Difference between revisions of "Openindiana"

From Request Tracker Wiki
Jump to navigation Jump to search
(Adding categories)
 
m (6 revisions imported)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
## Tested on oi_151a4 ##
{{UnofficialInstallGuide}}Tested on oi_151a4 / oi_151a5
  # Packages install
  # Packages install
  pkg install gcc-3 apache-22 mysql-51 mysql-51/library header-math gd gnupg
  pkg install gcc-3 apache-22 mysql-51 mysql-51/library header-math gd gnupg
Line 23: Line 23:
  # Get and configure rt
  # Get and configure rt
  curl -O http://download.bestpractical.com/pub/rt/release/rt.tar.gz
  curl -O http://download.bestpractical.com/pub/rt/release/rt.tar.gz
  ./configure --with-web-user=webservd --with-web-group=webservd --with-db-database=rtdb
  ./configure --with-web-user=webservd --with-web-group=webservd
   
   
  # Fix deps
  # Fix deps
Line 33: Line 33:
  # get DBD::mysql from http://search.cpan.org/~capttofu/DBD-mysql-4.021/lib/DBD/mysql.pm
  # get DBD::mysql from http://search.cpan.org/~capttofu/DBD-mysql-4.021/lib/DBD/mysql.pm
  perl Makefile.PL
  perl Makefile.PL
  # edit Makefile
  # edit the Makefile
  # remove -lcrun
  # remove -lcrun
  # remove -xprefetch=auto -xprefetch_level=3 -mt -fns=no -fsimple=1 -xbuiltin=%all -xlibmil -xlibmopt -xnorunpath
  # remove -xprefetch=auto -xprefetch_level=3 -mt -fns=no -fsimple=1 -xbuiltin=%all -xlibmil -xlibmopt -xnorunpath
  # compile
  # compile
   
   
  ## Apache2
  ## Apache2 ##
  # Load mod_perl
  # Load mod_perl
  echo "LoadModule perl_module libexec/mod_perl.so" >> /etc/apache22/2.2/conf.d/modules-32.load
  echo "LoadModule perl_module libexec/mod_perl.so" >> /etc/apache2/2.2/conf.d/modules-32.load
  # Follow
  # Follow
  http://requesttracker.wikia.com/wiki/ManualApacheConfig
  http://requesttracker.wikia.com/wiki/ManualApacheConfig
  # Start
  # Start
  svcadm enable apache22
  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
[[Category:Installation]]
[[Category:Installation]]

Latest revision as of 16:15, 6 April 2016

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