Skip to content

Instantly share code, notes, and snippets.

@tuzz
Created August 15, 2012 00:13
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 tuzz/3354136 to your computer and use it in GitHub Desktop.
Save tuzz/3354136 to your computer and use it in GitHub Desktop.
Heroku Pygments fix
# Heroku doesn't get on too well with Pygments:
# LoadError: Could not open library '/usr/local/lib/libpython2.7.a': /usr/local/lib/libpython2.7.a: invalid ELF header
# To fix:
# Gemfile
gem 'rubypython', '=0.5.1'
# config/initializers/pygments.rb
RubyPython.configure :python_exe => 'python2.6'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment