-
Notifications
You must be signed in to change notification settings - Fork 23
Build Windows
Install tools via chocolatey
- run administrative shell
- run command to install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- open new administrative shell
- inttall git
choco install git
- install make
choco install make
- install MinGW
choco install mingw --version=8.1.0
- open
git bash
, and cd zboxcli && make install
Windows 64bit (tested with Windows 10)
-
Install executables make3.8.1 binary & make3.8.1 dependencies
http://gnuwin32.sourceforge.net/packages/make.htm
-
The 3 files from the bin folder of above two packages (make.exe and 2xDLLs) need to be copied into a windows folder such as Windows/system, the zboxcli folder, or a folder of your choosing and the path added to windows system path
Windows System > Control Panel > System and Security > System > Advanced System Settings > Environment Variables > (System Variables - Path > Edit ) > New [add your chosen path]
https://sourceforge.net/projects/mingw-w64/
-
Will install required compiler tools for you;
-
Select Architecture x86_64, leave other options as is;
-
Once again, you may need to manually add the mingw64 binaries path to your system path
-
for whatever path has been installed on your system e.g.
Windows System > Control Panel > System and Security > System > Advanced System Settings > Environment Variables > (System Variables - Path > Edit ) > New C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
-
Installer should handle defaults for you
gitforwindows.org
-
Via Installer (Windows Amd64 msi) should handle defaults and perform windows path updates for you
https://golang.org/dl/
-
Any Open Command (Terminal) Windows may need to be restarted to 'see' any paths updated above
md go
cd go
git clone https://github.com/0chain/zboxcli.git
cd zboxcli
make install
(As an alternative to the git clone command, you can manually download and extract from the github website, 0chain/zboxcli) If you get as far as this;
process_begin: CreateProcess(NULL, cp -f zwallet /sample/zwallet, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [install] Error 2
Dont worry, its built fine, just rename the file to an .exe like
rename zbox zbox.exe
- Locate your home folder, like \Users<username>
- Make a folder called .zcn
- copy one.yaml file from zboxcli\network to the new .zcn folder
- Also move zbox.exe to that folder if desired.
- You should now be able to run the "zbox" command and get the help menu