AIX7.1安装gcc 并编译安装NGINX
程序员文章站
2024-01-30 16:26:34
...
查看本主机是否有已经存在的gcc libgcc如果有 记得卸载掉
-bash-5.0# rpm -qa | grep gcc
libgcc-8.3.0-2.ppc
gcc6-cpp-6.3.0-1.ppc
libgcc6-6.3.0-1.ppc
gcc6-6.3.0-1.ppc
-bash-5.0# yum -y install gcc6-c++.ppc
-bash-5.0# yum -y remove libgcc-8.3.0-2.ppc
-bash-5.0# yum -y remove gcc6-cpp-6.3.0-1.ppc
-bash-5.0# yum -y remove libgcc6-6.3.0-1.ppc
-bash-5.0# yum -y remove libgcc-8.3.0-2.ppc
包文件如下
-bash-5.0# pwd
/gcc.aix
-bash-5.0# ls
gcc-6.3.0-1.aix7.1.ppc.rpm
gcc-cplusplus-6.3.0-1.aix7.1.ppc.rpm
gcc-cpp-6.3.0-1.aix7.1.ppc.rpm
gmp-5.1.3-2.aix6.1.ppc.rpm
libgcc-6.3.0-1.aix7.1.ppc.rpm
libmpc-1.0.3-1.aix6.1.ppc.rpm
libstdcplusplus-6.3.0-1.aix7.1.ppc.rpm
libstdcplusplus-devel-6.3.0-1.aix7.1.ppc.rpm
mpfr-3.1.2-3.aix6.1.ppc.rpm
pcre-devel-8.41-1.aix5.1.ppc.rpm
zlib-devel-1.2.3-3.aix5.1.ppc.rpm
-bash-5.0# rpm -ivh *.rpm --nodeps --force
Preparing... ########################################### [100%]
1:libgcc ########################################### [ 11%]
2:libstdc++ ########################################### [ 22%]
3:gmp ########################################### [ 33%]
4:mpfr ########################################### [ 44%]
5:libmpc ########################################### [ 56%]
6:gcc-cpp ########################################### [ 67%]
7:gcc ########################################### [ 78%]
8:zlib-devel ########################################### [ 89%]
9:pcre-devel ########################################### [100%]
-bash-5.0# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ../gcc-6.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix7.1.0.0
Thread model: aix
gcc version 6.3.0 (GCC)
做软链接
-bash-5.0# cd /bin
-bash-5.0# ln -s gcc cc
编译安装NGINX
-bash-5.0# yum -y install pcre-devel openssl-devel zlib-devel
-bash-5.0# gzip -d nginx-1.14.2.tar.gz
-bash-5.0# tar -xf nginx-1.14.2.tar
-bash-5.0# cd nginx-1.14.2
-bash-5.0# ./configure --prefix=/gc/nginx
checking for OS
+ AIX 1 00CC18D54C00
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 6.3.0 (GCC)
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... not found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
······
Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ using system zlib library
nginx path prefix: "/gc/nginx"
nginx binary file: "/gc/nginx/sbin/nginx"
nginx modules path: "/gc/nginx/modules"
nginx configuration prefix: "/gc/nginx/conf"
nginx configuration file: "/gc/nginx/conf/nginx.conf"
nginx pid file: "/gc/nginx/logs/nginx.pid"
nginx error log file: "/gc/nginx/logs/error.log"
nginx http access log file: "/gc/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
.....
资源包在 https://download.csdn.net/download/weixin_43557605/12598039
上一篇: GitLab从旧服务器迁移到新服务器
下一篇: mysql基本操作记录
推荐阅读
-
AIX7.1安装gcc 并编译安装NGINX
-
CentOS 6.0(X64)下编译安装LNMP平台( Nginx1.0.10 + PHP5.3.8 +_MySQL
-
Ubuntu下编译安装MySQL双实例并配置主从复制
-
编译安装nginx-1.10.1
-
编译安装ruby 和Nginx
-
linux环境下安装nginx步骤(centos平台),并使用Nginx转发
-
centos 7.0最小化安装nginx 源代码编译安装 过程都记录下来了 不能访问 这是什么原因?
-
ubuntu16.04编译安装mysql-boost-5.7.21并编译成php扩展测试与使用
-
nginx从编译安装到配置文件说明中文详细介绍
-
安装淘宝开源web服务器tengine替换nginx并使用proxy_cache做前端