Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Windows release? #630

Closed
Vasilich opened this issue Jul 7, 2022 · 2 comments
Closed

Windows release? #630

Vasilich opened this issue Jul 7, 2022 · 2 comments

Comments

@Vasilich
Copy link

Vasilich commented Jul 7, 2022

I am struggling to find a tool that works via gnmi protocol for windows.
I have seen commit #194 that has removed windows compilations from release. Is there any chance to get it back in release? or chance for me to compile it somehow locally? i have no experience with Go language at all.

Thanks in advance

@karimra
Copy link
Owner

karimra commented Jul 7, 2022

To use gnmic on Windows you have a 2 options:

  1. Install WSL2 on your windows machine and use gnmic for linux
  2. Build gnmic from source:
    • Install golang18.x
    • Clone there repo: git clone https://github.com/karimra/gnmic && cd gnmic
    • If building on windows:
      • go build (a new executable gnmic.exe will be created in your $PWD)
    • If cross compiling on (linux/darwin) for Windows:
      • GOOS=windows GOARCH=amd64 go build (a new executable gnmic.exe will be created in your $PWD)

@Vasilich
Copy link
Author

Vasilich commented Jul 8, 2022

Thanks for the answer.
I still use WSL1, and gnmic works also there. Network connections in WSL2 don't work with complex IT infrastructure without DHCP servers.
But it is easier for me to use version compiled for windows, and building it with your instruction was also pretty easy.

@Vasilich Vasilich closed this as completed Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants