Last active
September 4, 2023 12:20
-
-
Save Abdoulrasheed/039b1f4afd4268a8832d8066881d7b23 to your computer and use it in GitHub Desktop.
Install WeasyPrint on Amazon Linux and ElasticBeanstalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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