Skip to content

Instantly share code, notes, and snippets.

@kivanio
Last active December 20, 2015 22:08
Show Gist options
  • Save kivanio/6202400 to your computer and use it in GitHub Desktop.
Save kivanio/6202400 to your computer and use it in GitHub Desktop.
brew update
brew versions ruby
2.0.0-p247 git checkout 6504994 /usr/local/Library/Formula/ruby.rb
2.0.0-p195 git checkout dad5917 /usr/local/Library/Formula/ruby.rb
2.0.0-p0 git checkout 3085c40 /usr/local/Library/Formula/ruby.rb
1.9.3-p392 git checkout 6c26d0a /usr/local/Library/Formula/ruby.rb
1.9.3-p385 git checkout e5b9678 /usr/local/Library/Formula/ruby.rb
#Install last ruby 1.9
cd /usr/local
git checkout 6c26d0a /usr/local/Library/Formula/ruby.rb
brew install ruby
cd ~
add to .bash_profile:
######
export PATH=$PATH:/usr/local/opt/ruby/bin # Add Homebrew Ruby /bin to PATH
######
brew install swig
brew install svn
download subversion 1.8.3 source
ungzip
cd source_dir
./autogen.sh
./configure --prefix=/usr/local/Cellar/subversion/1.8.3 --with-apr=/usr/local/Library/ENV/4.3 --with-zlib=/usr --with-sqlite=/usr/local/opt/sqlite --with-serf=/usr/local/opt/serf --disable-mod-activation --disable-nls --without-apache-libexecdir --without-berkeley-db --with-ruby-sitedir=/usr/local/Cellar/subversion/1.8.3/lib/ruby
make
make install
make tools
make install-tools
make swig-rb EXTRA_SWIG_LDFLAGS=-L/usr/lib
make install-swig-rb
create symlinks:
cd /usr/local/lib/ruby/site_ruby/1.9.1
ln -s /usr/local/opt/subversion/lib/ruby/1.9.1/svn svn
cd /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-darwin12.4.0
ln -s /usr/local/opt/subversion/lib/ruby/1.9.1/x86_64-darwin12.4.0/svn svn
check:
$ irb
require "svn/client"
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment