How to compile in Windows 11 #470
-
Hello, I am running out of ideas. Have installed GNU Make and Go 1.22. No matter how I set the env variables I get this kind of message: That was trying to build the drivers minimal, if doing a "make build" with go 1.21 installed and GNU Make I get: Can anybody shed some light on how to troubleshoot any of these? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 17 replies
-
Hi @carrots66, you need to have configured Golang on your system. I guess you can follow the answer from Stackoverflow here - https://stackoverflow.com/questions/35884965/gopath-error-in-windows-gopath-entry-is-relative-must-be-absolute-path |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello,
Sorry for late reply. I managed to cross-compile in linux and that worked
just fine.
However, I have tried the promu steps on the Widnows machine, for some
reason it was installing the promu.exe over the c:\go-work\go\bin directory
rather than the go installation in program files.
I copied the .exe over the installation at c:\program files\go\bin and
promu build compiled in Windows just fine too.
I will test the win makefile it in Windows 10 and 11 and report back.
El jue, 21 mar 2024 a las 21:00, Sergei Zyubin ***@***.***>)
escribió:
… Hey @carrots66 <https://github.com/carrots66>, I've created branch
win-makefile, but I need to carefully test it to avoid any regressions
before the merge. In the meantime, if you could test it on your end, that
would be great. Check it out and try to run make commands again.
—
Reply to this email directly, view it on GitHub
<#470 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHFYNF6BSBEHRUCJT7W7XM3YZM36NAVCNFSM6AAAAABFBDQOSWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNZQGQ2DE>
.
You are receiving this because you were mentioned.Message ID:
<burningalchemist/sql_exporter/repo-discussions/470/comments/8870442@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
This is what I get on Windows 10 (home computer)
![image](https://github.com/burningalchemist/sql_exporter/assets/164333207/54160109-3d29-4160-a16e-36841f8c9a7f)
On Windows 11 (work computer) I have connectivity issues, so most of my
problems seem to come from not being able to download the requirements.
Will see if I can progress further on that.
El vie, 22 mar 2024 a las 8:20, carlos martin (<
***@***.***>) escribió:
… Hello,
Sorry for late reply. I managed to cross-compile in linux and that worked
just fine.
However, I have tried the promu steps on the Widnows machine, for some
reason it was installing the promu.exe over the c:\go-work\go\bin directory
rather than the go installation in program files.
I copied the .exe over the installation at c:\program files\go\bin and
promu build compiled in Windows just fine too.
I will test the win makefile it in Windows 10 and 11 and report back.
El jue, 21 mar 2024 a las 21:00, Sergei Zyubin ***@***.***>)
escribió:
> Hey @carrots66 <https://github.com/carrots66>, I've created branch
> win-makefile, but I need to carefully test it to avoid any regressions
> before the merge. In the meantime, if you could test it on your end, that
> would be great. Check it out and try to run make commands again.
>
> —
> Reply to this email directly, view it on GitHub
> <#470 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BHFYNF6BSBEHRUCJT7W7XM3YZM36NAVCNFSM6AAAAABFBDQOSWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNZQGQ2DE>
> .
> You are receiving this because you were mentioned.Message ID:
> <burningalchemist/sql_exporter/repo-discussions/470/comments/8870442@
> github.com>
>
|
Beta Was this translation helpful? Give feedback.
-
Hello @burningalchemist |
Beta Was this translation helpful? Give feedback.
@carrots66
Ok, I've managed to fix and test it on my windows laptop, it should work. Could you please try and test it again? For
build
anddrivers-%
it should work just fine for all the cases now.I'll create a pull request to merge it to master.
style
andvet
targets still use unix utilities likegrep
andfind
, so they won't work on Windows out of the box. It's possible to install these as GNU utilities, but it'd be a user responsibility. The commands are still more developer-oriented, so I don't think that's relevant anyway.