Created
May 3, 2010 13:45
-
-
Save gmarik/388104 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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