Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Lua + MySQL


  • Please log in to reply
7 replies to this topic

#1
OFFLINE   Ryuk

Ryuk

    Newbie

  • Members
  • Pip
  • 6 posts
0
Unknown

Hello,

I was trying to use SQL stats logger http://mygamingtalk....l-stats-logger/ by Sol and I get this error on startup:

0:12 Lua API: Loading dbstats.lua
0:12 Lua API: G_LuaStartVM error running lua script: D:\Program Files\ETserver\silent\LUA/dblib.lua:9: module 'luasql.mysql' not found:
	no field package.preload['luasql.mysql']
	no file 'D:\Program Files\ETserver\silent\luasql\mysql.lua'
	no file 'D:\Program Files\ETserver\silent\lualibs\luasql\mysql.lua'
	no file 'D:\Program Files\ETserver\silent\lualibs\luasql\mysql.dll'
	no file 'D:\Program Files\ETserver\silent\lualibs\luasql.dll'

What does it mean? Do I need something more than regular silEnT mod installation to run this script?



#2
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3096 posts
216
On the road to fame
  • LocationPoland

I guess you need this:

http://keplerproject.../luasql/doc/us/



#3
OFFLINE   Ryuk

Ryuk

    Newbie

  • Members
  • Pip
  • 6 posts
0
Unknown

Is it possible to install this on linux if i don't have shell access?



#4
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3096 posts
216
On the road to fame
  • LocationPoland

If you can place files in your silent install dir without shell access it would be possible.



#5
OFFLINE   Ryuk

Ryuk

    Newbie

  • Members
  • Pip
  • 6 posts
0
Unknown

I can and i did that but these files doesn't work properly. I downloaded mysql.so from NOQ files and placed it in silent/lualibs/luasql/ and now i get this error:

2377:19 Lua API: G_LuaStartVM error running lua script: error loading module 'luasql.mysql'
libssl.so.0: cannot open shared object file: No such file or directory

 



#6
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3096 posts
216
On the road to fame
  • LocationPoland

It looks like it has dependency on the libssl library and it is not available. You could either put it there and export the LD_LIBRARY_PATH variable to point to the directory with the libssl library  prior to running the server or ask the server maintainer to install libssl system wide. I would recommend the latter.



#7
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

Also, you need to use the dynamic Lua version of the silEnT mod for the scripts to load additional libraries.



#8
OFFLINE   Ryuk

Ryuk

    Newbie

  • Members
  • Pip
  • 6 posts
0
Unknown

Thanks for your help. I did what you suggested and the server maintainer asks me which libssl exactly has to be installed. Do you have any ideas?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users