Try removing the --openssldir=/usr/local/ssl flag. I think it is not needed. sudo ./config --prefix=/usr/local/ssl shared zlib -Tom From: openssl-users <openssl-users-bounces@xxxxxxxxxxx> On Behalf Of Aneeq Abid Sent: Monday, October 5, 2020 4:07 AM To: openssl-users@xxxxxxxxxxx Subject: OpenSSL Config Error Hi, I have no familiarization with OpenSSL. I am installing it as a dependency for installing Erlang. I am using this guide: https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/ Version installing is openssl-1.0.2l I am facing the following error on make [3] while configuring OpenSSL. Can someone please guide me through it: make[3]: Entering directory '/media/erlang/openssl-1.0.2l' make[4]: Entering directory '/media/erlang/openssl-1.0.2l' /usr/bin/ld: libcrypto.a(gost_eng.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status Makefile.shared:169: recipe for target 'link_a.gnu' failed make[4]: *** [link_a.gnu] Error 1 make[4]: Leaving directory '/media/erlang/openssl-1.0.2l' Makefile:357: recipe for target 'do_linux-shared' failed make[3]: *** [do_linux-shared] Error 2 make[3]: Leaving directory '/media/erlang/openssl-1.0.2l' Makefile:310: recipe for target 'libcrypto.so.1.0.0' failed make[2]: *** [libcrypto.so.1.0.0] Error 2 make[2]: Leaving directory '/media/erlang/openssl-1.0.2l' Makefile:109: recipe for target 'shared' failed make[1]: *** [shared] Error 2 make[1]: Leaving directory '/media/erlang/openssl-1.0.2l/crypto' Makefile:287: recipe for target 'build_crypto' failed make: *** [build_crypto] Error 1 I used the following command to configure: sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib