How to install syck 1.0.1 on Ubuntu 15.04?

拜拜、爱过 提交于 2019-12-08 07:33:44

问题


I'm getting an error installing syck on Ubuntu 15.04. Building the native extensions fails:

Installing syck 1.0.1 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/markus/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150618-8242-1z0c5iw.rb extconf.rb
checking for st.h... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling bytecode.c
compiling implicit.c
compiling token.c
token.re: In function ‘sycklex_yaml_utf8’:
token.re:541:36: warning: variable ‘lvl’ set but not used [-Wunused-but-set-variable]
compiling rubyext.c
rubyext.c:31:20: error: field ‘hash’ has incomplete type
     struct RHash   hash;
                    ^
rubyext.c: In function ‘syck_seq_initialize’:
rubyext.c:1529:15: warning: variable ‘node’ set but not used [-Wunused-but-set-variable]
     SyckNode *node;
               ^
Makefile:237: recipe for target 'rubyext.o' failed
make: *** [rubyext.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/markus/.rvm/gems/ruby-2.2.1@mygemset/gems/syck-1.0.1 for inspection.
Results logged to /home/markus/.rvm/gems/ruby-2.2.1@mygemset/extensions/x86_64-linux/2.2.0/syck-1.0.1/gem_make.out
An error occurred while installing syck (1.0.1), and Bundler cannot continue.
Make sure that `gem install syck -v '1.0.1'` succeeds before bundling.

Does someone have an idea what the issue is and how to fix it?

来源:https://stackoverflow.com/questions/30920570/how-to-install-syck-1-0-1-on-ubuntu-15-04

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!