Skip to content

Instantly share code, notes, and snippets.

@apinstein
Created January 8, 2013 02:13
Show Gist options
  • Save apinstein/4480477 to your computer and use it in GitHub Desktop.
Save apinstein/4480477 to your computer and use it in GitHub Desktop.
How to compile custom binary executables for heroku cedar stack. This is example is for ImageMagick.
# Custom ImageMagick build for Heroku via Vulcan
vulcan create vulcan-builder
curl -O http://www.imagemagick.org/download/legacy/ImageMagick-6.7.4-10.tar.gz
tar zxvf ImageMagick-6.7.4-10.tar.gz
vulcan build -v -s ./ImageMagick-6.7.4-10 -c "./configure --prefix /app/vendor/ImageMagick-6.7.4-10 '--disable-shared' '--with-quantum-depth=8' '--with-lcms' '--with-gslib' --'with-fontconfig' && make install" -p /app/vendor/ImageMagick-6.7.4-10
# ==> downloads output to /tmp/ImageMagick-6.7.tgz
cd /path/to/project
mkdir -p vendor/ImageMagick/bin
cd mkdir -p vendor/ImageMagick
tar -zxf /tmp/ImageMagick-6.7.tgz `tar -ztf /tmp/ImageMagick-6.7.tgz | grep "^bin/"`
heroku run './vendor/ImageMagick/bin/convert --version'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment