gpt4 book ai didi

ruby-on-rails - json 1.8.2 gem 给我 fatal error stdio.h

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

正在尝试安装

gem install json -v '1.8.2'

(..或 bundle install with gem 'json', '1.8.2' in Gemfile)

...在 Ubuntu 14.04 VM 上给我:

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

/home/deploy/.rbenv/versions/2.1.5/bin/ruby extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling generator.c
In file included from /home/deploy/.rbenv/versions/2.1.5/include/ruby-2.1.0/ruby/ruby.h:29:0,
from /home/deploy/.rbenv/versions/2.1.5/include/ruby-2.1.0/ruby.h:33,
from ../fbuffer/fbuffer.h:5,
from generator.c:1:
/home/deploy/.rbenv/versions/2.1.5/include/ruby-2.1.0/ruby/defines.h:26:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^

最佳答案

sudo apt-get install libc6-dev

修好了

关于ruby-on-rails - json 1.8.2 gem 给我 fatal error stdio.h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29285085/

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