Created
September 29, 2018 05:35
-
-
Save brianfoody/c79e18b9221698719981680df82e6223 to your computer and use it in GitHub Desktop.
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
# ssh -i ./MY.pem ec2-user@ec2-99-999-999-999.ap-southeast-2.compute.amazonaws.com | |
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig | |
export PATH=/usr/bin:$PATH | |
# No c compiler error | |
# export LDFLAGS="-static -L/usr/lib64:/usr/lib" | |
export LDFLAGS=-L/usr/lib64:/usr/lib | |
export LD_LIBRARY_PATH=/usr/lib64:/usr/lib:/usr/lib/libharfbuzz.a | |
export CPPFLAGS=-I/usr/include | |
sudo yum-config-manager --enable epel | |
# sudo yum update -y | |
sudo yum install -y gcc gcc-c++ glib2-devel.x86_64 libxml2-devel.x86_64 libpng-devel.x86_64 \ | |
libjpeg-turbo-devel.x86_64 gobject-introspection.x86_64 gobject-introspection-devel.x86_64 | |
wget http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/libcroco-0.6.8.tar.xz | |
tar xvfJ libcroco-0.6.8.tar.xz | |
cd libcroco-0.6.8 | |
./configure --prefix=/usr --disable-shared --enable-static | |
make | |
sudo make install | |
cd .. | |
wget http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.28/gdk-pixbuf-2.28.2.tar.xz | |
tar xvfJ gdk-pixbuf-2.28.2.tar.xz | |
cd gdk-pixbuf-2.28.2 | |
./configure --prefix=/usr --without-libtiff --disable-shared --enable-static | |
make | |
sudo make install | |
cd .. | |
# wget https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.9.0.tar.bz2 | |
# tar -vxjf harfbuzz-1.9.0.tar.bz2 | |
# cd harfbuzz-1.9.0 | |
# ./configure --prefix=/usr --disable-shared --enable-static | |
# make | |
# sudo make install | |
# cd .. | |
sudo yum install -y pixman-devel.x86_64 harfbuzz-devel.x86_64 freetype-devel.x86_64 | |
wget wget http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.10.91.tar.gz | |
tar xvf fontconfig-2.10.91.tar.gz | |
cd fontconfig-2.10.91 | |
./configure --prefix=/usr --enable-libxml2 --enable-static | |
make | |
sudo make install | |
cd .. | |
wget http://cairographics.org/releases/cairo-1.12.14.tar.xz | |
tar xvfJ cairo-1.12.14.tar.xz | |
cd cairo-1.12.14 | |
./configure --prefix=/usr --enable-static --disable-shared | |
make | |
sudo make install | |
cd .. | |
wget http://ftp.gnome.org/pub/GNOME/sources/pango/1.34/pango-1.34.1.tar.xz | |
tar xvfJ pango-1.34.1.tar.xz | |
cd pango-1.34.1 | |
./configure --prefix=/usr --disable-shared --enable-static | |
make | |
sudo make install | |
cd .. | |
wget http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.40/librsvg-2.40.6.tar.xz | |
tar xvfJ librsvg-2.40.6.tar.xz | |
cd librsvg-2.40.6 | |
./configure --prefix=/usr --disable-shared --enable-static | |
make | |
sudo make install | |
cd .. | |
sudo ldconfig /usr/lib | |
# Download | |
# scp -i ./MY.pem ec2-user@ec2-99-999-999-999.ap-southeast-2.compute.amazonaws.com:/usr/bin/rsvg-convert /Users/brianfoody/apps/temp/rsvg-convert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately harfbuzz doesn't get included in made rsvg-convert lib and I get a harfbuzz.so.2 shared error