Skip to content

Instantly share code, notes, and snippets.

@mingderwang
Last active December 16, 2015 04:39
Show Gist options
  • Save mingderwang/5379167 to your computer and use it in GitHub Desktop.
Save mingderwang/5379167 to your computer and use it in GitHub Desktop.
test boxen-webnstalling json (1.7.7) with native extensions
Wangs-MacBook-Air:git ming$ git clone https://github.com/boxen/boxen-web.git
Cloning into 'boxen-web'...
remote: Counting objects: 403, done.
remote: Compressing objects: 100% (298/298), done.
remote: Total 403 (delta 109), reused 373 (delta 85)
Receiving objects: 100% (403/403), 18.59 MiB | 313 KiB/s, done.
Resolving deltas: 100% (109/109), done.
Wangs-MacBook-Air:git ming$ pwd
/Users/ming/git
Wangs-MacBook-Air:git ming$ ls
boxen boxen-web
Wangs-MacBook-Air:git ming$ cd *web
Wangs-MacBook-Air:boxen-web ming$ ls
Gemfile README.md config public vendor
Gemfile.lock Rakefile config.ru script
LICENSE app db test
Wangs-MacBook-Air:boxen-web ming$ script/server
Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3
Wangs-MacBook-Air:boxen-web ming$ ls
Gemfile README.md config public vendor
Gemfile.lock Rakefile config.ru script
LICENSE app db test
Wangs-MacBook-Air:boxen-web ming$ vi G*e
Wangs-MacBook-Air:boxen-web ming$ !v
vi G*e
Wangs-MacBook-Air:boxen-web ming$ pwd
/Users/ming/git/boxen-web
Wangs-MacBook-Air:boxen-web ming$ script/tests
Could not find rake-10.0.3 in any of the sources
Run `bundle install` to install missing gems.
Wangs-MacBook-Air:boxen-web ming$ vi G*e
Wangs-MacBook-Air:boxen-web ming$ !v
vi G*e
Wangs-MacBook-Air:boxen-web ming$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.0.3)
Installing i18n (0.6.1)
Installing multi_json (1.7.1)
Installing activesupport (3.2.13)
Installing builder (3.0.4)
Installing activemodel (3.2.13)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.5)
Installing rack-cache (1.2)
Installing rack-test (0.6.2)
Installing hike (1.2.1)
Installing tilt (1.3.6)
Installing sprockets (2.2.2)
Installing actionpack (3.2.13)
Installing mime-types (1.21)
Installing polyglot (0.3.3)
Installing treetop (1.4.12)
Installing mail (2.5.3)
Installing actionmailer (3.2.13)
Installing arel (3.0.2)
Installing tzinfo (0.3.37)
Installing activerecord (3.2.13)
Installing activeresource (3.2.13)
Installing addressable (2.3.2)
Installing coderay (1.0.8)
Installing coffee-script-source (1.4.0)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.3)
Installing json (1.7.7) with native extensions
Installing rdoc (3.12.2)
Installing thor (0.17.0)
Installing railties (3.2.13)
Installing coffee-rails (3.2.2)
Installing dotenv (0.4.0)
Installing excon (0.16.10)
Installing multipart-post (1.1.5)
Installing faraday (0.8.4)
Installing hashie (1.2.0)
Installing heroku-api (0.3.7)
Installing launchy (2.1.2)
Installing netrc (0.7.7)
Installing rest-client (1.6.7)
Installing rubyzip (0.9.9)
Installing heroku (2.33.5)
Installing httpauth (0.2.0)
Installing jquery-rails (2.1.4)
Installing jwt (0.1.5)
Installing kgio (2.7.4) with native extensions
Installing method_source (0.8.1)
Installing oauth2 (0.8.0)
Installing omniauth (1.1.1)
Installing omniauth-oauth2 (1.1.1)
Installing omniauth-github (1.0.3)
Installing pg (0.14.1) with native extensions
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... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... no
checking for PQconnectdb() in -llibpq... no
checking for PQconnectdb() in -lms/libpq... no
Can't find the PostgreSQL client library (libpq)
*** 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
--with-pqlib
--without-pqlib
--with-libpqlib
--without-libpqlib
--with-ms/libpqlib
--without-ms/libpqlib
Gem files will remain installed in /Users/ming/git/boxen-web/.bundle/ruby/1.8/gems/pg-0.14.1 for inspection.
Results logged to /Users/ming/git/boxen-web/.bundle/ruby/1.8/gems/pg-0.14.1/ext/gem_make.out
An error occurred while installing pg (0.14.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.14.1'` succeeds before bundling.
Wangs-MacBook-Air:boxen-web ming$ gem install pg -v '0.14.1'
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Wangs-MacBook-Air:boxen-web ming$ sudo !!
sudo gem install pg -v '0.14.1'
Password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment