#158 ✓resolved
Paul Cantrell

do_postgres fails to build on PowerPC

Reported by Paul Cantrell | February 17th, 2008 @ 06:36 PM

"sudo gem install do_postgres" fails on my Powerbook running 10.5.2. The ultimate error, buried in mkmf.log, is:

cc: Invalid arch name : Power

The cause is line 1 of do_postgres's extconf.rb:

ENV["RC_ARCHS"] = `uname -m`.chomp if `uname -sr` =~ /^Darwin/

The solution is:

(1) comment out that line, in which case everything works fine (probably the best solution, since cc's default architecture should work on the current machine!), or

(2) replace with:

ENV["RC_ARCHS"] = `uname -m`.chomp.gsub("Power Macintosh", "ppc") if `uname -sr` =~ /^Darwin/

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages