Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalslandan200/9167c848d37ea2bfa91af08b2f552bff to your computer and use it in GitHub Desktop.
Save dalslandan200/9167c848d37ea2bfa91af08b2f552bff to your computer and use it in GitHub Desktop.
Compiling Joulecoin with self compiled openSSL
#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