Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AllanD
Created August 15, 2011 23:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AllanD/1148145 to your computer and use it in GitHub Desktop.
Save AllanD/1148145 to your computer and use it in GitHub Desktop.
~/Workspace/lunchmoney  env ARCHFLAGS="-arch x86_64" gem install --no-ri --no-rdoc pg
Fetching: pg-0.11.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed pg-0.11.0
1 gem installed
~/Workspace/lunchmoney  bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.7)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.7)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.23)
Using actionpack (3.0.7)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.8)
Using mail (2.2.19)
Using actionmailer (3.0.7)
Using arel (2.0.4)
Using activerecord (3.0.7)
Using activeresource (3.0.7)
Using attr_required (0.0.3)
Using bundler (1.0.17)
Using highline (1.5.1)
Using net-ssh (2.0.15)
Using net-scp (1.0.2)
Using net-sftp (2.0.2)
Using net-ssh-gateway (1.0.1)
Using capistrano (2.5.19)
Using yamler (0.1.0)
Using configatron (2.8.1)
Using daemons (1.1.4)
Using dalli (1.0.5)
Using eventmachine (0.12.10)
Using factory_girl (1.3.3)
Using thor (0.14.6)
Using railties (3.0.7)
Using factory_girl_rails (1.0.1)
Using httpclient (2.2.1)
Using json (1.5.3)
Using rack-oauth2 (0.8.5)
Using fb_graph (1.9.4)
Using kgio (2.4.0)
Using mocha (0.9.12)
Using rest-client (1.6.0)
Using yajl-ruby (0.7.7)
Using moonshado-sms (1.1.0)
Using newrelic_rpm (3.1.1)
Installing pg (0.10.0) with native extensions /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/alland/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for pg_config... yes
Ruby cflags: " -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe"
MacOS X build: fixing architecture flags:
finding flags common to both Ruby and PostgreSQL...
*** Your PostgreSQL installation doesn't seem to have an architecture in common with the running ruby interpreter (["x86_64", "i386"] vs. [])
I'll continue anyway, but if it fails, try setting ARCHFLAGS.
testing for architecture: "x86_64"
testing for architecture: "i386"
checking for libpq-fe.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/alland/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
--with-pg
--without-pg
--with-pg-config
--without-pg-config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
/Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:452:in `try_cpp'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:853:in `block in find_header'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:852:in `find_header'
from extconf.rb:123:in `<main>'
Gem files will remain installed in /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/pg-0.10.0 for inspection.
Results logged to /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/pg-0.10.0/ext/gem_make.out
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:511:in `block in build_extensions'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `each'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `build_extensions'
from /Users/alland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:159:in `install'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/source.rb:101:in `block in install'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/source.rb:91:in `install'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/installer.rb:58:in `block (2 levels) in run'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/installer.rb:57:in `block in run'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/installer.rb:49:in `run'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/installer.rb:8:in `install'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/cli.rb:220:in `install'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.17/bin/bundle:13:in `<top (required)>'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in `load'
from /Users/alland/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in `<main>'
~/Workspace/lunchmoney 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment