第一步:安装/卸载 GCC
Solaris上安装软件有两种方式:
1.源码安装,用c编译器编译,安装;
2.将编译好的安装包解压缩。
由于Solaris系统安装后并没有安装c编译器。所以必须安装已经编译好的gcc安装包。
从http://www.sunfreeware.com下载gcc的安装包(gcc-3.3.2-sol9-intel-local.gz 注意3.4版有bug)。
#gunzip gcc-3.3.2-sol9-intel-local.gz 生成gcc-3.3.2-sol9-intel-local包
#pkgadd -d gcc-3.3.2-sol9-intel-local
将gcc路径加入PATH中,将make路径加入PATH中,Solaris上设置PATH方法为:
#PATH=$PATH:/usr/ccs/bin:……(: 为分隔符)
#export PATH
可以用
#which gcc 检查是否建好PATH路径。
第二步,安装Apache2.0.48 (50装不上)
1.下载Apache2.0.48 for ix86 solaris版 *.tar.gz文件
2.#gunzip *.tar.gz 生成*.tar
3.#tar –xvf *.tar
4.到解开的目录,执行
#./configure –prefix=/usr/apache
# make
# make install
5. 配置apache。
(安装gcc-3.4.0版本,执行./configure –prefix=/usr/apache时报错,重装gcc-3.3.2就没问题了。
错误为:
Checking for gcc ……gcc
Checking for C compiler default output file name ……configure
Error::C compiler cannot create executable
See ‘config.log’ for more details
Configure failed for srclib/apr
)




