redhat enterprise linux 4as: LAMP, pvpgn, ghost++, allstats

原创 2011年01月25日 14:47:00

[pre-install]

look for old installs
rpm -qa | grep -i apache
rpm -qa | grep -i httpd
rpm -qa | grep -i php
rpm -qa | grep -i mysql
uninstall these packages
rpm -e filename
#note:packages dependances

[install mysql]

my mysql tar: mysql-5.0.27.tar.gz
groupadd mysql
useradd -g mysql -d /usr/local/mysql/data -M mysql
tar zxvf mysql-5.0.27.tar.gz
cd mysql-5.0.27
./configure --prefix=/usr/local/mysql --sysconfdir=/etc/ --localstatedir=/usr/local/mysql/data --enable-assembler --with-mysqld-ldflags=-all-static --with-charset=utf8 --with-extra-charsets=all --with-mysqld-user=mysql
make&&make install
/usr/local/mysql/bin/mysql_install_db 
chown -R mysql:mysql /usr/local/mysql/data
cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql/bin
for file in *; do ln -s /usr/local/mysql/bin/$file /usr/bin/$file; done
mkdir /usr/include/mysql
cp /usr/local/mysql/include/mysql/* /usr/include/mysql/
cp -rf /usr/local/mysql/lib/mysql /usr/lib/
updatedb
ln -s /usr/lib/mysql/libmysqlclient_r* /usr/lib/ #no such files, why? only can copy from other systems
service mysqld start
mysqladmin -u root password "xxx"
mysql -u root -p #enter password
mysql>create database bn;
mysql>create database ghost;
mkdir /var/lib/mysql
ln -s /tmp/mysql.sock /var/lib/mysql/ #for ghost++ use

[install pvpgn]

#install mysql first
my pvpgn package: pvpgn-1.8.5.tar.gz, pvpgn-support-1.2.tar.gz
tar zxvf pvpgn-1.8.5.tar.gz
cd pvpgn-1.8.5/src
./configure --prefix=/usr/local/pvpgn --with-mysql
make&&make install
tar zxvf pvpgn-support-1.2.tar.gz
mv pvpgn-support-1.2/* /usr/local/pvpgn/var/files
rmdir pvpgn-support-1.2
vim /usr/local/pvpgn/etc/bnetd.conf #change storage mode
cp /usr/local/mysql/lib/mysql/libmysqlclient.so.15 /usr/lib/ #for next command
/usr/local/pvpgn/sbin/bnetd #maybe lack libmysqlclient.so.15
netstat -antl |grep 6200 #test

[install Apache]

my apache package: httpd-2.2.3.tar.bz2
tar jxvf httpd-2.2.3.tar.bz2
cd httpd-2.2.3
./configure --prefix=/usr/local/apache --enable-so
make&&make install

[install php5]

my php5 package: php-5.3.5.tar.bz2
tar jxvf php-5.3.5.tar.bz2
cd php-5.3.5
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
make &&make install

[install boost]

my boost package: boost_1_45_0.tar.bz2
tar jxvf boost_1_45_0.tar.bz2
cd boost_1_45_0
./bootstrap.sh --with-libraries=all --prefix=/usr/local/boost --exec-prefix=/usr/local/boost
./bjam
./bjam install

rm -rf /usr/include/boost

cp -rf /usr/local/boost/include/boost /usr/include/
cp /usr/local/boost/lib/* /usr/lib/

[install ghost++]

unzip ghostplusplus_17.1.zip
cd ghost/bncsutil/src/bncsutil/  (may need install libgmp3-dev)
make&&make install
cd ghost/StormLib/stormlib/zlib
make && make install
cd ghost/StormLib/stormlib/bzip2
make && make install
cd ghost/StormLib/stormlib/
make&&make install
cd ghost/ghost
change this in Makefile: 
-DBOOST_FILESYSTEM_VERSION=2
(install mysql_dev for ubuntu: sudo aptitude install libmysql++-dev)
(install mysql_dev for fedora: yum install mysql-devel)
make
mkdir /usr/local/ghost++
cd ..
cp -r maps/ mapcfgs/ replays/ savegames/ /usr/local/ghost++/
cp ghost/ghost++ default.cfg /usr/local/ghost++/
cp gameloaded.txt gameover.txt ipblacklist.txt ip-to-country.csv /usr/local/ghost++/
cp language.cfg mysql_create_tables_v2.sql /usr/local/ghost++/
cd /usr/local/ghost++
mysql -u root -p ghost<mysql_create_tables_v2.sql

edit the default.cfg and copy game.dll  Storm.dll  war3.exe  War3Patch.mpq from warcraft iii

./ghost++

相关文章推荐

获得、编译pvpgn 1.99

由于pvpgn没有发布1.99的编译版本,想尝鲜的朋友们只能自己编译了,下面就跟随我一步一步来编译他吧。 一、准备工作 1、svn http://downloads.sourceforge.n...

在ubuntu 10.10 到 13.04安装极点五笔

在ubuntu 10.10 到 13.04安装极点五笔  1.下载附件文件vissible-ibus.tar.gz  地址:http://pan.baidu.com/s/187XBV ...

RedHat Enterprise AS 4 Update2 X86-64 下 Oracle10.2.0G 安装

一.Oracle环境要求 1. swap分区两个 每个 1024M 2. 根分区至少要15G(不要舍不得空间) 3. 建议安装所有的包(我试过按网上提示的装部分包,没成功过) 4....

安装RedHat Enterprise AS 4

  • 2013年07月31日 08:18
  • 1.24MB
  • 下载

RedHat Enterprise Linux 4新安全机制(SELINUX)

Security Enhanced Linux(以下简称为SELinux)是RedHat Enterprise Linux 4(以下简称为RHEL4)上新的安全机制,在以往的RHEL系统中从未使用,这...

Redhat Enterprise Linux Advanced Server 4上安装MYSQL+APACHE+PHP+ZEND问题

周末在家坐了两天,历尽千辛万苦终于把这些东西配好了,再回首,荆棘密布啊!以下是我的安装笔记, 详细的步骤就不写了,网上到处都是教程,我只把遇到的一些困难及解决办法写出来,加深一些印象, 也让和我遇...

RedHat Enterprise Linux 4(32) matlab(32)的安装与c++混合编程

做图像处理分割,前景检测与背景替换的论文中,网上搜录到一篇BIlayer Segmentation of Liveo Video 论文,检索到加州理工的一个大牛的实现,在这里首先谢谢他的无私贡献,附上...

Linux Redhat AS4安装(企业版)

  • 2011年07月01日 10:16
  • 2.93MB
  • 下载

Red Hat Enterprise Linux 4 AS 下简单svnserve配置及使用 (svn version 1.1.4)

1.假设SVN数据库目录为/home/svn/projects 2.启动svn     svnserve -d --listen-port 9999 -r /home/svn/projec...
  • cywosp
  • cywosp
  • 2012年03月26日 09:15
  • 1195

VNC 服务端的安装、配置和使用(Red Hat Enterprise Linux AS4)

【转自:http://book.51cto.com/art/200804/70724.htm】 VNC概述 VNC(virtual network computing),是...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:redhat enterprise linux 4as: LAMP, pvpgn, ghost++, allstats
举报原因:
原因补充:

(最多只允许输入30个字)