Carton is a Perl dependencies manager, it will get what you need, so don't bother for Perl modules dependencies (but you can read the file
cpanfile if you want).
sudo cpan Carton sudo cpan inc::Module::Install::DSL
or (not recommended since, in Debian, the packaged version is quite old)
sudo apt-get install carton
Some modules that Carton will install need to be compiled. So you will need some tools:
sudo apt-get install build-essential libssl-dev shared-mime-info libpq-dev zlib1g-dev
git, if you don't have it:
sudo apt-get install git
Thumbnails and animated gifs in Twitter dependency
If you want to provide thumbnails of uploaded images or have animated gifs in Twitter, you have to install the ImageMagick image manipulation software (http://www.imagemagick.org/) and the Image::Magick CPAN module.
Image::Magick is required to automatically correct images' orientation too.
Image::Magick is a pain in the ass to compile, so I recommend to install it from packages
On Debian, you can do:
sudo apt-get install perlmagick