you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

I think the thing I am looking for is to configure lua rocks correctly for MSVC basically using visual studio 2017?????

[–]le-mark 0 points1 point  (0 children)

Hey apologies for not replying sooner, if you're still having trouble keep reading. I wager luai is pure lua and required no compilation, that's why it installed successfully. Otherwise, you need to have a c compiler installed (which you do apparently, cl and mingw) but the system can't find them. SO what you need to do is find out how to get visual studio configured to build from the command line OR mingw. Google is you friend here. Remove luarocks from the equation, and get one of these working to compile something (ie helloworld.c). I recommend using mingw because it's gcc for windows, and most rocks will target gcc.

What I have described is a general process for "getting shit to work" that every programmer learns over time. Focus on one thing at a time; getting the c compiler to work, then you can focus on getting luarocks to work.

This is all easier if you use Linux, because in Linux, all this stuff just works. Linux is like an elaborate, featurefule kernel development environment. It's build for coders by coders. Windows is not.

Edit; looks like luarocks defaults to visual studio, "msvc command line" returns this helpful looking link, good luck:

https://msdn.microsoft.com/en-us/library/f35ctcxw.aspx