laravel 4安装问题 [英] laravel 4 installation problems

查看:440
本文介绍了laravel 4安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力与这个约20小时,我不能向前迈进。我从所有的寻找无望和疲惫。不知道其他地方我应该尝试找到解决方案。在开始我应该可以说,我不是一个终端/作曲家/ Git用户。我试图安装laravel 4框架。我已经google了很多,发现一些教程,一些甚至在这里stackoverflow,但注意到真的帮助我。

i have been struggling with this for about 20 hours now and i cannot move forward. I am hopeless and tired from all that searching. Dont know where else should i try to find the solution. At the begining i should probably say that i am not a terminal/composer/git user. I am trying to install the laravel 4 framework. I have been googling a lot and found some tutorials, some of the even here on stackoverflow but noting really helped me.

我有基本的github主zip包提取在我的localhost。我已经安装了composer我也安装了git在我的本地机器。我已经取消注释php.ini extension = php_openssl.dll
像我说的我不使用终端regulary,但我管理光盘进入我提取的laravel文件夹,我已经运行 composer install 命令开始安装。但是很快就会报错。

I have the basic github master zip package extracted at my localhost. I have installed composer i have also installed git on my local machine. I have uncommented the php.ini "extension=php_openssl.dll". Like i said i dont use terminal regulary but i manage to cd into my extracted laravel folder and i have run "composer install" command which starts the installation. But soon i get error.

  [Composer\Downloader\TransportException]
  The "http://nodeload.github.com/doctrine/lexer/zip/bc0e1f0cc285127a38c6c8ea
  88bc5dba2fd53e94" file could not be downloaded: failed to open stream: Unab
  le to find the socket transport "ssl" - did you forget to enable it when yo
  u configured PHP?

这应该由php.ini文件中的更改修复。当然,我重新启动服务器,但我仍然得到这个错误。我还重新安装wamp到更新的版本所以现在我使用PHP 5.4.3

Which should be fixed by that change i made in php.ini file. Of course i have restart the server but i still get this error. I have also reinstalled wamp to the newer version so right now i am using php 5.4.3

当我试图打开我的laravel公共,我得到这个错误。 >

When i try to open my laravel public i get this error.

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: require(C:\wamp\www\laravel\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\wamp\www\laravel\bootstrap\autoload.php on line 17
Call Stack
#   Time    Memory  Function    Location
1   0.0005  247400  {main}( )   ..\index.php:0
2   0.0011  252392  require( 'C:\wamp\www\laravel\bootstrap\autoload.php' ) ..\index.php:21

( ! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: require(): Failed opening required 'C:\wamp\www\laravel\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in C:\wamp\www\laravel\bootstrap\autoload.php on line 17
Call Stack
#   Time    Memory  Function    Location
1   0.0005  247400  {main}( )   ..\index.php:0
2   0.0011  252392  require( 'C:\wamp\www\laravel\bootstrap\autoload.php' ) ..\index.php:21

这是我相信beacuse它只是不完整,因为作曲家没有下载所有的依赖。我不知道什么esle说,如果你需要更多的信息,只是这样说。谢谢任何帮助。最后,我很抱歉我的英语是我的第二语言。

Which is i believe beacuse its just not complete since composer does not downloaded all the dependencies. I dont know what esle to say if you need more info just say so. Thank you for any help. And at last i am sorry for my poor english its my secondary language.

更新:

所以我正在搜索一些,发现本文。我缺少这一步: START> MY COMPUTER>属性> ADVANCED>环境变量>双击来自SYSTEM VARIABLES的PATH>现在复制git安装程序的路径地址(通常在Windows中它的默认地址是C:\Program Files\Git\bin)
之后它进一步,要求我的github acc因为它说它的私人depo。所以我今天创建了一个,并使用它。

So i was searching some more and found this article. I was missing this step: START > MY COMPUTER > PROPERTIES > ADVANCED > ENVIRONMENT VARIABLES > double click on PATH from SYSTEM VARIABLES > now copy the path address of git installer (normally in windows it’s by default address is C:\Program Files\Git\bin) After that it gone further, asked for my github acc because it says that its private depo. So i have created one today and used it. Then it throws me this error.

      [Composer\Downloader\TransportException]
  The "https://api.github.com/authorizations" file could not be downloaded: U
  nable to find the wrapper "https" - did you forget to enable it when you co
  nfigured PHP?
  failed to open stream: Invalid argument



install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-c
ustom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--opt
imize-autoloader]

我的php.ini openssl行被取消注释,当我看看phpinfo我可以看到它的加载。 openssl
OpenSSL支持启用
OpenSSL库版本OpenSSL 1.0.1c 2012年5月10日
OpenSSL标题版本OpenSSL 1.0.1c 2012年5月10日

My php.ini openssl line is uncommented and when i look at phpinfo i can see that its loaded.openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 1.0.1c 10 May 2012 OpenSSL Header Version OpenSSL 1.0.1c 10 May 2012

推荐答案

WAMP的php.ini文件的问题

The issue with the php.ini file of WAMP

命令行使用的php.ini位于PHP文件夹中,并且 NOT

the php.ini used by the command line is located in the "PHP folder" and is NOT the same one used by the Apache server.

WAMP>查找php.ini。 localhost> php> bin 文件(在我的例子中为C:\localhost\bin\php\php5.3.13)

Find the php.ini from the WAMP > localhost > php > bin file (In my case C:\localhost\bin\php\php5.3.13)

c $ c> extension = php_openssl.dll

And enable the extension=php_openssl.dll

然后它应该工作

这篇关于laravel 4安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆