Saving diagram failed! Verify that Graphviz is installed and in your path, or use filetype=dot

巧了我就是萌 提交于 2019-12-04 05:26:41

It's because your project is using Rails ERD, a gem that can automatically create ERDs - entity relationship diagrams. It relies on a library called graphviz to run. If you want to continue to use it, you'll have to install graphviz. On Linux you can do this via console:

sudo apt-get install graphviz

If you don't want to use the rails-erd gem, remove it from your Gemfile and bundle. If you don't see it in your Gemfile, look at your Gemfile.lock to determine what is requiring the rails-erd gem and think about removing that gem.

Try with below commands.

erd --inheritance --direct --attributes=foreign_keys,content --filetype=dot
dot -Tjpg erd.dot > erd.jpg
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!