Warning: Illegal string offset 'parentstr' in /home/wwwroot/chichuang/ku3.com.cn/include/func.class.php on line 246
Notice: Uninitialized string offset: 0 in /home/wwwroot/chichuang/ku3.com.cn/include/func.class.php on line 246
Solaris 9.0下安装配置Apache-2.0.45+php-4.3.1+mysql-4.1.0
Warning: Illegal string offset 'id' in /home/wwwroot/chichuang/ku3.com.cn/show.php on line 80
Notice: Uninitialized string offset: 0 in /home/wwwroot/chichuang/ku3.com.cn/show.php on line 80
Warning: Illegal string offset 'classname' in /home/wwwroot/chichuang/ku3.com.cn/show.php on line 81
Notice: Uninitialized string offset: 0 in /home/wwwroot/chichuang/ku3.com.cn/show.php on line 81
2106
由于本人将所有软件的源代码放置在目录 /bak 下 ,安装目录为 /usr/local ,下载后的源代码包在/bak目录下,故执行以下操作:
注:1。用记事本打开本文档时,最好取消‘自动换行',以便看清楚每一条命令。
2。本文也是在参看软件文档、论坛网友的帮助下实现的。
环境
--------------
hardware: C900+128MB+nVida16MB+Mator30GB+40xCDROM+rtl8139netcard+1.44MBfloppy
software: Solaris 9 for x86 (Plus OEM 2077MB)
准备工作
---------------
ftp://ftp.sjtu.edu.cn/public/Solaris/sunfreeware/sparc/
首先要安装solaris 9的编译环境,去http://www.sunfreeware.com/下载一下软件:
1.autoconf-2.13-sol9-intel-local.gz
2.automake-1.4-sol9-intel-local.gz
3.bison-1.28-sol9-intel-local.gz
4.gcc-3.2.2-sol9-intel-local.gz
5.gzip-1.3-sol9-intel-local
6.make-3.79.1-sol9-intel-local.gz
7.tar-1.13-sol9-intel-local.gz
8.libgcc-3.2.2-sol9-intel-local.gz
9.ncurse
10.flex-2.5.4-sol9-intel-local.gz
11.sed-4.0-sol9-intel-local.gz
设置环境变量:
vi /etc/profile
PATH=/usr/local/sbin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/sbin:/bin:/usr/local/mysql/bin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb
1.pkgadd -d gzip-1.3-sol9-intel-local
2.gunzip autoconf-2.13-sol9-intel-local.gz
3.gunzip automake-1.4-sol9-intel-local.gz
4.gunzip gcc-3.2.2-sol9-intel-local.gz
5 gunzip bison-1.28-sol9-intel-local.gz
6.pkgadd -d autoconf-2.13-sol9-intel-local
7.pkgadd -d automake-1.4-sol9-intel-local
8.pkgadd -d gcc-3.2.2-sol9-intel-local
9.pkgadd -d make-3.79.1-sol9-intel-local
10.pkgadd -d tar-1.13-sol8-local
pkgadd -d nucrse
pkgadd -d flex
10.gunzip tar-1.13.tar.gz
11.tar xvf tar-1.13.tar
12.cd tar-1.13
13../configure --prefix=/usr/local/gnutar
14. make
15. make install
16. cp /usr/local/gnutar/bin/tar /usr/local/bin/gtar
把libgcc包中所有的文件从/usr/local/lib拷贝到/usr/lib中,可以解决这个问题,其中包含
libgcc_s.so
libstdc++.la
libstdc++.so.5.0.0
libgcc_s.so.1
libstdc++.so
libstdc++.so.5.0.1
libstdc++.a
libstdc++.so.5
libstdc++.so.5.0.2
1、安装
-----------------------------
### 软件下载
分别下载以下软件(均为源代码):
Apache-2.0.45 (www.apache.org)
php-4.3.1 (www.php.net)
mysql-4.1.0 (www.mysql.com)
*************以下内容可编入setup.sh脚本文件中再运行它**************
#### 准备安装 ####
mkdir /bak
mkdir /usr/local/mysql
mkdir /usr/local/apache
# 建立mysql组及用户
groupadd -g 201 mysql
useradd -u 1001 -g mysql -d /export/home/mysql -m -s /bin/tcsh -c "MySQL Administrator" mysql
passwd mysql //设置用户口令
# 复制文件
cp mysql*.gz /bak/
cp httpd*.gz /bak/
cp php*.gz /bak
# 解压缩文件
cd /bak
/usr/local/gnutar/bin/tar -zxvf /bak/mysql-4.1.0.tar.gz
/usr/local/gnutar/bin/tar -zxvf /bak/httpd-2.0.45.tar.gz
/usr/local/gnutar/bin/tar -zxvf /bak/php-4.3.1.tar.gz
#### 安装配置过程 ####