Hi,
I have googled and read everything I can regarding the tools and don't understand which download I need from graphviz.org and where they should be installed. On my host or local computer?

These are the errors I am getting:

* Graphviz encountered an error while rendering to format png:
sh: dot: command not found
* Graphviz encountered an error while rendering to format jpg:
sh: dot: command not found
* Graphviz encountered an error while rendering to format gif:
sh: dot: command not found
* Graphviz encountered an error while rendering to format svg:
sh: dot: command not found

I understand that I need the tools, but don't know what to download and where to install them. I have looked and looked for documentation on the graphviz.org site but can't find any.

Thanks

Comments

kbellcpa’s picture

If it helps, I found out that my host uses a Centos Linux server.

dman’s picture

The graphviz library has to be installed on the machine that is expected to do the processing. If you want your website on the host to work with it, the "dot" command must be installed on the host.
If you are developing locally, the executables must also be installed locally.

The libraries and executables usually have to be installed by the host administrator. If they have not and will not do this for you, you can't use this feature.

With a certain level of shell access to the server, you can theoretically build the code in your own account (with ./configure --prefix=$HOME etc) , but it's really quite complicated for first-time users, and would be frustrating without a lot of background. It is much easier if the sysadmin will do it for you.

For more information, see the documentation for your OS and build tools (like "make"). It's tricky if you've not done it before.

kbellcpa’s picture

I was able to clear this error: sh: dot: command not found by putting into the command line the same destination as I did for the pear package.

Now, I am still getting this error: Graphviz encountered an error while rendering to format png: sh: /home/familyt9/php/dot: No such file or directory.

My overall objective is to build a dynamic pedigree chart for each of my nodes. Each node is a person with nodereference links. After installing graphviz, I now have a new tab on my node's called, "nodereference graph," however it has the above error on it when you click on it.

Will I be able to do what I want to do? Maybe I am spending all this time on something that won't even work.

Can you provide a link or tell me the folder to download that I need to give my host? I did download from www.graphviz.org a folder graphviz-2.26.3.tar.gz under the current stable release. Is this correct? Is this what I need to give to my host?

Thanks

kbellcpa’s picture

I should have been more specific. I want to know where the libraries are.

Thanks

dman’s picture

/home/familyt9/php/dot is apparently not the right path

kbellcpa’s picture

I think that the problem stems from a miscommunication. I have successfully installed the image_graphviz package using pear. I have successfully pointed my Path of PEAR::Image_GraphViz package: to the correct path and image_graphviz is installed correctly and my status report says that it is found.

Does this package include the libraries or do I have to get them separately? If I have to get the libraries separately, can you tell me where? I have looked on graphviz.org and there are some many different things to download, I have no idea what I need.

Maybe I already have the liabraries and I don't know it.

I was under the impression that I was receiving the error because I don't have the libraries.

kbellcpa’s picture

It looks like I can install/upload directly to my host server.

If you could tell me what to do to make this error go away:

Graphviz encountered an error while rendering to format png:
sh: dot: command not found

On the input/configure screen, the commands are located at:

Specify the base path of the Graphviz commands (`dot`, `neato`, etc). Leave blank if these commands are to be found on the system PATH which, on this server, is set to:

/bin:/usr/bin

I can upload anything I want to the usr/bin folder.

Are the commands something I need to upload and if so, please let me know where they are.

dman’s picture

If, on your server, you can log in and type
dot -?
And see something like

Usage: dot [-Vv?] [-(GNE)name=val] [-(KTlso)<val>] <dot files>

in response, then the required library is indeed installed.

If that doesn't work - and you instead get the message

-bash: dot: command not found

then the required command is not available. That's what "command not found" means!

If you entered /home/familyt9/php/dot and still got "command not found", that's not the right path.

If you have actually installed graphviz on the system, then just typing 'dot' would work. If it doesn't, then it isn't there.

If you've installed it in a strange place, then you can enter the path directly - like the instructions say to.

But it really sounds like you have not got the graphviz package installed.

The download page is here http://www.graphviz.org/Download.php
Just choose the most recent version (highest version number) for your system!

If you prefer to use the tgz version, The instructions for building it on your system are still here http://www.graphviz.org/doc/build.html

... but it's really quite complicated for first-time users, and would be frustrating without a lot of background. It is much easier if the sysadmin will do it for you.

You need to get familiar with 50 other things first - like the commandline, make, and reading system documentation. It doesn't even sound like you are using a terminal yet.

chien_fu’s picture

On the download page for Ubuntu there are a bazillion links to download seemingly the same version of the source:

graphviz_2.26.3-1_i386.deb
libgraphviz-dev_2.26.3-1_i386.deb
libgraphviz4_2.26.3-1_i386.deb
libgv-guile_2.26.3-1_i386.deb
libgv-lua_2.26.3-1_i386.deb
libgv-ocaml_2.26.3-1_i386.deb
libgv-perl_2.26.3-1_i386.deb
libgv-php5_2.26.3-1_i386.deb
libgv-python_2.26.3-1_i386.deb
libgv-ruby_2.26.3-1_i386.deb
libgv-tcl_2.26.3-1_i386.deb
graphviz-dev_2.26.3-1_all.deb
graphviz-doc_2.26.3-1_all.deb

Do I need all of these?? I used command line to install via "sudo apt-get install graphviz". I think it might have pulled in a lot of these things.. but I'm not sure and don't know how to tell.

My status report indicates: "sh: modules/graphviz_filter/dot: not found"
How do I ensure this "dot" library is installed?

infojunkie’s picture

Re #9: Just make sure that on the Ubuntu console, typing:

dot -V

gives you something like:

dot - Graphviz version 2.20.2 (Wed Sep 16 11:12:11 UTC 2009)

To make sure Drupal is picking it up, go to admin/reports/status and check the Graphviz tools key: it should report the same.

dman’s picture

On that list there is only one file that is called graphviz.{version}-{arch}.deb
That would be the one.

But if you are on debian - then apt-get would do it for you. What you typed should have worked.

If, on your server, you can log in and type
dot -?
And see something like
Usage: dot [-Vv?] [-(GNE)name=val] [-(KTlso)]
in response, then the required library is indeed installed.

If your status report - not the commandline response - says it has the wrong path, then you should enter the right path into the settings.
which dot will tell you what the right path is.

chien_fu’s picture

Ah hah! That "which dot" command was what I've been looking for. I hadn't come across that and I think that is where the problem lies.. However now I just need a command that will allow me to change "modules/graphviz_filter/dot" (which is not found) to "usr/bin/dot" (which is what returns when I type which dot)
I'm having trouble finding relevant commands.. When I type "dot -?" I get a few things, but none of the commands seem to be relevant to what I'm trying to do. I also tried "man dot" and got a few more bits of information, but it all looks pretty specific to setting up the graphviz graphs themselves, and not configuring the setup. I tried "dot -c" (configure plugins) but it doesn't seem to do anything.

Can you advise me on how to change the dot directory to "usr/bin/dot"?

chien_fu’s picture

WOOHOOO!! got it! I was looking too hard, the path specification I was looking for was in the configure tab of the graphviz input filter.
Very excited to have graphviz (seemingly) working after several weeks of struggle!!!
Thanks guys!

dman’s picture

Yes, the configure tab of the filter is (I think) a little bit far away from the normal places you'd expect to go looking for it :-/
But there it is.

infojunkie’s picture

Status: Active » Fixed

Thanks dman for your support.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.