steelThread / redmon

A web interface for managing redis: cli, admin, and live monitoring
http://steelthread.github.com/redmon/
1.57k stars 127 forks source link

Unexpected tIDENTIFIER #7

Closed FGRibreau closed 12 years ago

FGRibreau commented 12 years ago

I cloned the repo, installed the bundles via bundle install and then I got this: (unfortunately I don't have much knowledge in ruby to fix it myself)

$ruby sample/app.rb

sample/app.rb:4:in `require': /var/redmon/lib/redmon.rb:40: syntax error, unexpected tIDENTIFIER, expecting tAMPER (SyntaxError)
    Thin::Server.start(*opts[:web_interface], app)
                                                 ^
    from sample/app.rb:4
steelThread commented 12 years ago

Can you check your version of ruby: ruby -v? I'm guessing that you are using a version < 1.9

FGRibreau commented 12 years ago
ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin10.0]

Indeed, what version should I install to make it works ? (I have rvm installed)

steelThread commented 12 years ago

I would grab the latest release, 1.9.3-p125. I'm using some 1.9 features. Just make sure to run the sample/app using 1.9. Let me know if you have any other issues.

FGRibreau commented 12 years ago

The app starts now, I included Highchart 2.2.0 and I got this error: http://d.pr/7dpa Feeling that it was only an issue related to Highchart I downgraded highchart to 2.0.0 and it works now :)

steelThread commented 12 years ago

Yeah, I'm using 2.1.9.

FGRibreau commented 12 years ago

It may be a good idea to update the readme.md to specify which version of Highchart to download :)

steelThread commented 12 years ago

Was going to do that. Thanks!

On Feb 22, 2012, at 10:49 AM, Francois-Guillaume Ribreau wrote:

It may be a good idea to update the readme.md to specify which version of Highchart to download :)


Reply to this email directly or view it on GitHub: https://github.com/steelThread/redmon/issues/7#issuecomment-4106606


Sean McDaniel sean.mcdaniel@mac.com

FGRibreau commented 12 years ago

Awesome thanks !