Build the Algorand Node Natively on Windows 10

Build it natively! No more emulators or even WSL, just build it from source using mingw64 on Windows 10 x64. Learn more by following this step-by-step tutorial:

Source code to synced in about 30 minutes! (depending on your build environment, use of Fast Catchup and network speed)

Please let us know how it’s going in the comments below…

2 Likes

Hi,

I’m going through the tutorial but having trouble running the ‘make’ command. I’m seeing the following errors:

I’ve tried running as Administrator but getting the same results. Is there something I’m doing wrong with the install?

Thanks

These seems to be the four components installed by configure_dev-deps.sh.

Did you run it ?

I ran configure_dev-deps.sh separately and got this as output.

Can you send the full output of ./scripts/configure_dev.sh?

Sorry, I’m unable to post it directly in the forum due to the number of links in the output. I’ve uploaded it to PasteBin instead. Output of ./scripts/configure_dev.sh - Pastebin.com
Cheers

Is $GOPATH/bin in your $PATH?
See

@fabrice Thanks for pointing me in the right direction. It looks like during the install a separate ‘go’ folder was created in my windows Users directory and so there were some files in ‘C:\Users\peter\go’ and some in ‘C:\msys64\home\peter\go’. I manually copied the folder contents from Users into Home and then ‘make’ was able to locate the missing dependencies.

Hi @Genma_Saotome we are about to update the tutorial and move full setup of Go language outside script execution.

Please check if applying the changes in this branch, just after cloning the repo, helps.

Kind regards.

@mxmauro I cloned the repo and copied over the three files

  • makefile
  • scripts/build_package.sh
  • scripts/configure_dev-deps.sh

Went through without a hitch running ./scripts/configure_dev.sh with those changes. Everything correctly copied into C:\msys64\home\peter\go\bin rather than my %USERPROFILE% directory.

Excellent @Genma_Saotome. I’ll work this weekend on some changes and update the tutorial.

BTW: Sorry for the late response. I don’t enter the forum frequently :slight_smile:

Hello,

At the last step, it says goal or go isn’t a recognised command. What could be the reason for this? I added it to the system and user Path variable in windows.

also i’m having trouble with the linux go path.

I ran the echo command, and my .bashrc has
“export GOPATH=$HOME/go” at the end of the file.
However, go env still shows
“set GOPATH=C:/msys64/home/User/go”

I’ve tried it many times closing the terminal line ect, it still won’t do anything.

Thanks in advance

Can you check go is installed and in your PATH?
Concretely, what does go version output?

Depends.
In the Msys shell it says

# go version
go version go1.14.4 windows/amd64

in windows cmd it says

'go' is not recognized as an internal or external command,
operable program or batch file.

In the “Path” environment variable in both user and system, i have

C:\msys64\home\User\go

I added a “PATH” variable too, makes no difference

in msys, go env gives this:

set GOPATH=C:/msys64/home/User/go

Are you running all the commands (to install the Algorand software) in the Msys shell?

Thanks for the help, i ended up releasing that because i did the make command too late, not all the binaries were copied to the AlgorandNode folder.

I copied them manually, and even though i don’t have the same number of files and folders as the tutorial, everything seems to work!