$ sudo su
$ env ARCHFLAGS="-arch x86_64" gem install pg
Building native extensions. This could take a while...
Successfully installed pg-0.11.0
1 gem installed
Installing ri documentation for pg-0.11.0...
Installing RDoc documentation for pg-0.11.0...
WORKED!
More Related Contents:
- Ignoring time zones altogether in Rails and PostgreSQL
- Can’t find the ‘libpq-fe.h header when trying to install pg gem
- Rails: Installing PG gem on OS X – failure to build native extension
- Repairing Postgresql after upgrading to OSX 10.7 Lion
- PG::Error: SELECT DISTINCT, ORDER BY expressions must appear in select list
- How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”
- Installing Postgres on windows for use with Ruby-on-Rails
- Extending controllers of a Rails 3 Engine in the main app
- How can I specify a local gem in my Gemfile?
- Rails auto-assigning id that already exists
- Convert HTML to word file ?
- Ruby: problem installing EventMachine under Windows 7
- PGError: ERROR: aggregates not allowed in WHERE clause on a AR query of an object and its has_many objects
- Rails: FATAL – Peer authentication failed for user (PG::Error)
- How do I extract Rails view helpers into a gem?
- Adding foreign key to a rails model
- Rails Devise: after_confirmation
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- Ruby 1.9.2 and Rails 3 cannot open rails console
- no such file to load — rubygems (LoadError)
- PG undefinedtable error relation users does not exist
- Rails .where vs .find
- Path helpers generate paths with dots instead of slashes
- Check if record exists from controller in Rails
- How to get a Date from date_select or select_date in Rails?
- New data not persisting to Rails array column on Postgres
- Rails 3 autoload
- Store the day of the week and time?
- Why can’t I install the SQLite gem?
- Ruby on Rails 3 howto make ‘OR’ condition