日期:2014-05-16  浏览次数:20753 次

linux安装mantis详细步骤
所需软件1.1 MySQL
MySQL-server-4.1.10-0.i386.rpm
MySQL-client-4.1.10-0.i386.rpm
MySQL-devel-4.1.10-0.i386.rpm
MySQL-shared-4.1.10-0.i386.rpm
MySQL-shared-compat-4.1.10-0.i386.rpm
1.2 Apache
httpd-2.0.54.tar.gz
1.3 PHP
php-5.0.4.tar.gz
1.4 mantis
mantis-1.1.1-bin
1.5 Jpgraph
jpgraph-1.19.tar.gz
jpegsrc.v6b.tar.gz
zlib-1.1.3.tar.gzlibpng-1.2.8.tar.gz
freetype-2.1.10.tar.gz
t1lib-5.1.0.tar.gz
1.6 Graphviz
graphviz-2.4-1.rh73.i386.rpm
graphviz-devel-2.4-1.rh73.i386.rpm
graphviz-doc-2.4-1.rh73.i386.rpm
graphviz-graphs-2.4-1.rh73.i386.rpm
graphviz-tcl-2.4-1.rh73.i386.rpm
1.7 浏览支持
ZendOptimizer-linuxi386.tar.gz
1.8 CVSusr/local
CVSusr/local3.0.0.tar.gz
2 安装步骤2.1 
安装Mysql
安装mysql server# rpm -ivh MySQL-server-4.0.20-0.i386.rpm
安装mysql# rpm -ivh MySQL-client-4.0.20-0.i386.rpm
安装mysql其他包# rpm ?ivh MySQL-devel-4.1.10-0.i386.rpm
# rpm ?ivh MySQL-shared-4.1.10-0.i386.rpm
# rpm ?ivh MySQL-shared-compat-4.1.10-0.i386.rpm
运行mysql 客户端,并开放root用户的远程访问权限。以便调试
# mysql
> use mysql
> update user set host = `%` where user = `root` and host  `localhost`;
> exit
Mysql安装完毕。
2.2 安装apache
# tar -zxvf httpd-2.0.54.tar.gz# cd httpd-2.0.54
# ./configure --prefix=/usr/local/apache --enable-module=so
# make# make install
Apache安装完毕。说明:apache在linux下的默认最大进程数为256,无论怎么修改httpd.conf都不能超过这个限制。
如果想加大这个限制,在编译apache前编辑/home/tmp/apache/src/include/httpd.h,将其中#define HARD_SERVER_LIMIT 256 一行改为#define HARD_SERVER_LIMIT 2048后再编译apache。
2.3 安装GD库2.3.1 jpeg-6b 的安装
# tar -xf jpegsrc.v6b.tar# cd jpeg-6b
# ./configure# make# make install
2.3.2 zlib 的安装
# tar ?zxvf zlib-1.1.3.tar.gz# cd zlib-1.1.3
# ./configure# make# make install
2.3.3 libpng 的安装
# tar ?zxvf libpng-1.2.8.tar.gz# cd libpng-1.2.8
# ./configure# make# make install
2.3.4 freetype 的安装
# tar ?zxvf freetype-2.1.10.tar.gz# cd freetype-2.1.10
# ./configure# make# make install
2.3.5 T1lib 的安装
# tar ?zxvf t1lib-5.1.0.tar.gz# cd t1lib-5.1.0
# ./configure# make# make install
2.3.6 gd 的安装
# tar ?zxvf gd-2.0.33.tar.gz
# cd gd-2.0.33# ./configure
# vi Makefile(编辑 Makefile文件改 CFLAGS=-O 为 CFLAGS=-O -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF改 LIBS=-lm -lgd -lpng -lz 为 LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11改 INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11为 INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include/freetype)# make# make install
2.4 安装php
# tar zxvf php-5.0.4.tar.gz
# cd php-5.0.4
#./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/lib \
--enable-track-vars \
--with-xml \
--with-mysql \
--with-libxml-dir=/usr/local/lib \
--with-gd=/usr/local \
--with-t1lib=/usr/local \
--with-tiff-dir=/usr/local \
--with-jpeg-dir=/usr/include \
--with-ttf=/usr/include/freetype \
--with-zlib-dir=/usr/include \
--with-png-dir=/usr/include \
--with-mbstring --enable-mbstring=all
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini
修改php.ini中的下列行extension_dir = "./"为extension_dir = "/usr/local/php/include/php/ext"
2.5 GD库的安装检查
安装完毕后用查看结果如下:
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
T1Lib Support enabled
GIF Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
2.6 安装Mantis
# mv mantis-1.1.1 /usr/local/apache2/htdocs/mantis
2.7 建立数据库bugtracker及用户mantis
$mysqladmin -u root -p create bugtracker//输入MySQL的root密码即可完成创建数据库bugtracker的操作
$mysql -u root