小编Ser*_*kiy的帖子

安装ruby gem json v1.8.3时出错:BFD(GNU Binutils for Debian)2.22内部错误

当我尝试安装ruby gem json 1.8.3时,我看到类似于C编译器错误的东西

这是我正在运行的命令:

gem install json -v '1.8.3'
Run Code Online (Sandbox Code Playgroud)

我的输出是:

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

    /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20160327-27188-189i1cj.rb extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.so
/usr/bin/ld: BFD (GNU Binutils for Debian) 2.22 internal error, aborting at ../../bfd/reloc.c line 443 in bfd_get_reloc_size

/usr/bin/ld: Please report this bug.

collect2: error: ld returned 1 exit status
make: *** [generator.so] Error …
Run Code Online (Sandbox Code Playgroud)

ruby linux json compiler-errors binutils

5
推荐指数
1
解决办法
2161
查看次数

标签 统计

binutils ×1

compiler-errors ×1

json ×1

linux ×1

ruby ×1