1

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

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

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

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

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

我在 Windows 7 上。

这是第 3 步

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]
4

1 回答 1

1

调用LibraAssetsInstaller\Installer::postPackageInstall失败是因为postPackageInstall包含的函数调用可能由于多种原因在 Windows 上不起作用:这里两个.

也就是说,这里特别postPackageInstall失败,可能是因为调用中的路径与Windows 不兼容。symlink

为了使调用与 Windows 互操作,路径字符串需要修改为至少使用类似于此处提到DIRECTORY_SEPARATOR的系统常量的内容,但也可能需要进行其他修改。

于 2013-01-31T21:40:31.137 回答