CLI Build Instructions
The following instructions will cover building and running the RBX on Windows, Linux, and Mac. The most important step is to install .net core 6.
For Linux you can find install instructions here https://docs.microsoft.com/en-us/dotnet/core/install/linux. This document will cover how to install for Ubuntu.
In the last step for dotnet ReserveBlockCore(.dll or .exe or blank) if that does not work you can also try dotnet run ReserveBlockCore(.dll or .exe or blank)
Linux
Linux Install For Ubuntu 22.04:
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0
sudo apt-get update && sudo apt-get install -y aspnetcore-runtime-6.0
run
dotnet --version
. You should see a version number of 6.0.xxxmkdir rbx
- Makes a direction for RBXcd rbx
a) Clone the repo with git.
git clone https://github.com/ReserveBlockIO/ReserveBlock-Core.git
b) Download the already packaged release https://github.com/ReserveBlockIO/ReserveBlock-Core/releases/. If you do this please navigate to folder you downloaded binaries from and skip to step 12.
cd ReserveBlock-Core
dotnet build
- There should be 0 (zero) errors.dotnet publish -c Release -r linux-x64 --output ./rbxpublished
**please note thelinux-x64
can be changed if you are on a different architecturecd rbxpublished
dotnet ReserveBlockCore.dll
You are done! You should now see a wallet running! Some common errors are usually related to file permissions. Please ensure you have given proper permission to the newly created RBX folder
Dotnet Conflicts
If you see an error like this, it means your have a conflict with dotnet versions.
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist
To fix, run the following commands:
sudo apt remove dotnet*
sudo apt remove aspnetcore*
sudo apt remove netstandard*
sudo nano /etc/apt/preferences.d/99microsoft-dotnet.pref
Then paste in the following and save/exit nano:
Package: *
Pin: origin "packages.microsoft.com"
Pin-Priority: 1001
Then run:
sudo apt update
sudo apt install dotnet-sdk-6.0
Windows
Install the latest dotnet sdk from here: https://dotnet.microsoft.com/en-us/download/dotnet/6.0 Once that is installed follow steps below.
- Create a directory for RBX and then open command prompt in admin and navigate to that directory.
- Please ensure you have a working version of git installed.
- a) Clone the repo with git.
git clone https://github.com/ReserveBlockIO/ReserveBlock-Core.git
b) Download the already packaged release https://github.com/ReserveBlockIO/ReserveBlock-Core/releases/. If you do this please navigate to folder you downloaded binaries from and skip to step 8. cd ReserveBlock-Core
dotnet build
- There should be 0 (zero) errors.dotnet publish
-c Release -r win-x64 --output ./rbxpublished **please note thewin-x64
can be changed if you are on a different architecturecd rbxpublished
dotnet ReserveBlockCore.exe
Mac OSX
Install the latest dotnet sdk from here: https://dotnet.microsoft.com/en-us/download/dotnet/6.0 Once that is installed follow steps below.
- Create a directory for RBX and then open command prompt in admin and navigate to that directory.
- Please ensure you have a working version of git installed.
- Clone the repo with git.
git clone https://github.com/ReserveBlockIO/ReserveBlock-Core.git
- Download the already packaged release https://github.com/ReserveBlockIO/ReserveBlock-Core/releases/. If you do this please navigate to folder you downloaded binaries from and skip to step 8.
- Clone the repo with git.
- cd ReserveBlock-Core
dotnet build
- There should be 0 (zero) errors.dotnet publish -c Release -r osx-x64 --output ./rbxpublished
**please note theosx-x64
can be changed if you are on a different architecture like arm.cd rbxpublished
dotnet ReserveBlockCore