Skip to content

Instantly share code, notes, and snippets.

@Abdoulrasheed
Last active September 4, 2023 12:20
Show Gist options
  • Save Abdoulrasheed/039b1f4afd4268a8832d8066881d7b23 to your computer and use it in GitHub Desktop.
Save Abdoulrasheed/039b1f4afd4268a8832d8066881d7b23 to your computer and use it in GitHub Desktop.
Install WeasyPrint on Amazon Linux and ElasticBeanstalk
ELASTICBEANSTALK
create weasyprint.config inside .ebextensions and add the following inside
packages:
yum:
cairo: []
cairo-devel: []
giflib-devel: []
libjpeg-turbo-devel: []
libpng-devel: []
libpng: []
pango: []
pango-devel: []
libffi-devel: []
// OR
Amazon Linux
install cairo:
sudo yum install cairo-devel libjpeg-turbo-devel giflib-devel -y
install pango:
wget http://ftp.gnome.org/pub/GNOME/sources/pango/0.20/pango-0.20.tar.gz
tar -zxf pango-0.20.tar.gz
cd pango-0.20
./configure
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment