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

StandardError: GraphViz not installed or dot not in PATH. Install GraphViz or use the 'path' option #340

Open
bublik opened this issue Mar 20, 2015 · 2 comments

Comments

@bublik
Copy link

bublik commented Mar 20, 2015

rails 4.2

Gemfile
gem 'state_machine'
gem 'ruby-graphviz', '1.2.1', :require => 'graphviz'

bundle exec rake state_machine:draw FILE=house_contact.rb CLASS=UserHouse PATH=./doc/
bundle exec rake state_machine:draw FILE=house_contact.rb CLASS=UserHouse

and result
Files are automatically loaded in Rails; ignoring FILE option
/Users/ruslanvoloshin/.rvm/gems/ruby-2.2.0/bin/rake: No such file or directory - ps
rake aborted!
StandardError: GraphViz not installed or dot not in PATH. Install GraphViz or use the 'path' option
/Users/ruslanvoloshin/.rvm/gems/ruby-2.2.0/gems/ruby-graphviz-1.2.1/lib/graphviz.rb:544:in output' /Users/ruslanvoloshin/.rvm/gems/ruby-2.2.0/gems/state_machine-1.2.0/lib/state_machine/graph.rb:52:inoutput'

@seuros
Copy link

seuros commented Mar 20, 2015

The error is clear : GraphViz not installed. Install GraphViz.

@yovasx2
Copy link

yovasx2 commented Feb 9, 2021

You need to install graphviz in your OS, for debian:

root@de78dad56e8e:/onelogin/src# sudo apt-get update
root@de78dad56e8e:/onelogin/src# sudo apt-get install graphviz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants