安装一下依赖
yum install openssl-devel openssl
编译安装
make TARGET=linux2628 USE_OPENSSL=1 ADDLIB=-lz
make install PREFIX=/apps/haproxy-1.7.7
查看动态库:
]# ldd haproxy
linux-vdso.so.1 => (0x00007ffdf5b8b000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fdf8634e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fdf8614a000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fdf85edd000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007fdf85af8000)
libz.so.1 => /lib64/libz.so.1 (0x00007fdf858e2000)
libc.so.6 => /lib64/libc.so.6 (0x00007fdf8554d000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fdf8534a000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdf8658b000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fdf85106000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fdf84e1e000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fdf84c1a000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fdf849ee000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fdf847e2000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fdf845df000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fdf843c5000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fdf841a7000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fdf83f88000)