admin 管理员组文章数量: 1086019
I have got a server written in C# dotnet and am trying to add Scripting Integration Lua to it. My issue is trying to add SQLite and MySQL. I'm using
luarocks install luasql-sqlite3
to add it but it's throwing an error:
Error: Could not find expected file sqlite3.h for SQLITE -- you may have to install SQLITE in your system and/or set the SQLITE_DIR variable
I've added SQLITE_DIR
in Environment Variable to C:\sqlite
, inside that folder contains sqlite3.h, sqlite3.def, sqlite3.dll, and other sqlite3 files, and if I write sqlite3
in the CMD it runs SQLite!
CMD showing SQLITE running through CMD using sqlite3
Note that I tried using
luarocks install luasql-sqlite3 SQLITE_VAR="C:/sqlite"
Add the sqlite3 files to LUA/5.1/include
I want to be able to use MySQL and SQLite in Lua within the C# project that I'm doing.
本文标签:
版权声明:本文标题:.net - Dotnet, C#, Scripting Integration to Lua, can't add sqlite to Lua - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1741308061a2288768.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论