koudoku icon indicating copy to clipboard operation
koudoku copied to clipboard

The gem for bluecloth is failing to install Windows 10

Open RailsCod3rFuture opened this issue 6 years ago • 3 comments

I'm using Rails 5.2 and Ruby 2.4.4


Fetching bluecloth 2.2.0
Installing bluecloth 2.2.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/bluecloth-2.2.0/ext
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20181125-7940-akh0pa.rb extconf.rb
checking for srand()... yes
checking for random()... no
checking for rand()... yes
checking for bzero() in string.h,strings.h... no
checking for strcasecmp()... yes
checking for strncasecmp()... yes
checking for mkdio.h... yes
checking for ruby/encoding.h... yes
creating extconf.h
creating Makefile

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

current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bluecloth-2.2.0/ext
make "DESTDIR="
generating bluecloth_ext-x64-mingw32.def
compiling Csio.c
compiling bluecloth.c
In file included from bluecloth.h:10,
                 from bluecloth.c:25:
config.h:18:14: error: duplicate 'unsigned'
 #define BYTE unsigned char
              ^~~~~~~~
config.h:18:23: error: two or more data types in declaration specifiers
 #define BYTE unsigned char
                       ^~~~
config.h:15:15: error: duplicate 'unsigned'
 # define WORD unsigned int
               ^~~~~~~~
config.h:14:16: error: duplicate 'unsigned'
 # define DWORD unsigned long
                ^~~~~~~~
In file included from C:/Ruby24-x64/include/ruby-2.4.0/ruby.h:33,
                 from bluecloth.h:14,
                 from bluecloth.c:25:
C:/Ruby24-x64/include/ruby-2.4.0/ruby/ruby.h:631:1: warning: 'const' attribute
on function returning 'void' [-Wattributes]
 CONSTFUNC(void rb_secure_update(VALUE));
 ^~~~~~~~~
In file included from C:/Ruby24-x64/include/ruby-2.4.0/ruby/ruby.h:2012,
                 from C:/Ruby24-x64/include/ruby-2.4.0/ruby.h:33,
                 from bluecloth.h:14,
                 from bluecloth.c:25:
C:/Ruby24-x64/include/ruby-2.4.0/ruby/intern.h:257:1: warning: 'const' attribute

on function returning 'void' [-Wattributes]
 CONSTFUNC(void rb_error_untrusted(VALUE));
 ^~~~~~~~~
C:/Ruby24-x64/include/ruby-2.4.0/ruby/intern.h:259:1: warning: 'const' attribute

on function returning 'void' [-Wattributes]
 CONSTFUNC(void rb_check_trusted(VALUE));
 ^~~~~~~~~
make: *** [Makefile:242: bluecloth.o] Error 1

make failed, exit code 2

Gem files will remain installed in
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bluecloth-2.2.0 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/bluecloth-2.2.0/g
em_make.out

An error occurred while installing bluecloth (2.2.0), and Bundler
cannot continue.
Make sure that `gem install bluecloth -v '2.2.0' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  koudoku was resolved to 2.0.0, which depends on
    bluecloth

Process finished with exit code 5

RailsCod3rFuture avatar Nov 25 '18 19:11 RailsCod3rFuture

Were you able to find a fix for this?

tonydehnke avatar Jul 15 '19 04:07 tonydehnke

No. I just extended Payola's functionality. I didn't have much time to experiment and my release schedule was right around the corner.

RailsCod3rFuture avatar Jul 22 '19 02:07 RailsCod3rFuture

Time to migrate to https://github.com/vmg/redcarpet

kwent avatar May 24 '20 10:05 kwent