Hello guys,
I didn't touch ror for a while. Today i tried to upload an easy static page to heroku. I got the error: we're sorry but something went wrong. So i researched a bit and found out that i need to install the gem pg for heroku now.
But when i write it in the gemfile and run sudo bundle install i get:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** 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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ ruby --with-pg --without-pg --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/lib --with-pg-config --without-pg-config --with-pg_config --without-pg_config
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ pg-0.13.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/pg-0.13.1/ext/ gem_make.out An error occured while installing pg (0.13.1), and Bundler cannot continue. Make sure that `gem install pg -v '0.13.1'` succeeds before bundling.
btw: a mkmf.log file does not exists
so i tried sudo gem install pg -v '0.13.1'
and got:
Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** 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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ ruby --with-pg --without-pg --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/lib --with-pg-config --without-pg-config --with-pg_config --without-pg_config
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ pg-0.13.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/pg-0.13.1/ext/ gem_make.out
I also did some research to fix this problem and only found this:
PATH=$PATH:/Library/PostgreSQL/8.3/bin sudo gem install pg
and this didn't worked - no wonder i didn't install PostgreSQL.
any ideas?
best regards
Sascha