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

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

问题描述

我已经为此苦苦挣扎了大约 20 个小时,我无法继续前进.我对所有的搜索感到绝望和疲惫.不知道我应该在哪里尝试找到解决方案.一开始我可能应该说我不是终端/作曲家/git用户.我正在尝试安装 laravel 4 框架.我一直在谷歌上搜索并找到了一些教程,其中一些甚至在 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 包.我已经安装了 composer 我还在我的本地机器上安装了 git.我取消了 php.ini "extension=php_openssl.dll" 的注释.就像我说的我不经常使用终端,但我设法将 cd 放入我提取的 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.

  [ComposerDownloaderTransportException]
  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 public 时,我得到了这个错误.

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

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

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

我相信这是因为它只是不完整,因为作曲家没有下载所有依赖项.如果您需要更多信息,我不知道该说什么就这么说吧.感谢您的任何帮助.最后,我很抱歉我的英语很差,这是我的第二语言.

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 >我的电脑 >属性 >高级 >环境变量 >双击系统变量中的路径>现在复制git安装程序的路径地址(通常在windows中默认地址是C:Program FilesGitin)之后,它更进一步,询问我的 github acc,因为它说它是私人仓库.所以我今天创建了一个并使用它.然后它会抛出这个错误.

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 FilesGitin) 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.

      [ComposerDownloaderTransportException]
  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 文件夹"中,与 Apache 服务器使用的 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 >本地主机>php>bin 文件(在我的例子中是 C:localhostinphpphp5.3.13)

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

并启用 extension=php_openssl.dll

那么它应该可以工作

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

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