Skip to content

Instantly share code, notes, and snippets.

@dgrstl
Created April 11, 2016 21:32
Show Gist options
  • Save dgrstl/4e1f6bbc2a2710374dcd5eb833b40ed6 to your computer and use it in GitHub Desktop.
Save dgrstl/4e1f6bbc2a2710374dcd5eb833b40ed6 to your computer and use it in GitHub Desktop.
✘-1 ~/repos/prosvc-engagement-docs [master|✔]
16:27 $ gem update rake
Updating installed gems
Updating rake
rake's executable "rake" conflicts with /Users/dave/.rbenv/versions/2.1.5/bin/rake
Overwrite the executable? [yN] y
Successfully installed rake-11.1.2
Gems updated: rake
✔ ~/repos/prosvc-engagement-docs [master|✔]
16:27 $ rake --version
rake, version 11.1.2
✔ ~/repos/prosvc-engagement-docs [master|✔]
16:27 $ bundle exec rake build
Could not find gem 'rake (= 10.4.2)' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.
✘-7 ~/repos/prosvc-engagement-docs [master|✔]
16:28 $ bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Installing rake 10.4.2
Installing addressable 2.4.0
Installing htmlentities 4.3.4
Installing mini_portile 0.6.2
Installing pandoc-ruby 1.0.0
Installing pdfkit 0.8.2
Installing redcarpet 3.3.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/dave/.rbenv/versions/2.1.5/bin/ruby extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling autolink.c
compiling buffer.c
buffer.c:110:45: warning: passing 'const struct buf *' to parameter of type 'struct buf *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if (buf->size + 1 <= buf->asize || bufgrow(buf, buf->size + 1) == BUF_OK) {
^~~
buffer.c:59:21: note: passing argument to parameter 'buf' here
bufgrow(struct buf *buf, size_t neosz)
^
1 warning generated.
compiling houdini_href_e.c
compiling houdini_html_e.c
compiling html.c
compiling html_smartypants.c
compiling markdown.c
markdown.c:2838:43: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'uint8_t *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if (codefences_enabled && (is_codefence(document + beg, doc_size - beg, NULL) != 0))
^~~~~~~~~~~~~~
markdown.c:1391:23: note: passing argument to parameter 'data' here
is_codefence(uint8_t *data, size_t size, struct buf *syntax)
^
1 warning generated.
compiling rc_markdown.c
compiling rc_render.c
compiling stack.c
linking shared-object redcarpet.bundle
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [redcarpet.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/dave/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/redcarpet-3.3.3 for inspection.
Results logged to /Users/dave/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/redcarpet-3.3.3/gem_make.out
Installing rouge 1.8.0
Installing wkhtmltopdf-binary-edge 0.12.3.0
Using bundler 1.12.0.rc
Installing css_parser 1.4.1
Installing nokogiri 1.6.6.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/dave/.rbenv/versions/2.1.5/bin/ruby extconf.rb
checking if the C compiler accepts ... *** 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=/Users/dave/.rbenv/versions/2.1.5/bin/ruby
--help
--clean
/Users/dave/.rbenv/versions/2.1.5/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/dave/.rbenv/versions/2.1.5/lib/ruby/2.1.0/mkmf.rb:571:in `block in try_compile'
from /Users/dave/.rbenv/versions/2.1.5/lib/ruby/2.1.0/mkmf.rb:522:in `with_werror'
from /Users/dave/.rbenv/versions/2.1.5/lib/ruby/2.1.0/mkmf.rb:571:in `try_compile'
from extconf.rb:80:in `nokogiri_try_compile'
from extconf.rb:87:in `block in add_cflags'
from /Users/dave/.rbenv/versions/2.1.5/lib/ruby/2.1.0/mkmf.rb:621:in `with_cflags'
from extconf.rb:86:in `add_cflags'
from extconf.rb:337:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /Users/dave/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.4 for inspection.
Results logged to /Users/dave/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/nokogiri-1.6.6.4/gem_make.out
An error occurred while installing redcarpet (3.3.3), and Bundler cannot continue.
Make sure that `gem install redcarpet -v '3.3.3'` succeeds before bundling.
✘-5 ~/repos/prosvc-engagement-docs [master|…1]
16:28 $ gem install redcarpet -v '3.3.3'
Building native extensions. This could take a while...
ERROR: Error installing redcarpet:
ERROR: Failed to build gem native extension.
/Users/dave/.rbenv/versions/2.1.5/bin/ruby extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling autolink.c
compiling buffer.c
buffer.c:110:45: warning: passing 'const struct buf *' to parameter of type 'struct buf *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if (buf->size + 1 <= buf->asize || bufgrow(buf, buf->size + 1) == BUF_OK) {
^~~
buffer.c:59:21: note: passing argument to parameter 'buf' here
bufgrow(struct buf *buf, size_t neosz)
^
1 warning generated.
compiling houdini_href_e.c
compiling houdini_html_e.c
compiling html.c
compiling html_smartypants.c
compiling markdown.c
markdown.c:2838:43: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'uint8_t *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if (codefences_enabled && (is_codefence(document + beg, doc_size - beg, NULL) != 0))
^~~~~~~~~~~~~~
markdown.c:1391:23: note: passing argument to parameter 'data' here
is_codefence(uint8_t *data, size_t size, struct buf *syntax)
^
1 warning generated.
compiling rc_markdown.c
compiling rc_render.c
compiling stack.c
linking shared-object redcarpet.bundle
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [redcarpet.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/dave/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/redcarpet-3.3.3 for inspection.
Results logged to /Users/dave/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/redcarpet-3.3.3/gem_make.out
✘-1 ~/repos/prosvc-engagement-docs [master|…1]
16:30 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment