在 xampp 窗口中安装 Yaml


Installing Yaml in xampp windows

>我正在尝试在XAMPP windows 64 bit中安装 YAML

  1. 已从 http://pecl.php.net/package/yaml/1.1.1/windows 下载.dll文件

  2. 在 PHP ini 中启用扩展,如下所示

    扩展名=php_yaml.dll

  3. 重新启动了阿帕奇

  4. 收到以下错误 php 启动无法加载动态库

"''xampp''php''ext''php_yaml.dll"

这是正确的方法还是我错过了任何东西?请帮助我

经过大量研究,我终于找到了解决方案

  1. 转到 https://github.com/LegendOfMCPE/LoM-CMS/wiki/How-to-Install-LibYAML

  2. 请参阅以下链接 对于窗口http://search.4shared.com/postDownload/ComqwjFvce/php_yaml-102-dev-54-vc9-x86.html

  3. 下载该压缩文件

  4. 解压缩它并将 yaml.dll 放入 xampp 文件夹中

  5. php_yaml.dll 在 xampp/php/ext/文件夹中

  6. 在 php 中添加 extension=php_yaml.dll.ini 并重新启动 apache。如果可能,请重新启动系统

  7. 在 php 文件中执行以下行以检查是否加载了扩展名

    如果 (extension_loaded(yaml)) 回显"yaml 加载:)"; else
    呼应":(出了点问题";

虽然我检查了所有步骤,但我错过了一点:将PHP添加到PATH。因为在 php 中.ini extension_dir作为相对路径作为示例给出extension_dir=ext.

为了使操作系统找到该路径,必须将PHP的根路径提供给操作系统。在Windows中,它是通过Right click to This PC -> Features -> Advanced System Settings -> Enviroment Variables