Skip to content

Instantly share code, notes, and snippets.

@bradwright
Created April 1, 2012 12:26
Show Gist options
  • Save bradwright/2275024 to your computer and use it in GitHub Desktop.
Save bradwright/2275024 to your computer and use it in GitHub Desktop.
Install PIL with Puppet on Ubuntu 11.10
# installs PIL. PIL is rubbish to install because of broken
# dependencies on libjpeg etc, so we need to do some symlinking
class pil {
# libpng is already installed, and I don't care about libfreetype etc.
package { [ 'libjpeg-dev', 'zlib1g' ]:
ensure => 'installed'
}
file { '/usr/lib/libjpeg.so':
ensure => 'link',
target => '/usr/lib/x86_64-linux-gnu/libjpeg.so'
}
file { '/usr/lib/libz.so':
ensure => 'link',
target => '/usr/lib/x86_64-linux-gnu/libz.so'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment