Graphicsmagick not working in Elastic Beanstalk with nodejs and S3

核能气质少年 提交于 2019-12-01 08:13:14

How are you installing GraphicsMagick on your EC2 instance in ElasticBeanstalk? Are you using a custom AMI? The default AMI (at least the ones I've used) didn't have GraphicsMagick, I don't know about ImageMagick though.

You can use container commands to install packages with yum. I used the one below on a project where I needed GraphicsMagick.

Create a folder at the root of your project with the name ".ebextensions." Inside of that folder, create a file called "package.config" with the following contents:

commands:
  01-command:
    command: yum install -y --enablerepo=epel GraphicsMagick

This will install it when the instance is created. I have a feeling this should resolve your issue, if not you may want to use command line options for yum to use the same version or install the delegates as well:

commands:
  01-command:
    command: yum install -y --enablerepo=epel GraphicsMagick
  02-command:
    command: yum install -y --enablerepo=epel GraphicsMagick-devel
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!