Jump to content
Sign in to follow this  
Carsen

How to compile Denarius on Ubuntu 18.04/BigNum Error/OpenSSL Version Swap

Recommended Posts

Run the following commands to compile Denarius properly without errors on Ubuntu 18.04+ (Ubuntu changed their sources list for the dep "libssl-dev", you will need to install an older version of OpenSSL to be able to compile Denarius)
 

Make sure to remove the current libssl-dev:

sudo apt-get remove libssl-dev 

Install an older version of OpenSSL, for this we use 1.0.1j

wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz 

tar xvfz openssl-1.0.1j.tar.gz cd openssl-1.0.1j

cd openssl-1.0.1j

./config 

make -j(number of cores) 

That should get the older version installed.

Also you may want to symlink openssl still:

sudo mv /usr/bin/openssl /root/ sudo ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl 
openssl version

(To check the openssl version installed)

Also you will want to run these when you run qmake again

qmake "USE_UPNP=1" "USE_QRCODE=1" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro 

Then you should be good for Ubuntu 18.04 Denarius compiling and it should compile with no errors :), otherwise all other older Ubuntu versions you can just do the usual sudo apt-get install libssl-dev

  • Like 1

Share this post


Link to post
Share on other sites

Steps I used to get this working.

sudo apt-get install make
wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz
tar -xzvf openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
sudo ./config
sudo make install
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
cd ~
openssl version -v
qmake "USE_UPNP=1" "USE_QRCODE=1" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro
make

 

Share this post


Link to post
Share on other sites

Ok i succeded at compiling the qt wallet but i cant compile the daemon it throws this:

[email protected]:~/denarius/src$ make -f makefile.unix
cc -c -O2  -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wno-format -Wno-unused-parameter -Wno-literal-suffix -std=c++11 -g -DBOOST_SPIRIT_THREADSAFE -I/home/manosv/denarius/src -I/home/manosv/denarius/src/obj -I/home/manosv/denarius/src/json -DIS_ARCH_64 -I/home/manosv/denarius/src/tor -DUSE_NATIVETOR=1 -DUSE_UPNP=1 -I/home/manosv/denarius/src/leveldb/include -DUSE_LEVELDB -I/home/manosv/denarius/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/addressmap.d -o obj/addressmap.o tor/addressmap.c
cc1: warning: command line option ‘-Wno-literal-suffix’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
In file included from tor/tortls.h:15:0,
                 from tor/or.h:71,
                 from tor/addressmap.c:18:
tor/compat_openssl.h:10:10: fatal error: openssl/opensslv.h: No such file or directory
 #include <openssl/opensslv.h>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
makefile.unix:433: recipe for target 'obj/addressmap.o' failed
make: *** [obj/addressmap.o] Error 1

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...