Skip to content

Instantly share code, notes, and snippets.

@javan
Created November 13, 2008 22:59
Show Gist options
  • Select an option

  • Save javan/24675 to your computer and use it in GitHub Desktop.

Select an option

Save javan/24675 to your computer and use it in GitHub Desktop.
sudo port install ruby
# Install rubygems 1.2.0 because the memcached gem requires it (macport installs 1.3.0)
curl -O http://files.rubyforge.mmmultiworks.com/rubygems/rubygems-1.2.0.tgz
tar xzvf rubygems-1.2.0.tgz
cd rubygems-1.2.0
sudo ruby setup.rb
#memcached
wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz
tar xvfz memcach*
cd memcach*
./configure
make
make install
# 37signals memcache plugin
wget http://download.tangent.org/libmemcached-0.22.tar.gz
tar xvfz libmem*
cd libmem*
./configure
make
make install
# Install native mysql gem. These flags worked for me on my iMac 10.5.5
sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql config=/usr/local/mysql/bin/mysql_config
# Install all the other gems you need
sudo gem install rails hpricot --no-rdoc --no-ri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment