gpt4 book ai didi

graphviz - PHPDocumentor - Graphviz 'dot' 命令未找到

转载 作者:行者123 更新时间:2023-12-04 18:04:44 25 4
gpt4 key购买 nike

我正在尝试让 PHPDocumentor 在本地 XAMPP 安装上运行。
可悲的是,我很难使用包管理器来做到这一点。
首先是关于包管理器的一些基本问题:

  • 我怎么知道在哪里安装软件包?例如:我使用 Composer 安装了 PHPDocumentor。我去我的 C:\xampp\htdocs\并运行一个命令:

    composer require "phpdocumentor/phpdocumentor:2.*"


  • 这会在 xampp\htdocs\的“vendor”文件夹中安装 phpdocumentor
  • 这是安装所有这些软件包的正确路径还是有一个默认目录来安装它?
  • 如果我想卸载软件包,我是否只需删除“供应商”目录?
  • 安装后我运行 PHPdocumentor 并得到一个错误:

  • Unable to find the dot command of the GraphViz package. Is GraphViz correctly installed and present in your path?



    为了解决这个问题,我尝试了以下方法:

    当我的指针在 htdocs 文件夹中并指向文件夹的路径时安装了包 graph/graphviz:
    C:\xampp\htdocs\vendor\graph\graphviz
    ...graph\graphviz\src
    ...graph\graphviz\tests

    以上都没有解决问题。
    根据这个 link我必须将\graphiz\bin 目录添加到路径中,但是没有“bin”目录?

    谁能帮我解决这个问题?

    此致,
    阿巴约布

    最佳答案

    Unable to find the dot command of the GraphViz package. Is GraphViz correctly installed and present in your path?



    解决此错误的步骤是:
  • https://graphviz.gitlab.io/_pages/Download/Download_windows.html 下载 zip
  • 提取到 c:\some\where\graphviz
  • 添加 c:\some\where\graphviz\bin到您的环境变量 PATH
  • 运行 phpdoc

  • I don't like to have 184MB of usefull stuff on my PC just to run the 'dot' command?



    是的,它有很多东西。一个更轻量级的解决方案会很好。

    关于graphviz - PHPDocumentor - Graphviz 'dot' 命令未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32439533/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com