Skip to content

Instantly share code, notes, and snippets.

@AlecYawata
Created November 23, 2016 00:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlecYawata/870c5f15757ebb3b35702d1e34c222e4 to your computer and use it in GitHub Desktop.
Save AlecYawata/870c5f15757ebb3b35702d1e34c222e4 to your computer and use it in GitHub Desktop.
Lambdaで日本語が表示できるPhantomJSを使うために必要な/tmpで動くfontconfigをec2のami-383c1956でビルドする手順
sudo yum install -y libtool autoconf libxml2-devel libxslt-devel
sudo easy_install lxml
sudo yum install gperf freetype-devel python-lxml
git clone http://anongit.freedesktop.org/git/fontconfig
cd fontconfig
./autogen.sh --sysconfdir=/tmp/fontconfig/etc --prefix=/tmp/fontconfig/usr --mandir=/tmp/fontconfig/usr/share/man --enable-libxml2
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment