dongpao1926 2014-03-19 16:17
浏览 53
已采纳

如何手动在symfony2中安装资产?

When I try to install assets using this command: assets:install web --symlink

I get this expcention:

[InvalidArgumentException]
The symlink() function is not available on your system. You need to install
the assets without the --symlink option.

That is because Im using windows XP. So I tried to solve this installing Link Shell Extension: http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html#introduction

and now the problem is that I do not wich files need to be a symbolic link.

I tried doing the folder "MyBundle/resources/public" a symbolic to the folder "web" of my project, and it does not work.

  • 写回答

1条回答 默认 最新

  • douxia2137 2014-03-19 16:34
    关注

    The windows system does not support symbolic links. It copy / paste files instead. So you can only used this command :

    assets:install web 
    

    or

    assets:install 
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog