Skip to content
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

issue generate when i install katana on windows 10 #624

Closed
d4715 opened this issue Oct 15, 2023 · 6 comments
Closed

issue generate when i install katana on windows 10 #624

d4715 opened this issue Oct 15, 2023 · 6 comments
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@d4715
Copy link

d4715 commented Oct 15, 2023

i am using windows 10 and install latest go then i install katana but not install perfectly so please help me for this

katana version:

v1.0.4

Current Behavior:

install process fail

Steps To Reproduce:

C:\Program Files\Go\bin>go install github.com/projectdiscovery/katana/cmd/katana@latest

and i got this

github.com/smacker/go-tree-sitter/javascript: build constraints exclude all Go files in C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\javascript

github.com/smacker/go-tree-sitter

C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:17:18: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:21:21: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:25:20: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:30:26: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:34:20: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:38:32: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:43:9: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:46:18: undefined: Node
C:\Users$$HumaL$$\go\pkg\mod\github.com\smacker\go-tree-sitter@v0.0.0-20220628134258-ac06e95cfa11\iter.go:68:40: undefined: Node

Anything else:

attached screen shot
1

@d4715 d4715 added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Oct 15, 2023
@dogancanbakir dogancanbakir self-assigned this Oct 16, 2023
@dogancanbakir
Copy link
Member

@d4715, thank you for bringing this to our attention. We are aware of the issue, which is planned to be worked on. In the meantime, please install the tree-sitter build dependencies and try to install katana again. Let me know if you need any help!

@amiremami
Copy link

@d4715, thank you for bringing this to our attention. We are aware of the issue, which is planned to be worked on. In the meantime, please install the tree-sitter build dependencies and try to install katana again. Let me know if you need any help!

Can you please explain the solution more and step by step? I have same issue, thanks.

@jayateertha043
Copy link

Solution -

  1. Do these in admin cmd only - choco install zig
  2. Open another Admin cmd and - set CGO_ENABLED=1&set GOOS=windows&set GOARCH=amd64&set CC=zig cc&set CXX=zig c++
  3. Then do - go install github.com/projectdiscovery/katana/cmd/katana@latest

Note: go-tree-sitter might show some warning when building, but it's fine katana -h after full install should work.

@amiremami
Copy link

Solution -

  1. Do these in admin cmd only - choco install zig
  2. Open another Admin cmd and - set CGO_ENABLED=1&set GOOS=windows&set GOARCH=amd64&set CC=zig cc&set CXX=zig c++
  3. Then do - go install github.com/projectdiscovery/katana/cmd/katana@latest

Note: go-tree-sitter might show some warning when building, but it's fine katana -h after full install should work.

Thanks, how for linux ubuntu?

@d4715
Copy link
Author

d4715 commented Feb 17, 2024

Solution -

1. Do these in admin cmd only - `choco install zig`

2. Open another Admin cmd  and  - `set CGO_ENABLED=1&set GOOS=windows&set GOARCH=amd64&set CC=zig cc&set CXX=zig c++`

3. Then do - `go install github.com/projectdiscovery/katana/cmd/katana@latest`

Note: go-tree-sitter might show some warning when building, but it's fine katana -h after full install should work.

@d4715
Copy link
Author

d4715 commented Feb 17, 2024

whenever I try to install zig via this command choco install zig i got these error 'choco' is not recognized as an internal or external command,
operable program or batch file.
you can check image
2
so now what to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

4 participants