Skip to content

Fixing a memory leak

_This post is obsolete. My update for rb-fcgi is now committed to DarwinPorts and can be installed easily:_

sudo port install rb-fcgi

_At the same time, the fcgi gem was also updated to 0.8.6, independently of my efforts, so you can also install it as a ruby gem if you prefer:_

sudo gem install fcgi

_I’ve left the post here for Google. Hi Google!_

No, not MINE… I still haven’t figured that one out yet… However, after reading [this alert][fcgi] on memory leaks in the 0.8.5 version of Ruby FCGI, I was reminded to check and upgrade my version. I’d decided when I installed Tiger that anything I installed on my computer that wasn’t something I could completely remove via dragging to the trash needed to be either installed via Apple’s Installer.app or if installed on the command-line through one package manager. **ONE** - I had three in Panther. What a mess. My package manager of choice on Tiger is DarwinPorts - and they haven’t yet updated their system to the new 0.8.6 rb-fcgi.

So I made my own version of the Portfile: [rb-fcgi 0.8.6 Portfile][port]

You’ll have to save it as ‘Portfile’ without the .txt ending, and then in Terminal issue the command `port install` (_This is all assuming you have DarwinPorts installed in the first place_).

Let me know if it works for you…

[fcgi]: http://www.robbyonrails.com/articles/2005/05/12/alert-ruby-fcgi-0-8-5-memory-leak
[port]: http://blog.unquiet.net/media/Portfile.txt

One Comment

  1. mrmachine wrote:

    this worked for me. 0.8.5 in darwinports was failing the checksum after download, so i went searching and found your info about the memory leak. are you going to submit this (and your other patches) to darwinports? :)

    also i didn’t know about rubygems until now. a quick scan and i found postgres packages, but not specifically for 8? you recommended using gems instead of darwinports if possible. does the gems postgres package work with 8? or should i use rb-postgres from darwinports?

    Posted on 13-Jun-05 at 3:48 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*