nginx编译安装

centos7 

nginx-1.13.7

yum install gcc gcc-c++ automake pcre pcre-devel zlip zlib-devel openssl openssl-devel 

./configure

make

make install

 

configure 时:

报错 PCRE library

yum -y install openssl openssl-devel

 

make时:

objs/src/os/unix/ngx_user.o: In function `ngx_libc_crypt':
/usr/local/nginx-1.13.7/src/os/unix/ngx_user.c:57: undefined reference to `crypt'

 

解决:

# locate -b libcrypt.so
/etc/KsyunAgent/install_files/dependpkg/lib/libagent/libcrypt.so.1
/etc/KsyunAgent/update/KsyunAgent_linux64_V1.0.21052/install_files/dependpkg/lib/libagent/libcrypt.so.1
/usr/lib/CloudAgent/libcrypt.so.1
/usr/lib64/libcrypt.so
/usr/lib64/libcrypt.so.1

 

# ll /usr/lib64/libcrypt.so
lrwxrwxrwx 1 root root 25 Dec 3 04:14 /usr/lib64/libcrypt.so -> ../../lib64/libcrypt.so.1

发现link不正常

rm -rf /usr/lib64/libcrypt.so

ln -s /lib64/libcrypt.so.1 /usr/lib64/libcrypt.so

重新link一下就没问题了- -

转载于:https://www.cnblogs.com/mhc-fly/p/10062957.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值