Created
July 16, 2019 15:32
-
-
Save dalslandan200/9167c848d37ea2bfa91af08b2f552bff to your computer and use it in GitHub Desktop.
Compiling Joulecoin with self compiled openSSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 Be in the directory you want (preferably in /root or ~) or create a new directory to not mix maybe old Joulecoin builds? | |
#2 Preferably be root user, if not use SUDO to ensure correctness. | |
#3 Do not continue to next step if you have some error, which potentially indicate the instruction from before didn't finish correctly! | |
#4 intall openSSL (shared library) and in different directory | |
wget https://www.openssl.org/source/openssl-1.0.2s.tar.gz | |
tar -xvzf openssl-1.0.2s.tar.gz | |
CFLAGS=-fPIC ./config --prefix=/openssl-1.0.2s --openssldir=/openssl-1.0.2s shared | |
make | |
make install | |
### openSSL is now installed in /openssl-1.0.2s (you can check with 'cd /' and 'ls') | |
#5 Build Joulecoin with the freshly installed openSSL (note: This requires the prerequisites specified in Joulecoin documentation for unix is fulfilled) | |
### Fetching Joulecoin core from master Branch | |
wget https://github.com/joulecoin/joulecoin/archive/master.zip | |
unzip master.zip | |
cd joulecoin-master | |
./autogen.sh | |
### Use our installed openSSL when Building | |
./configure LDFLAGS='-L/openssl-1.0.2s/lib' CPPFLAGS='-I/openssl-1.0.2s/include' PKG_CONFIG_PATH='/openssl-1.0.2s/lib/pkgconfig' | |
make | |
### There are some warnings about deprecated features, and other warnings. But these are safe to ignore. | |
### Everything should have compiled successfully. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment