ZLIB not find while installing nghttp2 - homebrew

I want to install nghttp2 for my mac os but after I run command brew install nghttp2, I face this output:
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
==> Downloading https://github.com/tatsuhirot/nghttp2/releases/download/v1.7.1/
Already downloaded: /Library/Caches/Homebrew/nghttp2-1.7.1.tar.xz
==> ./configure --prefix=/usr/local/Cellar/nghttp2/1.7.1 --disable-silent-rules
Last 15 lines from /Users/kianooshabbasi/Library/Logs/Homebrew/nghttp2/01.configure:
checking for ev_time in -lev... yes
checking ev.h usability... yes
checking ev.h presence... yes
checking for ev.h... yes
checking for OPENSSL... yes
checking for LIBEVENT_OPENSSL... yes
checking for JANSSON... yes
checking for xml2-config... /usr/local/opt/libxml2/bin/xml2-config
checking for libxml - version >= 2.7.7... yes (version 2.9.3)
checking for library containing malloc_stats_print... no
checking for library containing je_malloc_stats_print... no
checking for LIBSPDYLAY... no
configure: Package 'zlib', required by 'libspdylay', not found
configure: The SPDY support in nghttpx and h2load will be disabled.
configure: error: spdylay was requested (--with-spdylay) but not found
As in some similar responses said, I tried xcode-select --install and brew upgrade but the problem was not solved.

Related

rsconnect (& PKI installation) failure

im trying to install rsconnect to connect to shinyapps.io for online hosting. This is my first app so bear with me.
while installing rsconnect through:
install.packages("rsconnect")
it runs through the installation with the checks etc:
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... no
configure: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: openssl/ssl.h: proceeding with the compiler's result
checking for openssl/ssl.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... no
configure: WARNING: openssl/rsa.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: openssl/rsa.h: proceeding with the compiler's result
checking for openssl/rsa.h... yes
checking for library containing RSA_generate_key_ex... no
configure: error: Cannot find usable crypto library
ERROR: configuration failed for package ‘PKI’
* removing ‘/cnN0dWRpby1yYWNoYW5kR/x86_64-pc-linux-gnu-library/3.5/PKI’
Warning in install.packages :
installation of package ‘PKI’ had non-zero exit status
ERROR: dependency ‘PKI’ is not available for package ‘rsconnect’
* removing ‘/cnN0dWRpby1yYWNoYW5k/R/x86_64-pc-linux-gnu-library/3.5/rsconnect’
Warning in install.packages :
installation of package ‘rsconnect’ had non-zero exit status
A dependancy on PKI seems to be killing this installation. Installation of PKI separately though
install.packages("PKI")
also fails with the warning
configure: error: Cannot find usable crypto library
ERROR: configuration failed for package ‘PKI’
I am running on an enterprise VM that i do not have normal access to, but can only use apps installed therein. I do not have access to the VM terminal either unfortunately.

Haskell stack not seeing libgmp.so.10 provided in an environment module

I'm starting to try to work on a Linux computing cluster where some programs and libraries are made available through a system of environment modules.
I would like to install Haskell programs using stack (I should probably say that I'm not yet very familiar with stack).
stack is available as a module, so after doing module load stack, I tried stack setup, which failed, complaining about gmp missing:
$ stack setup
Preparing to install GHC (gmp4) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-gmp4-8.0.1.
Installed GHC.
The GHC located at
/pasteur/homes/bli/.stack/programs/x86_64-linux/ghc-gmp4-8.0.1/bin/ghc
failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Running
/pasteur/homes/bli/.stack/programs/x86_64-linux/ghc-gmp4-8.0.1/bin/ghc
/tmp/stack-sanity-check24665/Main.hs -no-user-package-db in directory
/tmp/stack-sanity-check24665/ exited with ExitFailure 1
[1 of 1] Compiling Main (
/tmp/stack-sanity-check24665/Main.hs, /tmp/stack-sanity-check24665/Main.o )
Linking /tmp/stack-sanity-check24665/Main ...
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
The admin of the cluster told me that gmp was also available as an environment module, so I did module load gmp before trying again, and it seemed to work:
$ stack setup
Writing implicit global project config file to:
/pasteur/homes/bli/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-8.23
Downloaded lts-8.23 build plan.
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading root
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
Downloading snapshot
Downloading mirrors
Cannot update index (no local copy)
Downloading index
Updated package list downloaded
Populated index cache.
Preparing to install GHC (gmp4) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-gmp4-8.0.2.
Installed GHC.
stack will use a sandboxed GHC it installed
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec
Then I tried to install hlint using stack:
$ stack install hlint
clock-0.7.2: configure
uniplate-1.6.12: download
clock-0.7.2: build
old-time-1.1.0.3: configure
Package old-time uses a custom Cabal build, but does not use a
custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
old-time-1.1.0.3: build
Package old-time uses a custom Cabal build, but does not use a
custom-setup stanza
uniplate-1.6.12: configure
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
uniplate-1.6.12: build
uniplate-1.6.12: copy/register
Progress: 3/7
-- While building package old-time-1.1.0.3 using:
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/setup
--builddir=.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0 build
--ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to:
/pasteur/homes/bli/.stack/global-project/.stack-work/logs/old-time-1.1.0.3.log
[1 of 2] Compiling Main (
/tmp/stack8279/old-time-1.1.0.3/Setup.hs,
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/Main.o
)
[2 of 2] Compiling StackSetupShim (
/pasteur/homes/bli/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs,
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/StackSetupShim.o
)
Linking
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/setup
...
Configuring old-time-1.1.0.3...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for ftime... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for gettimeofday... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking whether altzone is declared... no
configure: creating ./config.status
config.status: creating include/HsTimeConfig.h
configure: WARNING: unrecognized options: --with-compiler
Building old-time-1.1.0.3...
Preprocessing library old-time-1.1.0.3...
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time_hsc_make:
error while loading shared libraries: libgmp.so.10: cannot open shared
object file: No such file or directory
running
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time_hsc_make
failed (exit code 127)
command was:
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time_hsc_make
>.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time.hs
-- While building package clock-0.7.2 using:
/pasteur/homes/bli/.stack/setup-exe-cache/x86_64-linux-gmp4/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2
--builddir=.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0 build
--ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to:
/pasteur/homes/bli/.stack/global-project/.stack-work/logs/clock-0.7.2.log
Configuring clock-0.7.2...
Building clock-0.7.2...
Preprocessing library clock-0.7.2...
Clock.hsc:44:1: warning: "hsc_alignment" redefined
In file included from
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make.c:1:
/pasteur/homes/bli/.stack/programs/x86_64-linux/ghc-gmp4-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:1:
warning: this is the location of the previous definition
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make:
error while loading shared libraries: libgmp.so.10: cannot open shared
object file: No such file or directory
running
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make
failed (exit code 127)
command was:
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make
>.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock.hs
It seems that when compiling ghc, stack was able to see gmp, but not when installing some packages.
I notice this warning: configure: WARNING: unrecognized options: --with-compiler. I don't know if this is relevant.
The environment module system seems to work by exporting some environment variables:
$ module show gmp
-------------------------------------------------------------------
/local/gensoft2/devmodules/gmp/6.0.0:
module-whatis Set environnement for gmp (6.0.0)
module-whatis topic_3316
prepend-path LIBRARY_PATH /local/gensoft2/lib/gmp/6.0.0/lib
prepend-path LD_RUN_PATH /local/gensoft2/lib/gmp/6.0.0/lib
prepend-path -d LDFLAGS -L/local/gensoft2/lib/gmp/6.0.0/lib
prepend-path CMAKE_LIBRARY_PATH /local/gensoft2/lib/gmp/6.0.0/lib
prepend-path C_INCLUDE_PATH /local/gensoft2/lib/gmp/6.0.0/include
prepend-path CPLUS_INCLUDE_PATH /local/gensoft2/lib/gmp/6.0.0/include
prepend-path CMAKE_INCLUDE_PATH /local/gensoft2/lib/gmp/6.0.0/include
prepend-path -d CPPFLAGS -I/local/gensoft2/lib/gmp/6.0.0/include
setenv GMP_ROOT /local/gensoft2/lib/gmp/6.0.0
-------------------------------------------------------------------
The administrator told me that these environment variable are not always taken into account, and suggested to export LDFLAGS="-Wl,-rpath,$GMP_ROOT/lib $LDFLAGS" in my environment before trying, but this did not seem to have any effect on the issue.
I still obtain the following: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
How can I get stack to reliably take into account development libraries that the environment modules system provides?
Edit
It seems that I can give the missing library paths on the command line to stack as follows:
$ stack --extra-lib-dirs=/local/gensoft2/lib/gmp/6.0.0/lib --extra-include-dirs=/local/gensoft2/lib/gmp/6.0.0/include install hlint
old-time-1.1.0.3: configure
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
old-time-1.1.0.3: build
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
clock-0.7.2: configure
clock-0.7.2: build
clock-0.7.2: copy/register
extra-1.5.3: download
extra-1.5.3: configure
extra-1.5.3: build
old-time-1.1.0.3: copy/register
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
cpphs-1.20.8: download
cpphs-1.20.8: configure
cpphs-1.20.8: build
extra-1.5.3: copy/register
cpphs-1.20.8: copy/register
haskell-src-exts-1.18.2: download
haskell-src-exts-1.18.2: configure
haskell-src-exts-1.18.2: build
haskell-src-exts-1.18.2: copy/register
hlint-1.9.41: download
hlint-1.9.41: configure
hlint-1.9.41: build
hlint-1.9.41: copy/register
Completed 6 action(s).
Copying from /pasteur/homes/bli/.stack/snapshots/x86_64-linux-gmp4/lts-8.23/8.0.2/bin/hlint to /pasteur/homes/bli/.local/bin/hlint
Copied executables to /pasteur/homes/bli/.local/bin:
- hlint
Is there a way to have this done automatically for every possible development library loaded by module?
I'm not sure this is completely reliable (environment modules for development libraries might not all export these variables), but passing -extra-include-dirs=${CMAKE_INCLUDE_PATH} and --extra-lib-dirs=${CMAKE_LIBRARY_PATH} to stack seems to work at least when installing hlint, scan and doctest.
I'm a bit confused about what would be the correct configuration file to use, and how, to make this automatic.
It seems that the corresponding settings in ~/.stack/config.yaml are taken into account (although the documentation mentions ~/.stack/global-project/stack.yaml).
The above-mentioned environment variables cannot be used as-is in the config file. I haven't determined what the exact reason. This could be either because their expansion results in something not syntactically correct (paths separated by ":" instead of ","), or because only plain text is permitted in the config file.
Therefore, the following works in the present case, but is not a general solution:
extra-include-dirs: [/local/gensoft2/lib/gmp/6.0.0/include]
extra-lib-dirs: [/local/gensoft2/lib/gmp/6.0.0/lib]

Can't install ruby gem xmlparser

I am trying to install this gem xmlparser so that I can use the class XSD::QName to read from XML.
It asked me to install expat and xmlparse, and then after several other packages and attempts I have this new problem:
"Failed to build gem native extension
Checking for ntohl() in -lsocket... no
etc etc
etc etc
make failed, exit code 2"
#edit
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
checking for expat.h... yes
checking for XML_ParserCreate() in -lexpat... yes
checking for XML_SetNotStandaloneHandler()... yes
checking for XML_SetParamEntityParsing()... yes
checking for XML_SetDoctypeDeclHandler()... yes
checking for XML_ParserReset()... yes
checking for XML_SetSkippedEntityHandler()... yes
checking for XML_GetFeatureList()... yes
checking for XML_UseForeignDTD()... yes
checking for XML_GetIdAttributeIndex()... yes
checking for ntohl() in -lsocket... no
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling xmlparser.c
xmlparser.c: In function ‘XMLParser_parse’:
xmlparser.c:1783:2: error: format not a string literal and no format arguments [-Werror=format-security]
rb_raise(eXMLParserError, (char*)errStr);
^
xmlparser.c:1832:5: error: format not a string literal and no format arguments [-Werror=format-security]
rb_raise(eXMLParserError, (char*)errStr);
^
cc1: some warnings being treated as errors
Makefile:224: recipe for target 'xmlparser.o' failed
make: *** [xmlparser.o] Error 1
make failed, exit code 2
Gem files will remain installed in /tmp/bundler20151111-18724-f3sw3fxmlparser-0.7.2.1/gems/xmlparser-0.7.2.1 for inspection.
Results logged to /tmp/bundler20151111-18724-f3sw3fxmlparser-0.7.2.1/extensions/x86-linux/2.1.0/xmlparser-0.7.2.1/gem_make.out

Can't install Ruby or Rails using RVM : ERROR: There has been an error while running configure. Halting the installation

Here is what I ran:
rvm install ruby-1.9.2-p290
I have xCode 4 installed. And I am running OSX 10.6.7
Here is the error I get
ruby-1.9.2-p290 - #configuring
ERROR: Error running ' ./configure --prefix=/Users/jac/.rvm/rubies/ruby-1.9.2-p290 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jac/.rvm/usr ', please read /Users/jac/.rvm/log/ruby-1.9.2-p290/configure.log
ERROR: There has been an error while running configure. Halting the installation.
Here are the last parts of the log file
checking for working volatile... yes
checking whether right shift preserve sign bit... yes
checking read count field in FILE structures... _r
checking read buffer ptr field in FILE structures... _p
checking size of struct stat.st_ino... SIZEOF_LONG
checking whether _SC_CLK_TCK is supported... yes
checking stack growing direction on i386... -1
checking for backtrace... yes
checking whether ELF binaries are produced... no
checking whether OS depend dynamic link works... yes
checking for strip... strip
configure: error: thread model is missing
I'll tell ya I never post question anywhere because I can usually figure stuff out eventually. But I am not seeing anyone having this specific error anywhere. I see similar things about not having XCode... But I have that.
EDIT:
I ran into this problem because I thought I had everything set up but when I tried to make a new project I ran into this:
rails new demo
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in to_specs': Could not find rails (>= 0) amongst [rake-0.8.7, rake-0.8.7] (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:into_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1195:in `gem'
from /usr/bin/rails:18
Are you missing /usr/include/pthread.h on your system?

Bluecloth v2.0.10 with windows 7 not working

WIth Ruby 187, I had downloaded devkit from http://rubyinstaller.org/downloads
and followed the instruction per https://github.com/oneclick/rubyinstaller/wiki/Development-Kit.
I had also ensured that devkit is installed properly by following
smoke test.
I had then tried installing bluecloth (v2.0.10). It had failed with
following error:
C:\test\typo>gem install bluecloth --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bluecloth:
ERROR: Failed to build gem native extension.
c:/Ruby187/bin/ruby.exe 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... no
creating extconf.h
creating Makefile
make
gcc -I. -I. -Ic:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -
DRUBY_EXTCONF_H=\"extcon
f.h\" -DVERSION=\"2.0.4\" -g -O2 -DFD_SETSIZE=256 -I. -Wall -c
bluecloth.c
In file included from c:\rubydevkit\mingw\bin\../lib/gcc/
mingw32/4.5.1/../../../../include/windows.h:48:0,
from c:\rubydevkit\mingw\bin\../lib/gcc/
mingw32/4.5.1/../../../../include/winsock2.h:22,
from c:/Ruby187/lib/ruby/1.8/i386-mingw32/win32/
win32.h:27,
from c:/Ruby187/lib/ruby/1.8/i386-mingw32/defines.h:
186,
from c:/Ruby187/lib/ruby/1.8/i386-mingw32/ruby.h:37,
from bluecloth.h:14,
from bluecloth.c:25:
c:\rubydevkit\mingw\bin\../lib/gcc/mingw32/4.5.1/../../../../include/
windef.h:229:23: error: duplicate 'unsigned'
c:\rubydevkit\mingw\bin\../lib/gcc/mingw32/4.5.1/../../../../include/
windef.h:238:23: error: duplicate 'unsigned'
c:\rubydevkit\mingw\bin\../lib/gcc/mingw32/4.5.1/../../../../include/
windef.h:238:23: error: two or more data types in declaration
specifiers
c:\rubydevkit\mingw\bin\../lib/gcc/mingw32/4.5.1/../../../../include/
windef.h:241:24: error: duplicate 'unsigned'
bluecloth.c: In function 'bluecloth_initialize':
bluecloth.c:190:9: warning: unused variable 'utf8text'
make: *** [bluecloth.o] Error 1
Gem files will remain installed in c:/Ruby187/lib/ruby/gems/1.8/gems/
bluecloth-2.0.10 for inspection.
Results logged to c:/Ruby187/lib/ruby/gems/1.8/gems/bluecloth-2.0.10/
ext/gem_make.out
C:\test\typo>
If you need 2.2.0 (the latest version), here's how I got it to work:
Install DevKit
Run the command below to install bluecloth:
gem install bluecloth
this will fail miserably when building "native extensions", but will successfully install the gem's source code.
Patch bluecloth.h file (for me, this is found in: D:\ruby\Ruby-1.9.3-p125\lib\ruby\gems\1.9.1\gems\bluecloth-2.2.0\ext), with the patch from here: https://gist.github.com/1539611
Go to bluecloth's gem installation folder. For me, this looks like below:
D:\ruby\Ruby-1.9.3-p125\lib\ruby\gems\1.9.1\gems\bluecloth-2.2.0
Run the following command:
rake gem
It may prompt you to install some other gems, follow accordingly.
When it's done, you should see a bluecloth-2.2.0.gem created. For me, it is found here:
D:\ruby\Ruby-1.9.3-p125\lib\ruby\gems\1.9.1\gems\bluecloth-2.2.0\pkg\bluecloth-2.2.0.gem
Go to bluecloth-2.2.0.gem location, and run the following command:
gem install bluecloth-2.2.0.gem --platform=ruby
It seems there is a bug/issue with version 2.0.10 of BlueCloth. You can try using an older version like 2.0.7:
gem install bluecloth -v 2.0.7
Which seems to work.
Also probably this worth checking latest version (2.2.0?) and if not work, report it back to gem author:
http://deveiate.org/projects/BlueCloth/query
This is the patched bluecloth.h code, for people in a hurry...
#ifndef BLUECLOTH_H
#define BLUECLOTH_H
#include "ruby.h"
#if defined(HAVE_RUBY_ENCODING_H) && HAVE_RUBY_ENCODING_H
# define M17N_SUPPORTED
# include "ruby/encoding.h"
#endif
#include "config.h"
#include "assert.h"
#include "mkdio.h"
void mkd_initialize _(( void ));
void mkd_with_html5_tags _(( void ));
/* Replace the macro from encoding.h that refers to static 'rb_encoding_list' */
#ifdef ENC_FROM_ENCINDEX
#undef ENC_FROM_ENCINDEX
#define ENC_FROM_ENCINDEX(idx) (rb_enc_from_index(idx))
#endif
#endif
There's a fork on github that already includes the patch:
https://github.com/drakontia/bluecloth

Resources