简体   繁体   English

通过composer安装Laravel会产生错误

[英]Installing Laravel through composer generates error

When trying to install Laravel using the terminal command composer create-project laravel/laravel test_project I get the following error: 当尝试使用终端命令composer create-project laravel/laravel test_project安装Laravel时,出现以下错误:

[Symfony\Component\Process\Exception\RuntimeException]  
  The process has been signaled with signal "11". 

I've googled and although one or two others have reported the problem, no one has a solution. 我已经用Google搜索过,尽管还有一两个人报告了该问题,但是没有人有解决方案。 Any help greatly appreciated! 任何帮助,不胜感激!

When installing Laravel through Composer, I ran into this problem because Symfony took far too long to install -and thus resulted in a runtime exception . 通过Composer安装Laravel时,我遇到了这个问题,因为Symfony花费的时间太长,无法安装-从而导致runtime exception

Although not a direct solution to your problem, I will offer an alternative route for installing Laravel -via download. 尽管这不是直接解决您的问题的方法,但我将提供另一种安装Laravel的途径-通过下载。 This is, of course, assuming you have Composer globally installed on your System: 当然,这是假设您在系统上全局安装了Composer

  1. Grab yourself the latest copy of Laravel 4 Framework. 获取最新版本的Laravel 4 Framework。
  2. Extract zip to your project folder (ie /var/www/new_project/ folder). 将zip解压缩到您的项目文件夹(即/ var / www / new_project /文件夹)。
  3. Run composer install or php composer.phar install -this will install Laravel 4 and its dependencies which include Symfony . 运行composer installphp composer.phar install install-这将安装Laravel 4及其依赖项,其中包括Symfony
  4. Lastly, make sure your app/storage has the proper file permission (ie chmod -R 777 /var/www/new_project/app/storage ) 最后,确保您的app/storage具有适当的文件许可权(即chmod -R 777 /var/www/new_project/app/storage

This will install Laravel 4 freshly on your system. 这将在您的系统上全新安装Laravel 4。 Using this alternate route may prove to be faster than installing directly from composer. 使用这种替代方法可能比直接从Composer安装更快。 For some odd reason, composer and laravel take an extraordinarily long time to install -- and if too long -- could result in a runtime exception. 出于某种奇怪的原因,作曲家和laravel需要花费非常长的时间来安装,如果安装时间太长,则可能导致运行时异常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM