WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: graphviz 2.26.3 (TESTING) doesn't work for me  (Read 4634 times)

Offline Jakob Bysewski

  • Newbie
  • *
  • Posts: 40
graphviz 2.26.3 (TESTING) doesn't work for me
« on: November 16, 2010, 07:02:10 AM »
Hello everyone!

I tried to use the new graphviz TCE but can't get it to work:

Code: [Select]
jakob ~/Downloads $ dot
There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?
jakob ~/Downloads $ sudo dot -c
Error: failed to open /tmp/tcloop/graphviz/usr/local/lib/graphviz/config6 for write.
Segmentation fault

Maybe the post-installation step was missed?
After installing Graphviz by hand you need to run sudo dot -c. This will set up some config file which is crucial for Graphviz to function properly (bah!).
This configures the plugins available.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: graphviz 2.26.3 (TESTING) doesn't work for me
« Reply #1 on: November 16, 2010, 09:46:18 AM »
I copied the executables in /tmp/tcloop/graphviz/usr/local/bin to /usr/local/bin/ and it then worked for me.  Python had this similar situation as the binaries needed to be in the real filesystem and don't work as symlnks.  I just copied them all, so I don't know which ones really need copying to the filesystem other than dot.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: graphviz 2.26.3 (TESTING) doesn't work for me
« Reply #2 on: November 16, 2010, 05:34:05 PM »
Thats odd. I tested all of the binaries before submitting without problems...perhaps I missed something. Will get it fixed.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: graphviz 2.26.3 (TESTING) doesn't work for me
« Reply #3 on: November 23, 2010, 03:05:16 PM »
I have fixed this issue and submitted the changes. There is now a symlink in graphviz/usr/local/lib/graphviz/config6 to /usr/local/graphviz/config6. The startup script will check if /usr/local/lib/graphviz/config6 is a symlink to itself or to /tmp/tcloop/graphviz/usr/local/lib/graphviz/config6. If it is then the link will be removed and `dot -c` will be ran. If config6 is added to your backup then it will be copied to the filesystem as a real file and will not be changed unless the user runs `dot -c`. This is also true is config6 is a symlink to a file besides itself or the file in the extension.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard