相关疑难解决方法(0)

Composer安装错误 - 实际启用时需要ext_curl

我正在尝试使用Composer安装Facebook PHP SDK.这就是我得到的

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

    Problem 1
        - Installation request for facebook/php-sdk dev-master -> satisfiable by facebook/php-sdk[dev-master].
        - facebook/php-sdk dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Run Code Online (Sandbox Code Playgroud)

问题是,我启用了curl扩展(在php.ini中取消注释).当我跑步时phpinfo(),它表示它已启用.我只知道当我跑步时$ php -m,"卷曲"线丢失但我不知道该怎么办.

我在Win8上运行2.4,我在cmd.exe中运行composer.

php windows curl facebook-php-sdk composer-php

157
推荐指数
8
解决办法
16万
查看次数

包php5没有安装候选(Ubuntu 16.04)

当我尝试使用以下代码在Ubuntu 16.04中安装php5时:

sudo apt-get install php5 php5-mcrypt
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

我尝试过重新安装,但它没有帮助.

我将15.10 Ubuntu更新为16.04后遇到了所有这个错误

php ubuntu apt dpkg ubuntu-16.04

83
推荐指数
3
解决办法
27万
查看次数

Laravel Production问题 - 使用Laravel 4.1.x更新作曲家

到目前为止,我在部署laravel项目时没有遇到任何问题.我已经为这个项目部署了差不多一年的时间.但是出现了一些新的bug.

首先.我无法运行composer update,因为它说出了这个错误.

composer update
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Updating dependencies (including require-dev)



  [RuntimeException]
  Could not load package classpreloader/classpreloader in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ^1.2.2: Invalid
   version string "^1.2.2"






  [UnexpectedValueException]
  Could not parse version constraint ^1.2.2: Invalid version string "^1.2.2"



update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] …
Run Code Online (Sandbox Code Playgroud)

php laravel composer-php

16
推荐指数
2
解决办法
3万
查看次数