Skip to content

Instantly share code, notes, and snippets.

@gmarik
Created May 3, 2010 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmarik/388104 to your computer and use it in GitHub Desktop.
Save gmarik/388104 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# http://gmarik.info/blog/2010/05/02/installing-ruby-1.8.6-on-OSX
#
sudo -s <<EOC
port install wget
port install git-core +bash_completion+doc+svn
port install ruby186 #apply http://gist.github.com/395524 patch
port install rb-rubygems +ruby186
port install mysql5-server
port install memcached
port install libidn
port install ImageMagick +no_x11
# install ImageMagick-6.5.6
#svn -rr59175 co http://svn.macports.org/repository/macports/trunk/dports/graphics/ImageMagick /tmp/
#cd /tmp/ImageMagick/ && \
#port install +no_x11
EOC
# install gems to ~/.gem/
gem install idn --no-ri --no-rdoc -- --with-idn-lib=/opt/local/lib --with-idn-include=/opt/local/include/
gem install capistrano -v 2.5.5 --no-ri --no-rdoc
gem install geminstaller --no-ri --no-rdoc
gem install rmagick -v1.15.14 --no-ri --no-rdoc -- --disable-htmldoc
gem install mysql --no-ri --no-rdoc -- \
--with-mysql-dir=/opt/local/lib/mysql5/bin \
--with-mysql-lib=/opt/local/lib/mysql5/mysql \
--with-mysql-include=/opt/local/include/mysql5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment