Friday, July 10, 2009

Getting ruby, rubygems, rake, mysql, imagemagick, rmagick, aspell, raspell with fink

Moved here

This is really just for me to remember this. If at some point someone else benefits from this, even better.
  1. Download and Install fink
  2. Edit /sw/etc/apt/sources.list and add the following:
    deb http://fink.sodan.ecc.u-tokyo.ac.jp/apt/10.5 unstable main crypto
    deb http://sage.ucsc.edu/fink_intel_10.5_only    stable main crypto
    deb http://sage.ucsc.edu/fink_intel_10.5_only    unstable main crypto
    
  3. Install ruby:
    sudo apt-get install ruby
    sudo apt-get install ruby18-dev
    sudo apt-get install ruby18-shlibs
    
  4. Install rubygems:
    sudo apt-get install rubygems-rb18
    
  5. Update rubygems:
    sudo gem update --system
    sudo gem install rubygems-update # this is to get passed v 1.1.1
    sudo update_rubygems
    
  6. Install rake
    sudo gem install rake
    
  7. Then install mysql:
    sudo apt-get install mysql
    sudo apt-get install mysql-client
    sudo apt-get install mysql15-dev
    sudo gem install mysql
    
  8. If you want to use a custom my.cnf, plunk it in /etc
  9. Then install imagemagick and rmagick (this one can be a pain)
    sudo apt-get install imagemagick10-dev imagemaigck10-shlibs
    sudo apt-get install freetype freetype-shlibs ghostscript ghostscript-fonts \
     gv libpng-shlibs libjpeg libjpeg-bin libjpeg-shlibs lcms lcms-bin lcms-shlibs \
     libtiff libtiff-bin libtiff-shlibs
    sudo gem install rmagick -v 2.9.2
    
  10. Install aspell:
    sudo apt-get install aspell
    sudo apt-get install aspell-en
    sudo apt-get install apsell-dev
    sudo gem install raspell
    
  11. Install other gems:
    sudo gem install hoe -v 2.0.0
    sudo gem install nokogiri
    sudo gem install rake-compiler
    sudo gem install taka
    sudo gem install johnson -v 1.1.0 # 1.1.1 wouldn't install
    

No comments: