Project

General

Profile

Fail to install redcarpet under Windows 10

Added by Peggy Ng about 6 years ago

When I run the following command to install bundle, error happened when installing redcarpet, please help as I have stuck for few days. Thanks

bundle install --without development test

Fetching redcarpet 3.4.0
Installing redcarpet 3.4.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/redcarpet-3.4.0/ext/redcarpet
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20180208-17176-1qbghd.rb extconf.rb
creating Makefile

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/redcarpet-3.4.0/ext/redcarpet
make "DESTDIR=" clean

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/redcarpet-3.4.0/ext/redcarpet
make "DESTDIR=" 
generating redcarpet-x64-mingw32.def
compiling autolink.c
compiling buffer.c
buffer.c: In function 'bufcstr':
buffer.c:111:2: warning: passing argument 1 of 'bufgrow' discards 'const'
qualifier from pointer target type [enabled by default]
buffer.c:60:1: note: expected 'struct buf *' but argument is of type 'const
struct buf *'
compiling houdini_href_e.c
compiling houdini_html_e.c
compiling html.c
compiling html_smartypants.c
compiling markdown.c
markdown.c: In function 'sd_markdown_render':
markdown.c:2836:3: warning: passing argument 1 of 'is_codefence' discards
'const' qualifier from pointer target type [enabled by default]
markdown.c:1389:1: note: expected 'uint8_t *' but argument is of type 'const
uint8_t *'
compiling rc_markdown.c
compiling rc_render.c
compiling stack.c
linking shared-object redcarpet.so
c:/devkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lgmp
collect2.exe: error: ld returned 1 exit status
make: *** [redcarpet.so] Error 1

make failed, exit code 2

Gem files will remain installed in
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/redcarpet-3.4.0 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/redcarpet-3.4.0/gem_make.out

An error occurred while installing redcarpet (3.4.0), and Bundler cannot
continue.
Make sure that `gem install redcarpet -v '3.4.0'` succeeds before bundling.

In Gemfile:
  redcarpet