我看到在安装ruby gem json 1.8.3时出现了类似于C编译器错误的东西。
以下是我运行的命令:
我尝试删除和安装软件包binutils和build-essential,但这并没有解决问题。
关于我的操作系统的一些事实:
我将在一个OpenVZ虚拟化的VPS主机上运行此程序。
我的/etc/apt/sources.list文件(如果有帮助):
如果由于链接器错误无法“制作”json gem,请指导我正确的方向,也许我可以用另一个版本的编译器/链接器替换,或以某种方式规避在此处安装源文件?总的来说,只要有助于安装json gem并继续我的计划,任何解决方案都受到欢迎。
提前多谢!
以下是我运行的命令:
gem install json -v '1.8.3'
我的输出是:
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 1
make failed, exit code 2
Gem files will remain installed in /usr/local/rvm/gems/ruby-2.2.1/gems/json-1.8.3 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.2.1/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out
我尝试删除和安装软件包binutils和build-essential,但这并没有解决问题。
关于我的操作系统的一些事实:
Debian GNU/Linux 7.9 (wheezy)
uname -a显示:
Linux Prometheus 2.6.32-042stab112.15 #1 SMP Tue Oct 20 17:22:56 MSK 2015 x86_64 GNU/Linux
我将在一个OpenVZ虚拟化的VPS主机上运行此程序。
我的/etc/apt/sources.list文件(如果有帮助):
deb http://ftp.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free
deb http://packages.icinga.org/debian icinga-wheezy main
deb http://http.debian.net/debian wheezy-backports main
deb-src http://packages.icinga.org/debian icinga-wheezy main
谷歌没有找到任何相关结果
BFD (GNU Binutils for Debian) 2.22 internal error, aborting at ../../bfd/reloc.c line 443 in bfd_get_reloc_size
如果由于链接器错误无法“制作”json gem,请指导我正确的方向,也许我可以用另一个版本的编译器/链接器替换,或以某种方式规避在此处安装源文件?总的来说,只要有助于安装json gem并继续我的计划,任何解决方案都受到欢迎。
提前多谢!
Binutils
。 - CryptoPiggyuname -a
吗? - AlexD