Created
July 16, 2010 08:15
-
-
Save mallipeddi/478109 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| INSTRUCTIONS FOR GETTING MEMPROF WORKING ON SNOW LEOPARD | |
| We'll compile and install a different version of ruby and ruby-gems alongside the default versions that ship with Snow Leopard. | |
| Compile and install ruby | |
| Get ruby-1.8.7-p299.tar.gz (or the latest version) & untar it somewhere | |
| ./configure --prefix=/path/to/ruby/directory/you/want \ | |
| --with-readline-dir=/opt/local \ | |
| --with-iconv-dir=/opt/local \ | |
| --enable-shared --enable-pthread \ | |
| --disable-install-doc \ | |
| optflags="-O0" \ | |
| debugflags="-g3 -ggdb -ggdb3" | |
| I'm assuming you have readline and iconv packages installed to /opt/local (port install libiconv readline) | |
| make && make install | |
| Compile and install ruby-gems | |
| Get ruby-gems-1.3.7.tgz (or the latest version) and untar. | |
| env GEM_HOME=/path/to/rubygems/directory/you/want ruby setup.rb -V | |
| Edit your ~/.bashrc or ~/.bash_profile | |
| export PATH="/path/to/ruby/directory/bin:/path/to/rubygems/directory/bin:${PATH}" # this is the install directory you picked above! | |
| export GEM_HOME="/path/to/rubygems/directory" # this is the gems directory you picked above! | |
| Install memprof gem | |
| gem install memprof --no-rdoc --no-ri | |
| Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment