@micronex

Gem Json 1.8.1 ,проблемы с инсталляцией.Как решить?

Проблемы при генерации bundle install:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1/ext/json/ext/generator
/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160721-8878-1yafz8p.rb extconf.rb
creating Makefile

current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [enabled by default]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.1/gem_make.out
Using minitest 5.4.1
Using thread_safe 0.3.4
Using builder 3.2.2
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using polyglot 0.3.5
Using sass 3.2.19
Using thor 0.19.1
Using coffee-script-source 1.8.0
Using execjs 2.2.1
Using arel 5.0.1.20140414130214
Using bundler 1.12.5
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using addressable 2.3.6
Using bcrypt 3.1.7
Using coderay 1.1.0
Using debug_inspector 0.0.2
Using colorize 0.7.3
Using net-ssh 2.9.1
Using chunky_png 1.3.1
Using fssm 0.2.10
Using orm_adapter 0.5.0
Using libv8 3.16.14.3
Using modernizr-rails 2.7.1
Using normalize-rails 3.0.1
Using pg 0.17.1
Using ref 1.0.5
Using spring 1.1.3
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
~/workspace (master) $ gem list

*** LOCAL GEMS ***

actionmailer (4.2.5)
actionpack (4.2.5)
actionview (4.2.5)
activejob (4.2.5)
activemodel (4.2.5)
activerecord (4.2.5)
activesupport (4.2.5)
addressable (2.3.6)
arel (6.0.3, 5.0.1.20140414130214)
bcrypt (3.1.7)
bigdecimal (1.2.8)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.12.5)
bundler-unload (1.0.2)
byebug (9.0.5)
chunky_png (1.3.1)
coderay (1.1.0)
coffee-rails (4.1.1)
coffee-script (2.4.1)
coffee-script-source (1.10.0, 1.8.0)
colorize (0.7.3)
concurrent-ruby (1.0.2)
debug_inspector (0.0.2)
did_you_mean (1.0.0)
erubis (2.7.0)
execjs (2.7.0, 2.2.1)
executable-hooks (1.3.2)
fssm (0.2.10)
gem-wrappers (1.2.7)
globalid (0.3.6)
hike (1.2.3)
i18n (0.7.0, 0.6.11)
io-console (0.4.5)
jbuilder (2.5.0)
jquery-rails (4.1.1)
json (2.0.1, 1.8.3, 1.8.2)
libv8 (3.16.14.3 x86_64-linux)
loofah (2.0.3)
mail (2.6.4)
mime-types (3.1, 1.25.1)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.9.0, 5.8.3, 5.4.1)
modernizr-rails (2.7.1)
multi_json (1.12.1, 1.10.1)
net-ssh (2.9.1)
net-telnet (0.1.1)
nokogiri (1.6.8)
normalize-rails (3.0.1)
orm_adapter (0.5.0)
pg (0.17.1)
pkg-config (1.1.7)
polyglot (0.3.5)
power_assert (0.2.6)
psych (2.0.17)
rack (1.6.4, 1.5.2)
rack-test (0.6.3)
rails (4.2.5)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.5)
rake (11.2.2, 10.4.2, 10.3.2)
rdoc (4.2.2, 4.2.1)
ref (1.0.5)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sass (3.4.22, 3.2.19)
sass-rails (5.0.5)
sdoc (0.4.1)
spring (1.7.1, 1.1.3)
sprockets (3.6.2)
sprockets-rails (3.1.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
thor (0.19.1)
thread_safe (0.3.5, 0.3.4)
tilt (2.0.5, 1.4.1)
turbolinks (5.0.0)
turbolinks-source (5.0.0)
tzinfo (1.2.2)
uglifier (3.0.0)
web-console (2.3)
~/workspace (master) $
Версии:
ruby 2.3.0
rails 4.2.5
Ни в какую,испробовал все.Есть ли лечение от зависимостей по данному вопросу?Спасибо.
  • Вопрос задан
  • 1397 просмотров
Решения вопроса 1
@micronex Автор вопроса
bundle update - вопрос решился
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
@chronic86
Ruby on Rails junior
sudo apt-get install libgmp3-dev
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы