问题
I installed openssl-1.0.2 with some logging code that added to original version by ./config shared --prefix=/usr
, make
and make install
commands. After that I installed openvpn according to ./configure OPENSSL_SSL_LIBS="-L/usr/ -lssl" OPENSSL_SSL_CFLAGS="-I/usr/include/" OPENSSL_CRYPTO_LIBS="-L/usr/ -lcrypto" OPENSSL_CRYPTO_CFLAGS="-I/usr/include/"
, make
and make install
.
When I make vpn tunnel, I dont see any logs in log system file. I think openvpn is using another OpenSSL. I dont know how to resolve this problem...
回答1:
Are you sure the libraries get installed to /usr
and not /usr/lib
? Because usually, the prefix is only a prefix, not the whole path. The argument for -L
however is a full path, so try -L/usr/lib
.
If that still doesn't work, try the full path with -l
: -l/usr/lib/libcrypto.<x>
, where <x>
is the shared library extension of your OS, which is .so
for Linux, .dylib
for OS X and .dll
for Windows.
Also, I think people would be grateful if you took a little more time formatting your question.
来源:https://stackoverflow.com/questions/28214304/build-openvpn-with-the-modified-openssl