Heroku - 如何在heroku php应用程序上启用gd? [英] Heroku - how to enable gd on heroku php application?

查看:134
本文介绍了Heroku - 如何在heroku php应用程序上启用gd?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Heroku说:


以下内置扩展已经构建为共享,可以通过composer.json(internal标识符名称在括号中给出):

但它没有举例,我尝试了下面的composer.json:

{
require:{
gd:*
}
}
$ b

但是当我 git push heroku master ,我得到:


我的composer.json:

{
require:{
gd :*
}
}


但当我 git push heroku master 时,我得到:

  --- - >安装依赖项... 
编写器版本1.0.0-alpha9-19-g10401d5 2014-12-09 11:32:02
使用包信息加载composer存储库
安装依赖项
您的需求无法解析为可安装的一组软件包。

问题1
- 在任何版本中都找不到所需的软件包gd,软件包名称中可能有拼写错误。

潜在原因:
- 软件包名称中的拼写错误
- 根据最低稳定性设置,该软件包不能用于足够稳定的版本
请参阅< HTTPS://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion>更多细节。

阅读< http://getcomposer.org/doc/articles/troubleshooting.md>进一步的常见问题。

!推送被拒绝,未能编译PHP应用程序

如何在heroku上启用gd?

解决方案

试试看:

  {
require:{
ext-gd:*
}
}

请参阅使用可选扩展程序


Heroku said:

The following built-in extensions have been built "shared" and can be enabled through composer.json (internal identifier names given in parentheses):

But it doesn't give an example, I tried with the following composer.json: { "require": { "gd": "*" } }

But when I git push heroku master, I get:

My composer.json: { "require": { "gd": "*" } }

But when I git push heroku master, I get:

-----> Installing dependencies...
       Composer version 1.0.0-alpha9-19-g10401d5 2014-12-09 11:32:02
       Loading composer repositories with package information
       Installing dependencies
       Your requirements could not be resolved to an installable set of packages.

         Problem 1
           - The requested package gd could not be found in any version, there may be a typo     in the package name.

       Potential causes:
        - A typo in the package name
        - The package is not available in a stable-enough version according to your minimum-    stability setting
          see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

       Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

 !     Push rejected, failed to compile PHP app

How can I enable gd on heroku???

解决方案

Try it with:

{
    "require": {
        "ext-gd": "*"
    }
}

see here using-optional-extensions

这篇关于Heroku - 如何在heroku php应用程序上启用gd?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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