不要让GraphViz和phpDocumentor正常工作 [英] Don't get GraphViz and phpDocumentor to work

查看:107
本文介绍了不要让GraphViz和phpDocumentor正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用phpDocumentor.phar(v2.)在本地XAMPP主机(在Windows 7上)上创建php文档.它给我(解析所有文件后)此错误: 找不到GraphViz软件包的dot命令. GraphViz是否正确安装并存在于您的路径中?

I'm trying to create a php documentation on my local XAMPP host (on Windows 7) with phpDocumentor.phar (v2.). It gives me (after parsing all the files) this error: Unable to find the dot command of the GraphViz package. Is GraphViz correctly installed and present in your path?

我搜索了很多,但没有任何帮助. 路径"是什么意思?如果我在任何位置打开命令框,都可以启动dot.exe(该文件没有输出,但有等待提示).在我的环境路径变量中,添加了bin文件夹. GraphViz已正确安装在程序文件"中,并且可以独立运行.

I searched a lot, but nothing helps. What does 'path' means? If I open a command box at any location I can start the dot.exe (which gives me no output but waiting prompt). In my environment path variable the bin folders is added. GraphViz is installed correct in Program Files and runs standalone.

我该怎么办或检查?

推荐答案

为了使GraphViz在基于Windows的phpdoc安装中正常运行,只需将GraphViz程序目录(c:\some\path\graphviz\release\bin)放在Windows Path系统变量中

In order to get GraphViz running properly with a Windows based phpdoc installation, just put the GraphViz program directory (c:\some\path\graphviz\release\bin) to the Windows Path system variable.

为此,请执行以下步骤(Win7,如果这不适用于您的情况,请提供您的操作系统版本):

In order to do this, follow these steps (Win7, please provide your OS version if this doesn't apply to your situation):

  1. 在桌面上,右键单击My Computer,然后单击Properties.
  2. System Properties窗口中,单击Advanced选项卡.
  3. Advanced部分中,单击Environment Variables按钮.
  4. Environment Variables窗口中,突出显示Systems Variable部分中的Path变量,然后单击编辑"按钮.
  1. From the desktop, right-click My Computer and click Properties.
  2. In the System Properties window, click on the Advanced tab.
  3. In the Advanced section, click the Environment Variables button.
  4. In the Environment Variables window, highlight the Path variable in the Systems Variable section and click the Edit button.

不同目录之间用分号分隔:

Different directories are separated with a semicolon:

C:\Program Files;C:\Winnt;C:\Winnt\System32

在您的环境中,它看起来很可能会有所不同,因此请以此为例.像这样在最后添加GraphViz Path:

It will most likely look a bit different in your enviroment, so please just take this for an example. Just add the GraphViz Path at the end like this:

C:\Program Files;C:\Winnt;C:\Winnt\System32;C:\somefolder\graphviz\release\bin

我不太确定更改此值后是否必须重新启动系统.在Win2k的过去,您必须执行此操作,而我只是不知道这是否仍然适用于现代Windows版本.它肯定不会受伤!

I'm not too sure if you have to reboot your system after changing this value. You had to do this in the old days of Win2k, and I just don't know if this still applies to modern Windows versions. It surely doesn't hurt!

此后,phpdoc应该能够找到dot命令.

After this, phpdoc should be able to find the dot command.

这篇关于不要让GraphViz和phpDocumentor正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆