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

better error hints for missing help command #78

Closed
hicqu opened this issue Nov 18, 2016 · 1 comment
Closed

better error hints for missing help command #78

hicqu opened this issue Nov 18, 2016 · 1 comment
Labels

Comments

@hicqu
Copy link

hicqu commented Nov 18, 2016

I work with Archlinux which is a very light-weight Linux distribution without lua by default. And when I try

sysbench --test=oltp help

nothing useful was printed.
I struggled very hard and then I found some lua scripts in $HomeDir/share/sysbench. Oh, maybe I need lua!
And it was going ok after I installed that.

So, I think it's good to add more nice error hints when lua is not in system for green-hands? Thanks!

@akopytov
Copy link
Owner

The problem was not in Lua, because Lua is always bundled with sysbench, you don't have to install it separately.

The actual problem, as I understand, was that

  • oltp.lua does not provide any help (i.e. does not define the help() function)
  • sysbench prints nothing if the script doesn't provide any help. which is confusing.

oltp.l

@akopytov akopytov added the bug label Nov 18, 2016
@akopytov akopytov changed the title better error hints for system without lua better error hints for missing help command Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants