add env ARCHFLAGS='-arch x86_64' gem install pg