{"action":"closed","issue":{"url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/20","repository_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow","labels_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/20/comments","events_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/20/events","html_url":"https://github.com/CraftAcademy/CraftOverflow/issues/20","id":296688297,"number":20,"title":"Bundle error returns error after bundle install. ","user":{"login":"kmthorsnes","id":24756550,"avatar_url":"https://avatars0.githubusercontent.com/u/24756550?v=4","gravatar_id":"","url":"https://api.github.com/users/kmthorsnes","html_url":"https://github.com/kmthorsnes","followers_url":"https://api.github.com/users/kmthorsnes/followers","following_url":"https://api.github.com/users/kmthorsnes/following{/other_user}","gists_url":"https://api.github.com/users/kmthorsnes/gists{/gist_id}","starred_url":"https://api.github.com/users/kmthorsnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmthorsnes/subscriptions","organizations_url":"https://api.github.com/users/kmthorsnes/orgs","repos_url":"https://api.github.com/users/kmthorsnes/repos","events_url":"https://api.github.com/users/kmthorsnes/events{/privacy}","received_events_url":"https://api.github.com/users/kmthorsnes/received_events","type":"User","site_admin":false},"labels":[{"id":828447260,"url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/labels/answered","name":"answered","color":"59bc38","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-13T10:35:49Z","updated_at":"2018-03-03T13:35:33Z","closed_at":"2018-03-03T13:35:33Z","author_association":"NONE","body":"## Problem\r\nWrite your problem here\r\n\r\n### Background\r\nAfter forking the slow food project, I ran, \r\n\r\n```\r\n$ https://github.com/kmthorsnes/slow_food_sinatra_is.git\r\n```\r\nthen .... \r\n```\r\n$ cd slow_food_sinatra_is/\r\n```\r\n```\r\n$ bundle install\r\n```\r\nAfter this is i get the error as shown in screenshot: \r\n\r\n\r\nAny idea why this occours and how to fix ? \r\n\r\n```Fetching gem metadata from https://rubygems.org/........\r\nResolving dependencies...\r\nUsing rake 12.3.0\r\nUsing concurrent-ruby 1.0.5\r\nUsing i18n 0.9.4\r\nUsing minitest 5.11.3\r\nUsing thread_safe 0.3.6\r\nUsing tzinfo 1.2.5\r\nUsing activesupport 5.1.4\r\nUsing activemodel 5.1.4\r\nUsing arel 8.0.0\r\nUsing activerecord 5.1.4\r\nUsing public_suffix 3.0.2\r\nUsing addressable 2.5.2\r\nUsing backports 3.11.1\r\nUsing bcrypt 3.1.11\r\nUsing bundler 1.16.1\r\nUsing mini_mime 1.0.0\r\nUsing mini_portile2 2.3.0\r\nUsing nokogiri 1.8.2\r\nUsing rack 2.0.4\r\nUsing rack-test 0.8.2\r\nUsing xpath 3.0.0\r\nUsing capybara 2.18.0\r\nUsing database_cleaner 1.4.1\r\nUsing diff-lcs 1.3\r\nUsing factory_bot 4.8.2\r\nUsing faker 1.8.7\r\nUsing multi_json 1.13.1\r\nUsing mustermann 1.0.1\r\nFetching pg 1.0.0\r\nInstalling pg 1.0.0 with native extensions\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    current directory: /Users/kalle/.rvm/gems/ruby-2.4.1/gems/pg-1.0.0/ext\r\n/Users/kalle/.rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20180213-22479-13c6g8a.rb extconf.rb\r\nchecking for pg_config... no\r\nNo pg_config... trying anyway. If building fails, please try again with\r\n --with-pg-config=/path/to/pg_config\r\nchecking for libpq-fe.h... no\r\nCan't find the 'libpq-fe.h header\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n\t--with-opt-dir\r\n\t--with-opt-include\r\n\t--without-opt-include=${opt-dir}/include\r\n\t--with-opt-lib\r\n\t--without-opt-lib=${opt-dir}/lib\r\n\t--with-make-prog\r\n\t--without-make-prog\r\n\t--srcdir=.\r\n\t--curdir\r\n\t--ruby=/Users/kalle/.rvm/rubies/ruby-2.4.1/bin/$(RUBY_BASE_NAME)\r\n\t--with-pg\r\n\t--without-pg\r\n\t--enable-windows-cross\r\n\t--disable-windows-cross\r\n\t--with-pg-config\r\n\t--without-pg-config\r\n\t--with-pg_config\r\n\t--without-pg_config\r\n\t--with-pg-dir\r\n\t--without-pg-dir\r\n\t--with-pg-include\r\n\t--without-pg-include=${pg-dir}/include\r\n\t--with-pg-lib\r\n\t--without-pg-lib=${pg-dir}/lib\r\n\r\nTo see why this extension failed to compile, please check the mkmf.log which can be found here:\r\n\r\n  /Users/kalle/.rvm/gems/ruby-2.4.1/extensions/x86_64-darwin-17/2.4.0/pg-1.0.0/mkmf.log\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /Users/kalle/.rvm/gems/ruby-2.4.1/gems/pg-1.0.0 for inspection.\r\nResults logged to /Users/kalle/.rvm/gems/ruby-2.4.1/extensions/x86_64-darwin-17/2.4.0/pg-1.0.0/gem_make.out\r\n\r\nAn error occurred while installing pg (1.0.0), and Bundler cannot continue.\r\nMake sure that `gem install pg -v '1.0.0'` succeeds before bundling.\r\n\r\nIn Gemfile:\r\n  pg\r\n✘-5 ~/craftacademy/slow_food_sinatra_is [master|✔] \r\n```\r\n\r\n### Screenshots\r\n![skjermbilde 2018-02-13 kl 11 21 54](https://user-images.githubusercontent.com/24756550/36145374-6dab7e26-10b1-11e8-80ea-30631b5e41aa.png)\r\n\r\n### How did you try to solve the problem?\r\nTried to change the line in Gemfile from: \r\n\r\n```\r\n# PostgreSQL driver\r\ngem 'pg'\r\n```\r\nto:\r\n```\r\n# PostgreSQL driver\r\ngem ‘postgres’, ‘~> 0.8.1’\r\n```\r\nAnd tried to run \r\n```\r\n$ bundle install\r\n```\r\nagain... But it returns error...\r\n"}}
{"actor":{"display_login":"diraulo"}}