prometheus-junkyard / promdash

Prometheus Dashboard Builder
http://prometheus.io/
Apache License 2.0
271 stars 48 forks source link

Bundler issue #479

Open ghost opened 8 years ago

ghost commented 8 years ago

Installing promdash on ubuntu 12.04. Tried to install it with ruby1.8 and 1.9 also. Still facing below issue

[!] There was an error parsing Gemfile: compile error - syntax error, unexpected ':', expecting $end gem 'mysql2', group: 'mysql' ^. Bundler cannot continue.

from /var/lib/Prometheus/promdash/Gemfile:7

-------------------------------------------

Allow people to ignore the database provider they don't need by doing bundle install --without mysql

gem 'mysql2', group: 'mysql'

gem 'pg', group: 'postgresql'

-------------------------------------------

Command :bundle install --without mysql postgresql

stuartnelson3 commented 8 years ago

Have you modified the Gemfile? I am able to run the command you listed without error:

bundle install --without mysql postgresql

(on debian, however)

ghost commented 8 years ago

No I did not edit any file. I have cloned that directory as it is. Is there any issue of ruby version?

stuartnelson3 commented 8 years ago

we support the version listed in .ruby-version, which currently reads 2.0.0-p645

matthiasr commented 8 years ago

The group: 'mysql' syntax is Ruby 1.9+ – the Ruby in 12.04 is quite ancient, try using RVM to use the supported version.