Difference between revisions of "Install-from-Source"

From Snowblossom Wiki
Jump to: navigation, search
(migration)
 
 
Line 22: Line 22:
 
== Testing ==
 
== Testing ==
  
<pre>bazel test :all</pre>
+
<pre>bazel test ...</pre>
 +
 
 +
 
 +
== Fireduck's Debian Notes ==
 +
 
 +
=== Bazel install ===
 +
<pre>
 +
apt-get install openjdk-8-jdk vim screen git dc dstat curl ntp
 +
 
 +
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
 +
curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
 +
 
 +
apt-get update
 +
apt-get install bazel
 +
</pre>
 +
 
 +
=== To Use java11 ===
 +
 
 +
You need java8 for bazel to work, but java11 has some performance improvements that help with mining.  So you do the above to get openjdk8 and then:
 +
 
 +
<pre>
 +
apt-get install openjdk-11-jdk
 +
</pre>
 +
 
 +
And then in the .profile or whatever of the user you use to compile:
 +
<pre>
 +
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
 +
</pre>
 +
 
 +
After that, java -version should show openjdk 11 and then you run the deploy jars with: java -jar.

Latest revision as of 18:05, 25 February 2019

Install from Source (all platforms)

  1. Install Java 8+
    • Windows: Java 64 BIT
    • Linux OpenJDK 8+ apt-get install openjdk-8-jdk
  2. Install Bazel
  3. Download source code:
  4. Inside source directory run bazel build :all
  5. Run the Node bazel-bin/SnowBlossomNode node.conf
    • Allow the the node to download the blockchain and sync
  6. Run the Client bazel-bin/SnowBlossomClient client.conf
  7. (optional) Build Stand Alone Jar Files
bazel build \
:SnowBlossomMiner_deploy.jar \
:SnowBlossomNode_deploy.jar \
:SnowBlossomClient_deploy.jar \
:Shackleton_deploy.jar

Testing

bazel test ...


Fireduck's Debian Notes

Bazel install

apt-get install openjdk-8-jdk vim screen git dc dstat curl ntp 

echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
curl https://bazel.build/bazel-release.pub.gpg | apt-key add -

apt-get update
apt-get install bazel

To Use java11

You need java8 for bazel to work, but java11 has some performance improvements that help with mining. So you do the above to get openjdk8 and then:

apt-get install openjdk-11-jdk

And then in the .profile or whatever of the user you use to compile:

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

After that, java -version should show openjdk 11 and then you run the deploy jars with: java -jar.