Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展Linux Mint

亚历山大·S

运行软件包安装时,出现以下错误。在Linux Mint 17.0 Rails 4.0.2上运行

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/home/dubzero/.rvm/rubies/ruby-2.0.0-p643/bin/ruby extconf.rb 
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... yes
creating extconf.h
creating Makefile

make "DESTDIR="
compiling LastError.c
compiling Type.c
compiling ClosurePool.c
compiling MemoryPointer.c
compiling DataConverter.c
compiling DynamicLibrary.c
compiling FunctionInfo.c
compiling StructByReference.c
compiling Buffer.c
compiling Types.c
compiling Platform.c
compiling ffi.c
compiling Function.c
compiling Thread.c
compiling LongDouble.c
compiling Struct.c
compiling Variadic.c
compiling Call.c
Call.c: In function ‘rbffi_SetupCallParams’:
Call.c:206:28: error: ‘UINT32_ADJ’ undeclared (first use in this function)
                 ADJ(param, UINT32);
                            ^
Call.c:83:58: note: in definition of macro ‘ADJ’
 #  define ADJ(p, a) ((p) = (FFIStorage*) (((char *) p) + a##_ADJ))
                                                          ^
Call.c:206:28: note: each undeclared identifier is reported only once for each function it appears in
                 ADJ(param, UINT32);
                            ^
Call.c:83:58: note: in definition of macro ‘ADJ’
 #  define ADJ(p, a) ((p) = (FFIStorage*) (((char *) p) + a##_ADJ))
                                                          ^
Call.c:230:28: error: ‘UINT64_ADJ’ undeclared (first use in this function)
                 ADJ(param, UINT64);
                            ^
Call.c:83:58: note: in definition of macro ‘ADJ’
 #  define ADJ(p, a) ((p) = (FFIStorage*) (((char *) p) + a##_ADJ))
                                                          ^
make: *** [Call.o] Ошибка 1


Gem files will remain installed in /home/dubzero/.rvm/gems/ruby-2.0.0-p643@railstutorial_rails_4_0/gems/ffi-1.9.7 for inspection.
Results logged to /home/dubzero/.rvm/gems/ruby-2.0.0-p643@railstutorial_rails_4_0/gems/ffi-1.9.7/ext/ffi_c/gem_make.out
An error occurred while installing ffi (1.9.7), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.7'` succeeds before bundling.

宝石文件

source 'https://rubygems.org'
ruby '2.0.0'
#ruby-gemset=railstutorial_rails_4_0

gem 'rails', '4.0.2'

group :development, :test do
  gem 'sqlite3', '1.3.8'
  gem 'rspec-rails', '2.13.1'
end

group :test do
  gem 'selenium-webdriver', '2.35.1'
  gem 'capybara', '2.1.0'
end

gem 'sass-rails', '4.0.1'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.1'
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'

group :doc do
  gem 'sdoc', '0.3.20', require: false
end

group :production do
  gem 'pg', '0.15.1'
  gem 'rails_12factor', '0.0.2'
end

有任何想法吗?先感谢您

威尔弗雷德·休斯

尝试使用旧版本的ffi例如,在您的Gemfile中,输入:

gem 'ffi', '1.9.3'

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Gem :: Installer :: ExtensionBuildError:错误:无法在Mac上构建gem本机扩展

来自分类Dev

Gem :: Installer :: ExtensionBuildError:错误:无法生成gem本机扩展。-在Debian 7上安装Redmine

来自分类Dev

Gem :: Installer :: ExtensionBuildError:错误:无法生成gem本机扩展。Rails Capistrano

来自分类Dev

安装pg gem;错误:无法构建gem本机扩展

来自分类Dev

Gem :: Ext :: BuildError:错误:无法构建gem本机扩展

来自分类Dev

无法构建gem本机扩展?

来自分类Dev

使用'gem pq'安装PostgreSQL gem失败,并出现错误:无法构建gem本机扩展

来自分类Dev

Gem :: Ext :: BuildError:错误:无法为Puma Gem构建gem本机扩展

来自分类Dev

错误:无法在Mavericks上构建gem本机扩展

来自分类Dev

错误:无法在Windows上构建gem本机扩展

来自分类Dev

错误:尝试安装罗盘时无法构建gem本机扩展

来自分类Dev

安装nokogiri时出错:错误:无法构建gem本机扩展

来自分类Dev

Ruby错误安装AF:无法构建gem本机扩展

来自分类Dev

安装 rails 错误:无法构建 gem 本机扩展

来自分类Dev

带有厨师的宝石安装失败,并显示Gem :: Installer :: ExtensionBuildError:Chef_gem [fog]

来自分类Dev

错误:无法建立安装rubygems的gem本机扩展消息(Linux)

来自分类Dev

在Raspbian上安装Ruby Gem错误:无法构建Gem本机扩展

来自分类Dev

Gem :: Ext :: BuildError:错误:无法构建gem本机扩展-Rails 4

来自分类Dev

gem install rmagick -v 2.13.1错误无法在Mac OS 10.9.1上构建gem本机扩展

来自分类Dev

Gem :: Ext :: BuildError:错误:无法构建gem本机扩展Bcrypt-Ruby

来自分类Dev

bcrypt-ruby 3.1.2 Gem :: Ext :: BuildError:错误:无法在OSX中构建gem本机扩展

来自分类Dev

Gem :: Ext :: BuildError:错误:无法构建gem本机扩展。-CentOS 6.5

来自分类Dev

rbenv:在Linux Mint上找不到gem命令

来自分类Dev

错误:无法构建gem本机扩展-安装mysql2错误

来自分类Dev

尝试安装rails时出现此错误。错误:无法构建gem本机扩展。(Ubuntu 16.04)

来自分类Dev

尝试安装rails时出现此错误。错误:无法构建gem本机扩展。(Ubuntu 16.04)

来自分类Dev

错误:安装 sass 时出错:错误:无法构建 gem 本机扩展

来自分类Dev

libxml-ruby:无法构建gem本机扩展

来自分类Dev

无法构建gem本机扩展-解决方案

Related 相关文章

  1. 1

    Gem :: Installer :: ExtensionBuildError:错误:无法在Mac上构建gem本机扩展

  2. 2

    Gem :: Installer :: ExtensionBuildError:错误:无法生成gem本机扩展。-在Debian 7上安装Redmine

  3. 3

    Gem :: Installer :: ExtensionBuildError:错误:无法生成gem本机扩展。Rails Capistrano

  4. 4

    安装pg gem;错误:无法构建gem本机扩展

  5. 5

    Gem :: Ext :: BuildError:错误:无法构建gem本机扩展

  6. 6

    无法构建gem本机扩展?

  7. 7

    使用'gem pq'安装PostgreSQL gem失败,并出现错误:无法构建gem本机扩展

  8. 8

    Gem :: Ext :: BuildError:错误:无法为Puma Gem构建gem本机扩展

  9. 9

    错误:无法在Mavericks上构建gem本机扩展

  10. 10

    错误:无法在Windows上构建gem本机扩展

  11. 11

    错误:尝试安装罗盘时无法构建gem本机扩展

  12. 12

    安装nokogiri时出错:错误:无法构建gem本机扩展

  13. 13

    Ruby错误安装AF:无法构建gem本机扩展

  14. 14

    安装 rails 错误:无法构建 gem 本机扩展

  15. 15

    带有厨师的宝石安装失败,并显示Gem :: Installer :: ExtensionBuildError:Chef_gem [fog]

  16. 16

    错误:无法建立安装rubygems的gem本机扩展消息(Linux)

  17. 17

    在Raspbian上安装Ruby Gem错误:无法构建Gem本机扩展

  18. 18

    Gem :: Ext :: BuildError:错误:无法构建gem本机扩展-Rails 4

  19. 19

    gem install rmagick -v 2.13.1错误无法在Mac OS 10.9.1上构建gem本机扩展

  20. 20

    Gem :: Ext :: BuildError:错误:无法构建gem本机扩展Bcrypt-Ruby

  21. 21

    bcrypt-ruby 3.1.2 Gem :: Ext :: BuildError:错误:无法在OSX中构建gem本机扩展

  22. 22

    Gem :: Ext :: BuildError:错误:无法构建gem本机扩展。-CentOS 6.5

  23. 23

    rbenv:在Linux Mint上找不到gem命令

  24. 24

    错误:无法构建gem本机扩展-安装mysql2错误

  25. 25

    尝试安装rails时出现此错误。错误:无法构建gem本机扩展。(Ubuntu 16.04)

  26. 26

    尝试安装rails时出现此错误。错误:无法构建gem本机扩展。(Ubuntu 16.04)

  27. 27

    错误:安装 sass 时出错:错误:无法构建 gem 本机扩展

  28. 28

    libxml-ruby:无法构建gem本机扩展

  29. 29

    无法构建gem本机扩展-解决方案

热门标签

归档