Whilst trying to install a Ruby gem today I had this interesting problem with Trace/BPT trap: 5, which doesn't show up in any useful Google searches.

The problem was linked to using Homebrew, and presented itself like so:

Mac:~$ brew install openssl
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
Already downloaded: /Library/Caches/Homebrew/openssl-1.0.1e.tar.gz
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1e --openssldir=/usr/local/etc/op
==> make depend
==> make

/bin/sh: line 1: 39834 Trace/BPT trap: 5       /usr/bin/perl tools/c_rehash certs/demo
make[2]: *** [rehash.time] Error 133
make[1]: *** [openssl] Error 2
make: *** [build_apps] Error 1

I started to wonder if it was linked to Perl, and since I was also running perlbrew I decided to switch it off for a moment and try again.

Bingo! Sorted.

So if you see this weird error and you're using Homebrew + Perlbrew on OS X, try doing a perlbrew off before doing brew install


comments powered by Disqus