gpt4 book ai didi

ruby - 安装 yajl-ruby 有一些错误

转载 作者:数据小太阳 更新时间:2023-10-29 09:01:32 29 4
gpt4 key购买 nike

当我运行时:

sudo gem install yajl-ruby

我看到错误:

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

/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/yajl-ruby-1.2.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/yajl-ruby-1.2.1/ext/yajl/gem_make.out

我安装了yum install ruby​​ ruby​​gems ruby​​-devel,还是有这个问题。

最佳答案

尝试:

$ sudo ln -s /usr/bin/llvm-gcc /usr/bin/gcc-4.2
$ sudo gem install yajl-ruby

关于ruby - 安装 yajl-ruby 有一些错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34351459/

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