- 论坛徽章:
- 0
|
Solaris10 for x86 上Apache http 2.0.55安装指南
注意solaris10 for x86上实际上已经包含apache了,我只是在安装中发现需要注意的问题,比如gcc的编译包等,如果在一台机器上安装多个apache是可以参照此方法的。
安装要求:
1、 gcc编译环境;
需要安装gcc3.4.3和libgcc3.3或以上
确认gcc包的安装:
bash-3.00# pkginfo |grep gcc
bash-3.00#
安装gcc环境包:
安装libgcc:
bash-3.00# cd libgcc-3.3-sol10-intel-local
bash: cd: libgcc-3.3-sol10-intel-local: 不是一个目录
bash-3.00# pkgadd -d ./libgcc-3.3-sol10-intel-local
The following packages are available:
1 SMClibgcc libgcc
(intel) 3.3
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all
……
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。
安装libgcc成为
##正在安装1部分- 1.
[ 确认类别 ]
安装成功
bash-3.00#
安装gcc:
bash-3.00# cd /cdrom/cdrom0/Solaris_10/Product
bash-3.00# pkgadd -d . SUNWgccruntime
处理软件包范例来自
GCC Runtime libraries(i386) 11.10.0,REV=2005.01.08.01.09
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
…………
Public License instead of this License.
使用作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
4软件包路径名已经正确地安装
## 检查软件包的从属性
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。
在这个软件包中包含了正文程序,只有具有超级-用户的权限才能在这个软件包
的安装过程中执行它们.
要继续安装 [y,n,?] y
安装GCC Runtime libraries成为
##正在安装1部分- 1.
48369 块
安装成功
bash-3.00#
bash-3.00# pkgadd -d . SUNWgcc
……
使用作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
328软件包路径名已经正确地安装
## 检查软件包的从属性
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。
在这个软件包中包含了正文程序,只有具有超级-用户的权限才能在这个软件包
的安装过程中执行它们.
要继续安装 [y,n,?] y
安装gcc - The GNU C compiler成为
##正在安装1部分- 1.
## 执行预安装正文
安装成功
bash-3.00#
确认是否已经安装:
-bash-3.00# pkginfo |grep gcc
application SMClibgcc libgcc
system SUNWgcc gcc - The GNU C compiler
bash-3.00#
bash-3.00# gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
bash-3.00#
安装apach步骤:
1、 从Apache官方网站下载http 2.0.55源代码;
2、 上传到服务器;
3、解压
#gzip –d http-2.0.55.tar.gz
3、 展开到当前目录下
#tar xvf http-2.0.55.tar
[注意此要求非官方要求,仅安装公司版本http(不是官方源包)下必须要到/home/oracle下安装]
4、 配置编译选项
#cd /home/oracle/http-2.0.55
#./configure --prefix=安装目录(缺省为/usr/local/apache2) --enable-so --enable-rewrite --enable-ssl
example:
--prefix=/home/apache2 --enable-so --enable-rewrite --enable-ssl=static --with-ssl=/usr/local/ssl --enable-mods-shared=all
#make
#make install
注意:重新编译前,应执行make clean!!!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15240/showart_83567.html |
|