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

Error fatal error: 'cstring' file not found when compiling in MacBook M2 #248

Closed
enrique-fernandez-polo opened this issue Feb 9, 2024 · 2 comments

Comments

@enrique-fernandez-polo
Copy link

Hello there!

I am struggling to get this working in my laptop

nvim-treesitter[ruby]: Error during compilation
src/scanner.cc:4:10: fatal error: 'cstring' file not found
#include <cstring>
         ^~~~~~~~~
1 error generated.

I 've been playing around with gcc, llvm but I do not have that kind of knowledge 😅

Could you give me hand?? Thanks!

@enrique-fernandez-polo
Copy link
Author

Well you know... You just have to create a issue to find the solution.

I had to set the CC env var to the proper path of the gcc command installed by brew.

CC=/opt/homebrew/bin/gcc-13 lvim . Did the trick.

@amaanq
Copy link
Member

amaanq commented Feb 9, 2024

the grammar was just updated to have the scanner be written in C fyi to prevent issues like this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants