一 安装gcc
从http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801
下载gcc
使用swinstall安装
二 安装nginx
进入nginx目录
2.1 ./configure --prefix=/home/palog/mwagent/nginx-1.0.4 --without-http_rewrite_module --without-http_gzip_module
重点。。
2.2 make的时候会报错
src/os/unix/ngx_time.c: In function 'ngx_localtime':
src/os/unix/ngx_time.c:59:5: error: implicit declaration of function 'localtime_r' [-Werror=implicit-function-declaration]
src/os/unix/ngx_time.c: In function 'ngx_libc_gmtime':
src/os/unix/ngx_time.c:94:5: error: implicit declaration of function 'gmtime_r' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
这是因为hpunix没有localtime_r和gmtime_r函数,专门用于多线程重入的,所以编辑src/os/unix/ngx_time.c,去掉这些内容
2.3 su - root
make insall
安装成功,需要学习的有swinstall和理解unix api