PHP编译:error adding symbols: DSO missing from command line

具体报错如下:

/bin/ld: warning: libssl.so.10, needed by //usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1
/bin/ld: warning: libssl.so.10, needed by //usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1
/bin/ld: warning: libssl.so.10, needed by //usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1
/bin/ld: ext/openssl/.libs/openssl.o: undefined reference to symbol 'SSL_library_init@@libssl.so.10'
//usr/lib64/libssl.so.10: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

经过半天的摸爬滚打,解决办法如下:

1. ./configure --disable-shared --enable-static

2. make&make test

3. make install

 

你可能感兴趣的:(php,错误,linux,php,gcc/gdb编译调试)