Uninitialized constant GraphViz (NameError)

82 views
Skip to first unread message

Yves Bouckaert

unread,
Apr 5, 2016, 4:26:57 PM4/5/16
to ruby-graphviz
Hi there,

I'm trying to use ruby-graphviz to generate a visual dependency graph with
 
$ bundle viz

But i'm getting this:

uninitialized constant GraphViz (NameError)

I wondering if was an installation problem but through i ran:

$ echo "digraph G {Hello->World}" | dot -Tpng >hello.png
 
And it works fine.

This is the content of my Gemfile.lock:

GEM
  remote
: https://rubygems.org/
  specs
:
    actionmailer
(4.0.0)
      actionpack
(= 4.0.0)
      mail
(~> 2.5.3)
    actionpack
(4.0.0)
      activesupport
(= 4.0.0)
      builder
(~> 3.1.0)
      erubis
(~> 2.7.0)
      rack
(~> 1.5.2)
      rack
-test (~> 0.6.2)
    activemodel
(4.0.0)
      activesupport
(= 4.0.0)
      builder
(~> 3.1.0)
    activerecord
(4.0.0)
      activemodel
(= 4.0.0)
      activerecord
-deprecated_finders (~> 1.0.2)
      activesupport
(= 4.0.0)
      arel
(~> 4.0.0)
    activerecord
-deprecated_finders (1.0.4)
    activesupport
(4.0.0)
      i18n
(~> 0.6, >= 0.6.4)
      minitest
(~> 4.2)
      multi_json
(~> 1.3)
      thread_safe
(~> 0.1)
      tzinfo
(~> 0.3.37)
    arel
(4.0.2)
    builder
(3.1.4)
    coffee
-rails (4.0.1)
      coffee
-script (>= 2.2.0)
      railties
(>= 4.0.0, < 5.0)
    coffee
-script (2.4.1)
      coffee
-script-source
      execjs
    coffee
-script-source (1.10.0)
    erubis
(2.7.0)
    execjs
(2.6.0)
    graphviz
(0.3.0)
    hike
(1.2.3)
    hpricot
(0.8.6)
    i18n
(0.7.0)
    jbuilder
(1.5.3)
      activesupport
(>= 3.0.0)
      multi_json
(>= 1.2.0)
    jquery
-rails (3.1.4)
      railties
(>= 3.0, < 5.0)
      thor
(>= 0.14, < 2.0)
    json
(1.8.3)
    mail
(2.5.4)
      mime
-types (~> 1.16)
      treetop
(~> 1.4.8)
    mime
-types (1.25.1)
    minitest
(4.7.5)
    multi_json
(1.11.2)
    mustache
(1.0.3)
    polyglot
(0.3.5)
    power_assert
(0.2.7)
    rack
(1.5.5)
    rack
-test (0.6.3)
      rack
(>= 1.0)
    rails
(4.0.0)
      actionmailer
(= 4.0.0)
      actionpack
(= 4.0.0)
      activerecord
(= 4.0.0)
      activesupport
(= 4.0.0)
      bundler
(>= 1.3.0, < 2.0)
      railties
(= 4.0.0)
      sprockets
-rails (~> 2.0.0)
    railties
(4.0.0)
      actionpack
(= 4.0.0)
      activesupport
(= 4.0.0)
      rake
(>= 0.8.7)
      thor
(>= 0.18.1, < 2.0)
    rake
(11.1.2)
    rdiscount
(2.1.8)
    rdoc
(4.2.2)
      json
(~> 1.4)
    ronn
(0.7.3)
      hpricot
(>= 0.8.2)
      mustache
(>= 0.7.0)
      rdiscount
(>= 1.5.8)
    ruby
-graphviz (1.2.2)
    sass
(3.2.19)
    sass
-rails (4.0.5)
      railties
(>= 4.0.0, < 5.0)
      sass
(~> 3.2.2)
      sprockets
(~> 2.8, < 3.0)
      sprockets
-rails (~> 2.0)
    sdoc
(0.4.1)
      json
(~> 1.7, >= 1.7.7)
      rdoc
(~> 4.0)
    sprockets
(2.12.4)
      hike
(~> 1.2)
      multi_json
(~> 1.0)
      rack
(~> 1.0)
      tilt
(~> 1.1, != 1.3.0)
    sprockets
-rails (2.0.1)
      actionpack
(>= 3.0)
      activesupport
(>= 3.0)
      sprockets
(~> 2.8)
    sqlite3
(1.3.11)
    test
-unit (3.1.8)
      power_assert
    thor
(0.19.1)
    thread_safe
(0.3.5)
    tilt
(1.4.1)
    treetop
(1.4.15)
      polyglot
      polyglot
(>= 0.3.1)
    turbolinks
(2.5.3)
      coffee
-rails
    tzinfo
(0.3.48)
    uglifier
(3.0.0)
      execjs
(>= 0.3.0, < 3)

PLATFORMS
  ruby

DEPENDENCIES
  coffee
-rails (~> 4.0.0)
  graphviz
  jbuilder
(~> 1.2)
  jquery
-rails
  rails
(= 4.0.0)
  ronn
  ruby
-graphviz
  sass
-rails (~> 4.0.0)
  sdoc
  sqlite3
  test
-unit
  turbolinks
  uglifier
(>= 1.3.0)

Hope u could help,

natha...@bignerdranch.com

unread,
Aug 26, 2016, 9:59:04 AM8/26/16
to ruby-graphviz
Did you `gem install ruby-graphviz` or `gem install graphviz`? `ruby-graphviz` is this gem's name, even though you `require "graphviz"`.

Reply all
Reply to author
Forward
0 new messages