Open bublik opened 9 years ago
The error is clear : GraphViz not installed. Install GraphViz.
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
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:in
output'