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一下就没问题了- -