(This post is one of a series that upadates Chad Fowler's Rails Recipes.)
The main difficulty I encountered with this recipe was figuring out everything that needed to be installed to make it work. One of the difficulties is that upstream configuration choices must be made so that downstream compilations are successful. Here are the steps I found necessary on Ubuntu:
- Install
jpegsrc
. This library is available from www.ijg.org. The instructions tell you that if you want to build from this library, you should executemake install-lib
and copy some of the header files to/usr/local/include
. I found that copying the files was necessary. - Install
libpng
. Available from www.libpng.org. - Install ImageMagick from source. It is available at www.imagemagick.org. For this to work, though, it must be configured in a special manner. The necessary configuration command is:
Then one does a standard sequence of commands:./configure --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8
make
make check
sudo make install
This seems to be necessary.sudo ldconfig /usr/local/lib
- Install the rmagick gem.
- Install the gruff gem.
Only one other minor change was needed to make the recipe work. The graph_controller.rb
needs the addition of the line
require 'code_statistics'