【问题标题】:Instaling composer for laravel framework为 laravel 框架安装作曲家
【发布时间】:2015-01-23 07:22:52
【问题描述】:

我在为 laravel 框架安装 composer 时遇到问题:

我有这个错误:

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

我尝试了我在网上找到的所有内容 - 更改 php.ini,通过 CMD 安装,但没有任何效果...

我真的不明白这里有什么问题。请帮忙。

这是我尝试的图片:

【问题讨论】:

  • 您是否编辑了位于您的 php.exe 所在位置的 php.ini?
  • php -i | grep Configuration 会告诉你命令行 PHP 使用的加载配置文件的位置
  • 我会尝试编辑 php.ini 现在 php.exe 所在的位置
  • @jrenk 非常感谢,我花了一整天来查看错误在哪里
  • 现在我无法安装 laravel:i.imgur.com/hCcjKkk.png - 说安装失败

标签: php laravel wamp composer-php


【解决方案1】:

您的 PHP 版本错误。

就我个人而言,我不会费心去修复它。使用Homestead 创建一个虚拟ubuntu 实例。一切都将在几分钟内启动并运行

【讨论】:

    猜你喜欢
    • 2014-03-04
    • 2013-07-19
    • 2017-05-22
    • 2017-02-14
    • 1970-01-01
    • 1970-01-01
    • 2013-12-25
    • 2018-07-19
    • 2013-07-10
    相关资源
    最近更新 更多