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
Comment #1
kbellcpa commentedIf it helps, I found out that my host uses a Centos Linux server.
Comment #2
dman commentedThe 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=$HOMEetc) , 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.
Comment #3
kbellcpa commentedI 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
Comment #4
kbellcpa commentedI should have been more specific. I want to know where the libraries are.
Thanks
Comment #5
dman commented/home/familyt9/php/dot is apparently not the right path
Comment #6
kbellcpa commentedI 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.
Comment #7
kbellcpa commentedIt 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.
Comment #8
dman commentedIf, on your server, you can log in and type
dot -?And see something like
in response, then the required library is indeed installed.
If that doesn't work - and you instead get the message
then the required command is not available. That's what "command not found" means!
If you entered
/home/familyt9/php/dotand 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
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.Comment #9
chien_fu commentedOn the download page for Ubuntu there are a bazillion links to download seemingly the same version of the source:
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?
Comment #10
infojunkieRe #9: Just make sure that on the Ubuntu console, typing:
gives you something like:
To make sure Drupal is picking it up, go to admin/reports/status and check the Graphviz tools key: it should report the same.
Comment #11
dman commentedOn that list there is only one file that is called
graphviz.{version}-{arch}.debThat 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 your status report - not the commandline response - says it has the wrong path, then you should enter the right path into the settings.
which dotwill tell you what the right path is.Comment #12
chien_fu commentedAh 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"?
Comment #13
chien_fu commentedWOOHOOO!! 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!
Comment #14
dman commentedYes, 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.
Comment #15
infojunkieThanks dman for your support.