dsh84723 2015-06-03 09:59
浏览 56

Symfony 2-看起来您的系统不支持相对符号链接

I'm new in symfony 2. I just started install symfony 2.7 on windows 7. I downloaded Composer and run as in http://symfony.com/doc/current/book/installation.html

But when I run command,

$ composer create-project symfony/framework-standard-edition my_project_name

and set all parametters like database_host, database_name,.... as default and hit enter some error happened:

    Trying to install assets as symbolic links.
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
It looks like your system doesn't support relative symbolic links, so the assets
 were installed by using absolute symbolic links.
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodi
stribution
It looks like your system doesn't support relative symbolic links, so the assets
 were installed by using absolute symbolic links.

My Symfony is still running but there are many errors. there are many file is missing in my 'my_project_name\src\AppBundle' folder than folder in tutorial. And many error 'No route found for "GET /" 'when run '127.0.0.1:8000/app_dev.php/'; in browser Can anyone help me fix this My php version is 5.5.12

  • 写回答

2条回答 默认 最新

  • dsfdsf46465 2015-06-03 10:07
    关注

    You need to run composer as administrator (of Windows). Then it will create symbolic links.

    Also you can change method for default assets management after any composer update or composer install by changing in composer.json next line:

    "symfony-assets-install": "relative",
    

    to this:

    "symfony-assets-install": "symlink",
    

    or this:

    "symfony-assets-install": "hard-copy",
    
    评论

报告相同问题?

悬赏问题

  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题