pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 504 forks source link

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

Open bublik opened 9 years ago

bublik commented 9 years ago

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 commented 9 years ago

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

yovasx2 commented 3 years ago

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