trulia / hologram

A markdown based documentation system for style guides.
http://trulia.github.io/hologram
Other
2.16k stars 200 forks source link

Error installing the gem #143

Closed ghost closed 9 years ago

ghost commented 10 years ago

When I try to install or bundle the gem, I get the following error:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling autolink.c
compiling buffer.c
compiling houdini_href_e.c
compiling houdini_html_e.c
compiling html.c
html.c:290:57: warning: passing 'const struct buf *' to parameter of type 'struct buf *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                bufprintf(ob, "<h%d id=\"%s\">", level, header_anchor(text));
                                                                      ^~~~
html.c:268:33: note: passing argument to parameter 'text' here
char *header_anchor(struct buf *text)
                                ^
html.c:638:51: warning: passing 'const struct buf *' to parameter of type 'struct buf *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                bufprintf(ob, "<a href=\"#%s\">", header_anchor(text));
                                                                ^~~~
html.c:268:33: note: passing argument to parameter 'text' here
char *header_anchor(struct buf *text)
                                ^
2 warnings generated.
compiling html_smartypants.c
compiling markdown.c
compiling rc_markdown.c
compiling rc_render.c
compiling stack.c
linking shared-object redcarpet.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [redcarpet.bundle] Error 1

Gem files will remain installed in /var/folders/nd/lz40x7cj2pnbz20bhz5zd22r0000gn/T/bundler20140729-2901-mwwdsg/redcarpet-3.1.2/gems/redcarpet-3.1.2 for inspection.
Results logged to /var/folders/nd/lz40x7cj2pnbz20bhz5zd22r0000gn/T/bundler20140729-2901-mwwdsg/redcarpet-3.1.2/gems/redcarpet-3.1.2/ext/redcarpet/gem_make.out
An error occurred while installing redcarpet (3.1.2), and Bundler
cannot continue.
Make sure that `gem install redcarpet -v '3.1.2'` succeeds before
bundling. ```
jdcantrell commented 10 years ago

Interesting, this seems to be an issue with redcarpet. Not sure what's going on there yet.

ghost commented 10 years ago

Hi jdcantrell, thanks for replying so fast! I tried to install de redcarpet gem with sudo gem install redcarpet -v 3.1.2 (without sudo I get a permission error) and, again, the following error:

Building native extensions.  This could take a while...
ERROR:  Error installing redcarpet:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling autolink.c
compiling buffer.c
compiling houdini_href_e.c
compiling houdini_html_e.c
compiling html.c
html.c:290:57: warning: passing 'const struct buf *' to parameter of type 'struct buf *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                bufprintf(ob, "<h%d id=\"%s\">", level, header_anchor(text));
                                                                      ^~~~
html.c:268:33: note: passing argument to parameter 'text' here
char *header_anchor(struct buf *text)
                                ^
html.c:638:51: warning: passing 'const struct buf *' to parameter of type 'struct buf *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                bufprintf(ob, "<a href=\"#%s\">", header_anchor(text));
                                                                ^~~~
html.c:268:33: note: passing argument to parameter 'text' here
char *header_anchor(struct buf *text)
                                ^
2 warnings generated.
compiling html_smartypants.c
compiling markdown.c
compiling rc_markdown.c
compiling rc_render.c
compiling stack.c
linking shared-object redcarpet.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [redcarpet.bundle] Error 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/redcarpet-3.1.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/redcarpet-3.1.2/ext/redcarpet/gem_make.out 
jdcantrell commented 9 years ago

This is definitely an issue with redcarpet, it seems like it has been resolved now.