【问题标题】:Error installing Libra CMS安装 Libra CMS 时出错
【发布时间】:2013-01-30 22:20:24
【问题描述】:

我正在按照此处列出的安装步骤进行操作:

https://bitbucket.org/libracms/libra-cms

但我在第 3 步得到以下错误:

symlink(): Could not fetch file information(error 3)

关于如何解决它的任何想法?

我使用的是 Windows 7。

这是第三步

php composer.phar update

这是它生成的输出:

Loading composer repositories with package information
Updating dependencies
  - Installing libra/jquery-assets (dev-default tip)
    Cloning tip

Script LibraAssetsInstaller\Installer::postPackageInstall handling the post-pack
age-install event terminated with an exception



  [ErrorException]
  symlink(): Could not fetch file information(error 3)



update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-custom-instal
lers] [--no-scripts] [--no-progress] [-v|--verbose] [-o|--optimize-autoloader] [
packages1] ... [packagesN]

【问题讨论】:

  • 我会注意到,虽然@Sam 删除了 zend-framework2 标签,但这个 CMS ZF2 cms;尽管如此,该错误看起来像是作曲家错误。请提供更多信息。错误必须说得更多,还是有更多上下文?
  • @David 我同意,事实上我实际上是通过搜索使用 ZF2 编写的 CSM 找到了 Libra,所以我将标签添加回来。我修改了添加 Composer 的完整输出的问题。

标签: zend-framework2 symlink composer-php


【解决方案1】:

LibraAssetsInstaller\Installer::postPackageInstall 的调用失败,因为postPackageInstall 包含function calls,由于多种原因可能无法在Windows 上运行:heretwo

也就是说,postPackageInstall 失败了 here specifically,可能是因为对 symlink 的调用中的路径与 Windows 不兼容。

要使调用与 Windows 互操作,路径字符串需要修改为至少使用类似 DIRECTORY_SEPARATOR 系统常量 mentioned here 的内容,但可能还需要进行其他修改。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-29
    • 1970-01-01
    • 1970-01-01
    • 2022-01-07
    • 1970-01-01
    相关资源
    最近更新 更多