Thursday, March 15, 2012

Ruby Segmentation Fault

Even if there was plenty of info around, it was still a pain.

I am using Snow Leopard with RVM and Ports.

First I tried:
rvm install ruby-1.9.3 --with-openssl-dir=/opt/local \
as described in:

But even if I had the openssl 1.0 using ports and the latest iconv, it will stil give me an error.

Until I finally tried a combination of the answers at this post:

rvm remove ruby-1.9.3
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.rvm/bin
rvm pkg install iconv
rvm install ruby-1.9.3 --with-openssl-dir=/opt/local \

Basically use openssl from ports but a local package for iconv.

Monday, August 2, 2010

Merging Git with SourceGear DiffMerge

I develop in PHP and C#, switching between OSX (Native Bash) and Windows (Cygwin), so I try to make my solutions as DRY and cross-OS simple as possible. For a great solution for Cygwin checkout Alexander Grob post on the same issue, mine is a slight variation of Alex's.

$ nano ~/.bash_profile
DiffMerge_Path="/cygdrive/c/Program Files/SourceGear/DiffMerge"
if [ -d $DiffMerge_Path ]

In order to make everything cross-OS, I add the DiffMerge binaries to the Path, above is an example on how to add it to Cygwin, adding it to the .bash_profile will ensure that it gets added automatically every time I log in.

Sunday, July 18, 2010

PEAR and PECL in Dreamhost Shared

I decided to use MongoDB for one of my PHP projects, you can follow Phillip Napieralski instructions for a fast build and setup. But I wanted a little more, I wanted to do it directly from PECL, nothing beats seeing your packages listed when you type $pecl config-show.

For starters you need to connect to your server via SSH, I have both a Mac and a PC so I guess am I hybrid. In windows I recommend you download Cygwin, don't forget to select the ssh package. And get ready to start typing into a black console. I'll assume that you haven't install anything in your account.