-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building TiDB on Windows #4295
Comments
You shouldn't run |
@choleraehyq Thank you for your prompt response! As per your suggestion, I tried building the parser:
I verified that the parser.y and parser.go exist. After that, I ran a
I'll continue looking into this. If you have any other suggestions, please let me know. |
I thought perhaps I am unable to build master so I also tried building this release: 6e0ff81 In the Makefile, I did not see any instructions for generating scanner.l as was noted in a previous attempt to run tidb on Windows (#130). I am not certain if this step is still needed. When I try to use golex, I get the following error:
I am new to Go and its ecosystem and am eager to try out TiDB - would greatly appreciate any help you could provide. Thank you for your time! |
@rapoth Firstly, You need to build the goyacc binary. Please refer to our Makefile: I am not sure if the whole project could be built on Windows platform. But it is a nice try. |
@shenli: Thank you! I did manage to do everything you suggested. Here are the precise commands I have tried until now:
The Makefile does not explicily run golex so I am not sure if I missed any other steps before running |
@choleraehyq @shenli : I'd highly appreciate any suggestions from your end on how to proceed. I am not totally familiar with the Go ecosystem so I'm out of ideas from my end :) Thank you in advance for your time! |
@rapoth I will try it myself in my spare time. |
@shenli Thank you so much! I really appreciate your time. Please do let me know if you manage to build it. |
@rapoth I can sucessfully build tidb in windows with the following commands: The result exe file size is 37MB. |
@tohghua You can run tidb-server with a local storage engine without tikv. :) |
@shenli I ignored this line in Makefile, does it matter? It seems no effect at all. |
@tohghua You need to keep this or replace it with equivalent scripts. |
@tohghua |
You are right: tidb\_vendor |
This is now possible using WSL. Should this be closed? |
I am going to close this issue as stale. It is not something that is explicitly supported, but it should be possible to build TiDB on Windows with WSL. Thanks! |
Hi - First of all, thank you for your wonderful work on this project! I am trying to run TiDB/TiKV/PD on Windows to test the system out.
To begin with, I was trying to get TiDB to run. I setup Go and the associated GOPATH etc., after which I ran
go build
but saw some compiler errors. Any help in getting this to work on Windows would be greatly appreciated!Thank you!
Summary:
1. What did you do?
If possible, provide a recipe for reproducing the error.
go build
2. What did you expect to see?
3. What did you see instead?
4. What version of TiDB are you using (
tidb-server -V
)?I checked out the master branch.
The text was updated successfully, but these errors were encountered: