Jump to content

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


Ghost
 Share

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

Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n

100703395-b1ee6600-3360-11eb-82bc-96818c

Link to comment
Share on other sites

  • 8 months later...

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

 

If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Link to comment
Share on other sites

  • 1 month later...

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

 

Link to comment
Share on other sites

this is the 2 lines I used to compile QT on Ubuntu 18.10

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

 

If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...