
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
-
Dan Kubb (dkubb) April 15th, 2008 @ 03:04 AM
- Milestone cleared.
-
Sam Smoot April 28th, 2008 @ 12:52 PM
- State changed from new to resolved
Closing this since our extconfs are more better. Feel free to reopen if it's still an issue with the latest in git.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »