Compiling NOX, but openssl/md5.h not found


It’s been a long time since my last post here. Well, today I’m gonna post about a common problem normally found when we try to compile NOX (zaku).  So, if ‘openssl/md5.h not found’ message appears, try to modify the file nox/config/ax_ssl.m4. You need to remove and add new commands in it.


 AC_CHECK_LIB(ssl, MD5_Init,
             [SSL_LIBS="-lssl"; AC_SUBST(SSL_LIBS) break],
             [AC_ERROR([openssl/md5.h not found. NOX requires OpenSSL])])


 AC_CHECK_LIB(ssl, MD5_Init,
             [SSL_LIBS="-lssl"; AC_SUBST(SSL_LIBS) break],[
             AC_CHECK_LIB(crypto, MD5_Init,
             [SSL_LIBS="-lssl -lcrypto"; AC_SUBST(SSL_LIBS) break],
             [AC_ERROR([MD5_Init() is not linkable. NOX requires OpenSSL])])])

Thereafter, execute ./ file again. So try to compile normally.

$ ./configure --with-boost-filesystem=boost_filesystem --with-boost-unit-test-framework=mt LDFLAGS='-L/usr/include/openssl -lssl -lcrypto'
$ make

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s