Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The gem for bluecloth is failing to install Windows 10 #197

Open
RailsCod3rFuture opened this issue Nov 25, 2018 · 3 comments
Open

The gem for bluecloth is failing to install Windows 10 #197

RailsCod3rFuture opened this issue Nov 25, 2018 · 3 comments

Comments

@RailsCod3rFuture
Copy link

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
@tonydehnke
Copy link

Were you able to find a fix for this?

@RailsCod3rFuture
Copy link
Author

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

@kwent
Copy link

kwent commented May 24, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants