gpt4 book ai didi

ruby-on-rails - 无法安装 json - Ubuntu 14.04 - Rails

转载 作者:数据小太阳 更新时间:2023-10-29 07:21:20 24 4
gpt4 key购买 nike

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

/home/user/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20150916-3216-1xudd6p.rb extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.so
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
make: *** [generator.so] Error 1

make failed, exit code 2

Gem files will remain installed in /home/user/.rvm/gems/ruby-2.2.3/gems/json-1.8.3 for inspection.
Results logged to /home/user/.rvm/gems/ruby-2.2.3/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out

嘿。我正在尝试插入 heroku,但是却陷入了死胡同。首先,是 sqlit3 问题。现在,我无法在键入 bundle 时安装 json。我现在该怎么办?

提前致谢。

最佳答案

我遇到了同样的问题。你需要安装libgmp-dev

运行 sudo apt-get install libgmp-dev 修复问题。

关于ruby-on-rails - 无法安装 json - Ubuntu 14.04 - Rails,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32619098/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com